From 6ac537ea0e64c69cd8488c4dc838885d92a9e46e Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 22 Jun 2026 14:04:59 -0700 Subject: [PATCH 1/5] Regenerate SDK from latest OpenAPI spec (moderation tenantId + broadcastId params) Adds the optional tenantId query param to the SSO-gated Moderation API endpoints and the optional broadcastId query param to the mutating moderation endpoints. Backward-compatible. Mirrors fastcomments-sdk-js v5.0.2. --- client/.openapi-generator/FILES | 531 +++ client/README.md | 177 + client/api/openapi.yaml | 2739 +++++------ client/docs/AddHashTagResponse.md | 21 + client/docs/AddHashTagsBulkResponse.md | 21 + .../docs/AggregateQuestionResultsResponse1.md | 21 + client/docs/BlockFromCommentPublicResponse.md | 21 + client/docs/BlockUserFromCommentResponse.md | 21 + .../BulkAggregateQuestionResultsResponse1.md | 21 + client/docs/ChangeTicketStateResponse1.md | 21 + .../docs/CheckedCommentsForBlockedResponse.md | 21 + ...bineCommentsWithQuestionResultsResponse.md | 21 + client/docs/CreateCommentPublicResponse.md | 24 + client/docs/CreateEmailTemplateResponse1.md | 21 + client/docs/CreateFeedPostPublicResponse.md | 21 + client/docs/CreateFeedPostResponse1.md | 21 + client/docs/CreateModeratorResponse1.md | 21 + client/docs/CreateQuestionConfigResponse1.md | 21 + client/docs/CreateQuestionResultResponse1.md | 21 + client/docs/CreateTenantPackageResponse1.md | 21 + client/docs/CreateTenantResponse1.md | 21 + client/docs/CreateTenantUserResponse1.md | 21 + client/docs/CreateTicketResponse1.md | 21 + client/docs/CreateUserBadgeResponse.md | 22 + client/docs/CreateV1PageReactResponse.md | 20 + client/docs/CreateV2PageReactResponse.md | 20 + client/docs/CreateVoteResponse.md | 24 + client/docs/DefaultApi.md | 630 ++- client/docs/DeleteCommentPublicResponse.md | 22 + client/docs/DeleteCommentResponse.md | 21 + client/docs/DeleteCommentVoteResponse.md | 21 + .../DeleteEmailTemplateRenderErrorResponse.md | 20 + client/docs/DeleteEmailTemplateResponse.md | 20 + client/docs/DeleteFeedPostPublicResponse.md | 7 + .../docs/DeleteFeedPostPublicResponseAnyOf.md | 13 + client/docs/DeleteHashTagResponse.md | 20 + client/docs/DeleteModerationVoteResponse.md | 21 + client/docs/DeleteModeratorResponse.md | 20 + .../docs/DeleteNotificationCountResponse.md | 20 + .../docs/DeletePendingWebhookEventResponse.md | 20 + client/docs/DeleteQuestionConfigResponse.md | 20 + client/docs/DeleteQuestionResultResponse.md | 20 + client/docs/DeleteTenantPackageResponse.md | 20 + client/docs/DeleteTenantResponse.md | 20 + client/docs/DeleteTenantUserResponse.md | 20 + client/docs/DeleteUserBadgeResponse.md | 20 + client/docs/DeleteV1PageReactResponse.md | 20 + client/docs/DeleteV2PageReactResponse.md | 20 + client/docs/DeleteVoteResponse.md | 21 + client/docs/FlagCommentPublicResponse.md | 20 + client/docs/FlagCommentResponse1.md | 22 + client/docs/GetApiCommentsResponse.md | 23 + client/docs/GetApiExportStatusResponse.md | 23 + client/docs/GetApiIdsResponse.md | 22 + client/docs/GetAuditLogsResponse1.md | 21 + client/docs/GetBanUsersFromCommentResponse.md | 21 + .../GetCachedNotificationCountResponse1.md | 21 + client/docs/GetCommentBanStatusResponse1.md | 22 + client/docs/GetCommentChildrenResponse.md | 21 + client/docs/GetCommentResponse.md | 21 + client/docs/GetCommentTextResponse1.md | 22 + .../docs/GetCommentVoteUserNamesResponse.md | 22 + client/docs/GetCommentsForUserResponse1.md | 21 + client/docs/GetCommentsPublicResponse.md | 43 + client/docs/GetCommentsResponse.md | 21 + client/docs/GetCountResponse.md | 21 + client/docs/GetCountsResponse.md | 21 + .../GetEmailTemplateDefinitionsResponse1.md | 21 + .../GetEmailTemplateRenderErrorsResponse1.md | 21 + client/docs/GetEmailTemplateResponse1.md | 21 + client/docs/GetEmailTemplatesResponse1.md | 21 + client/docs/GetEventLogResponse1.md | 21 + client/docs/GetFeedPostsPublicResponse.md | 26 + client/docs/GetFeedPostsResponse1.md | 21 + client/docs/GetFeedPostsStatsResponse.md | 21 + client/docs/GetGifLargeResponse.md | 21 + client/docs/GetGifsSearchResponse.md | 6 + client/docs/GetGlobalEventLogResponse.md | 21 + client/docs/GetHashTagsResponse1.md | 21 + client/docs/GetLogsResponse.md | 21 + client/docs/GetManualBadgesForUserResponse.md | 21 + client/docs/GetManualBadgesResponse.md | 21 + client/docs/GetModerationCommentResponse.md | 21 + .../docs/GetModerationCommentTextResponse.md | 21 + client/docs/GetModeratorResponse1.md | 21 + client/docs/GetModeratorsResponse1.md | 21 + client/docs/GetNotificationCountResponse1.md | 21 + client/docs/GetNotificationsResponse1.md | 21 + client/docs/GetOfflineUsersResponse.md | 23 + client/docs/GetOnlineUsersResponse.md | 25 + client/docs/GetPagesPublicResponse.md | 22 + .../GetPendingWebhookEventCountResponse1.md | 21 + .../docs/GetPendingWebhookEventsResponse1.md | 21 + client/docs/GetPreBanSummaryResponse.md | 22 + client/docs/GetQuestionConfigResponse1.md | 21 + client/docs/GetQuestionConfigsResponse1.md | 21 + client/docs/GetQuestionResultResponse1.md | 21 + client/docs/GetQuestionResultsResponse1.md | 21 + .../docs/GetSearchCommentsSummaryResponse.md | 21 + client/docs/GetSearchPagesResponse.md | 21 + client/docs/GetSearchSitesResponse.md | 21 + client/docs/GetSearchSuggestResponse.md | 22 + client/docs/GetSearchUsersResponse.md | 21 + client/docs/GetTenantDailyUsagesResponse1.md | 21 + client/docs/GetTenantPackageResponse1.md | 21 + client/docs/GetTenantPackagesResponse1.md | 21 + client/docs/GetTenantResponse1.md | 21 + client/docs/GetTenantUserResponse1.md | 21 + client/docs/GetTenantUsersResponse1.md | 21 + client/docs/GetTenantsResponse1.md | 21 + client/docs/GetTicketResponse1.md | 22 + client/docs/GetTicketsResponse1.md | 21 + client/docs/GetTranslationsResponse1.md | 21 + client/docs/GetTrustFactorResponse.md | 22 + .../docs/GetUserBadgeProgressByIdResponse.md | 21 + .../GetUserBadgeProgressByUserIdResponse.md | 21 + .../docs/GetUserBadgeProgressListResponse.md | 21 + client/docs/GetUserBadgeResponse.md | 21 + client/docs/GetUserBadgesResponse.md | 21 + client/docs/GetUserBanPreferenceResponse.md | 21 + .../docs/GetUserInternalProfileResponse1.md | 21 + .../docs/GetUserNotificationCountResponse1.md | 21 + client/docs/GetUserNotificationsResponse.md | 24 + .../docs/GetUserPresenceStatusesResponse1.md | 21 + client/docs/GetUserReactsPublicResponse.md | 21 + client/docs/GetUserResponse1.md | 21 + client/docs/GetUsersInfoResponse.md | 21 + client/docs/GetV1PageLikesResponse.md | 24 + client/docs/GetV2PageReactUsersResponse1.md | 21 + client/docs/GetV2PageReactsResponse.md | 22 + client/docs/GetVotesForUserResponse1.md | 23 + client/docs/GetVotesResponse1.md | 23 + client/docs/LockCommentResponse.md | 20 + client/docs/ModerationApi.md | 459 +- client/docs/PatchHashTagResponse.md | 21 + client/docs/PinCommentResponse.md | 21 + client/docs/PostAdjustCommentVotesResponse.md | 21 + client/docs/PostApiExportResponse.md | 21 + client/docs/PostBanUserFromCommentResponse.md | 21 + client/docs/PostBanUserUndoResponse.md | 20 + client/docs/PostBulkPreBanSummaryResponse.md | 25 + client/docs/PostCommentsByIdsResponse.md | 21 + client/docs/PostFlagCommentResponse.md | 20 + client/docs/PostRemoveCommentResponse.md | 11 +- .../docs/PostRestoreDeletedCommentResponse.md | 20 + .../PostSetCommentApprovalStatusResponse.md | 21 + .../PostSetCommentReviewStatusResponse.md | 20 + .../docs/PostSetCommentSpamStatusResponse.md | 20 + client/docs/PostSetCommentTextResponse.md | 21 + client/docs/PostUnFlagCommentResponse.md | 20 + client/docs/PostVoteResponse.md | 24 + client/docs/PublicApi.md | 313 +- client/docs/PutAwardBadgeResponse.md | 22 + client/docs/PutCloseThreadResponse.md | 20 + client/docs/PutRemoveBadgeResponse.md | 21 + client/docs/PutReopenThreadResponse.md | 20 + client/docs/ReactFeedPostPublicResponse.md | 22 + client/docs/RenderEmailTemplateResponse1.md | 21 + client/docs/ReplaceTenantPackageResponse.md | 20 + client/docs/ReplaceTenantUserResponse.md | 20 + .../ResetUserNotificationCountResponse.md | 20 + .../docs/ResetUserNotificationsResponse1.md | 20 + client/docs/SaveCommentResponse.md | 23 + client/docs/SearchUsersResponse1.md | 22 + client/docs/SendInviteResponse.md | 20 + client/docs/SendLoginLinkResponse.md | 20 + client/docs/SetCommentTextResponse1.md | 21 + client/docs/SetTrustFactorResponse.md | 21 + client/docs/UnBlockCommentPublicResponse.md | 21 + client/docs/UnBlockUserFromCommentResponse.md | 21 + client/docs/UnFlagCommentResponse.md | 22 + client/docs/UnLockCommentResponse.md | 20 + client/docs/UnPinCommentResponse.md | 21 + client/docs/UpdateCommentResponse.md | 20 + client/docs/UpdateEmailTemplateResponse.md | 20 + client/docs/UpdateFeedPostPublicResponse.md | 21 + client/docs/UpdateFeedPostResponse.md | 20 + client/docs/UpdateModeratorResponse.md | 20 + client/docs/UpdateNotificationResponse.md | 20 + client/docs/UpdateQuestionConfigResponse.md | 20 + client/docs/UpdateQuestionResultResponse.md | 20 + client/docs/UpdateTenantPackageResponse.md | 20 + client/docs/UpdateTenantResponse.md | 20 + client/docs/UpdateTenantUserResponse.md | 20 + client/docs/UpdateUserBadgeResponse.md | 20 + ...cationCommentSubscriptionStatusResponse.md | 7 + ...ificationPageSubscriptionStatusResponse.md | 7 + .../UpdateUserNotificationStatusResponse.md | 7 + client/docs/VoteCommentResponse.md | 24 + .../java/com/fastcomments/api/DefaultApi.java | 2404 ++++------ .../com/fastcomments/api/ModerationApi.java | 2692 +++++++---- .../java/com/fastcomments/api/PublicApi.java | 1203 ++--- .../java/com/fastcomments/invoker/JSON.java | 177 + .../model/AddHashTagResponse.java | 270 ++ .../model/AddHashTagsBulkResponse.java | 272 ++ .../AggregateQuestionResultsResponse1.java | 270 ++ .../model/BlockFromCommentPublicResponse.java | 271 ++ .../model/BlockUserFromCommentResponse.java | 271 ++ ...BulkAggregateQuestionResultsResponse1.java | 272 ++ .../model/ChangeTicketStateResponse1.java | 270 ++ .../CheckedCommentsForBlockedResponse.java | 271 ++ ...neCommentsWithQuestionResultsResponse.java | 270 ++ .../model/CreateCommentPublicResponse.java | 273 ++ .../model/CreateEmailTemplateResponse1.java | 270 ++ .../model/CreateFeedPostPublicResponse.java | 270 ++ .../model/CreateFeedPostResponse1.java | 270 ++ .../model/CreateModeratorResponse1.java | 270 ++ .../model/CreateQuestionConfigResponse1.java | 270 ++ .../model/CreateQuestionResultResponse1.java | 270 ++ .../model/CreateTenantPackageResponse1.java | 270 ++ .../model/CreateTenantResponse1.java | 270 ++ .../model/CreateTenantUserResponse1.java | 270 ++ .../model/CreateTicketResponse1.java | 270 ++ .../model/CreateUserBadgeResponse.java | 272 ++ .../model/CreateV1PageReactResponse.java | 269 ++ .../model/CreateV2PageReactResponse.java | 269 ++ .../model/CreateVoteResponse.java | 270 ++ .../model/DeleteCommentPublicResponse.java | 270 ++ .../model/DeleteCommentResponse.java | 270 ++ .../model/DeleteCommentVoteResponse.java | 269 ++ ...eleteEmailTemplateRenderErrorResponse.java | 269 ++ .../model/DeleteEmailTemplateResponse.java | 269 ++ .../model/DeleteFeedPostPublicResponse.java | 441 +- .../DeleteFeedPostPublicResponseAnyOf.java | 290 ++ .../model/DeleteHashTagResponse.java | 269 ++ .../model/DeleteModerationVoteResponse.java | 269 ++ .../model/DeleteModeratorResponse.java | 269 ++ .../DeleteNotificationCountResponse.java | 269 ++ .../DeletePendingWebhookEventResponse.java | 269 ++ .../model/DeleteQuestionConfigResponse.java | 269 ++ .../model/DeleteQuestionResultResponse.java | 269 ++ .../model/DeleteTenantPackageResponse.java | 269 ++ .../model/DeleteTenantResponse.java | 269 ++ .../model/DeleteTenantUserResponse.java | 269 ++ .../model/DeleteUserBadgeResponse.java | 269 ++ .../model/DeleteV1PageReactResponse.java | 269 ++ .../model/DeleteV2PageReactResponse.java | 269 ++ .../model/DeleteVoteResponse.java | 269 ++ .../model/FlagCommentPublicResponse.java | 269 ++ .../model/FlagCommentResponse1.java | 269 ++ .../model/GetApiCommentsResponse.java | 273 ++ .../model/GetApiExportStatusResponse.java | 269 ++ .../fastcomments/model/GetApiIdsResponse.java | 271 ++ .../model/GetAuditLogsResponse1.java | 272 ++ .../model/GetBanUsersFromCommentResponse.java | 272 ++ .../GetCachedNotificationCountResponse1.java | 270 ++ .../model/GetCommentBanStatusResponse1.java | 269 ++ .../model/GetCommentChildrenResponse.java | 272 ++ .../model/GetCommentResponse.java | 270 ++ .../model/GetCommentTextResponse1.java | 269 ++ .../GetCommentVoteUserNamesResponse.java | 271 ++ .../model/GetCommentsForUserResponse1.java | 271 ++ .../model/GetCommentsPublicResponse.java | 275 ++ .../model/GetCommentsResponse.java | 272 ++ .../fastcomments/model/GetCountResponse.java | 269 ++ .../fastcomments/model/GetCountsResponse.java | 269 ++ .../GetEmailTemplateDefinitionsResponse1.java | 272 ++ ...GetEmailTemplateRenderErrorsResponse1.java | 272 ++ .../model/GetEmailTemplateResponse1.java | 270 ++ .../model/GetEmailTemplatesResponse1.java | 272 ++ .../model/GetEventLogResponse1.java | 272 ++ .../model/GetFeedPostsPublicResponse.java | 275 ++ .../model/GetFeedPostsResponse1.java | 272 ++ .../model/GetFeedPostsStatsResponse.java | 272 ++ .../model/GetGifLargeResponse.java | 269 ++ .../model/GetGifsSearchResponse.java | 59 +- .../model/GetGlobalEventLogResponse.java | 272 ++ .../model/GetHashTagsResponse1.java | 272 ++ .../fastcomments/model/GetLogsResponse.java | 272 ++ .../model/GetManualBadgesForUserResponse.java | 272 ++ .../model/GetManualBadgesResponse.java | 272 ++ .../model/GetModerationCommentResponse.java | 270 ++ .../GetModerationCommentTextResponse.java | 269 ++ .../model/GetModeratorResponse1.java | 270 ++ .../model/GetModeratorsResponse1.java | 272 ++ .../model/GetNotificationCountResponse1.java | 269 ++ .../model/GetNotificationsResponse1.java | 272 ++ .../model/GetOfflineUsersResponse.java | 272 ++ .../model/GetOnlineUsersResponse.java | 272 ++ .../model/GetPagesPublicResponse.java | 272 ++ .../GetPendingWebhookEventCountResponse1.java | 269 ++ .../GetPendingWebhookEventsResponse1.java | 272 ++ .../model/GetPreBanSummaryResponse.java | 271 ++ .../model/GetQuestionConfigResponse1.java | 270 ++ .../model/GetQuestionConfigsResponse1.java | 272 ++ .../model/GetQuestionResultResponse1.java | 270 ++ .../model/GetQuestionResultsResponse1.java | 272 ++ .../GetSearchCommentsSummaryResponse.java | 269 ++ .../model/GetSearchPagesResponse.java | 272 ++ .../model/GetSearchSitesResponse.java | 272 ++ .../model/GetSearchSuggestResponse.java | 273 ++ .../model/GetSearchUsersResponse.java | 272 ++ .../model/GetTenantDailyUsagesResponse1.java | 272 ++ .../model/GetTenantPackageResponse1.java | 270 ++ .../model/GetTenantPackagesResponse1.java | 272 ++ .../model/GetTenantResponse1.java | 270 ++ .../model/GetTenantUserResponse1.java | 270 ++ .../model/GetTenantUsersResponse1.java | 272 ++ .../model/GetTenantsResponse1.java | 272 ++ .../model/GetTicketResponse1.java | 272 ++ .../model/GetTicketsResponse1.java | 272 ++ .../model/GetTranslationsResponse1.java | 271 ++ .../model/GetTrustFactorResponse.java | 269 ++ .../GetUserBadgeProgressByIdResponse.java | 270 ++ .../GetUserBadgeProgressByUserIdResponse.java | 270 ++ .../GetUserBadgeProgressListResponse.java | 272 ++ .../model/GetUserBadgeResponse.java | 270 ++ .../model/GetUserBadgesResponse.java | 272 ++ .../model/GetUserBanPreferenceResponse.java | 270 ++ .../GetUserInternalProfileResponse1.java | 270 ++ .../GetUserNotificationCountResponse1.java | 269 ++ .../model/GetUserNotificationsResponse.java | 274 ++ .../GetUserPresenceStatusesResponse1.java | 271 ++ .../model/GetUserReactsPublicResponse.java | 271 ++ .../fastcomments/model/GetUserResponse1.java | 270 ++ .../model/GetUsersInfoResponse.java | 272 ++ .../model/GetV1PageLikesResponse.java | 269 ++ .../model/GetV2PageReactUsersResponse1.java | 271 ++ .../model/GetV2PageReactsResponse.java | 273 ++ .../model/GetVotesForUserResponse1.java | 272 ++ .../fastcomments/model/GetVotesResponse1.java | 272 ++ .../model/LockCommentResponse.java | 269 ++ .../model/PatchHashTagResponse.java | 270 ++ .../model/PinCommentResponse.java | 272 ++ .../model/PostAdjustCommentVotesResponse.java | 269 ++ .../model/PostApiExportResponse.java | 269 ++ .../model/PostBanUserFromCommentResponse.java | 270 ++ .../model/PostBanUserUndoResponse.java | 269 ++ .../model/PostBulkPreBanSummaryResponse.java | 271 ++ .../model/PostCommentsByIdsResponse.java | 272 ++ .../model/PostFlagCommentResponse.java | 269 ++ .../model/PostRemoveCommentResponse.java | 60 +- .../PostRestoreDeletedCommentResponse.java | 269 ++ .../PostSetCommentApprovalStatusResponse.java | 269 ++ .../PostSetCommentReviewStatusResponse.java | 269 ++ .../PostSetCommentSpamStatusResponse.java | 269 ++ .../model/PostSetCommentTextResponse.java | 269 ++ .../model/PostUnFlagCommentResponse.java | 269 ++ .../fastcomments/model/PostVoteResponse.java | 270 ++ .../model/PutAwardBadgeResponse.java | 272 ++ .../model/PutCloseThreadResponse.java | 269 ++ .../model/PutRemoveBadgeResponse.java | 272 ++ .../model/PutReopenThreadResponse.java | 269 ++ .../model/ReactFeedPostPublicResponse.java | 269 ++ .../model/RenderEmailTemplateResponse1.java | 269 ++ .../model/ReplaceTenantPackageResponse.java | 269 ++ .../model/ReplaceTenantUserResponse.java | 269 ++ .../ResetUserNotificationCountResponse.java | 269 ++ .../ResetUserNotificationsResponse1.java | 269 ++ .../model/SaveCommentResponse.java | 273 ++ .../model/SearchUsersResponse1.java | 273 ++ .../model/SendInviteResponse.java | 269 ++ .../model/SendLoginLinkResponse.java | 269 ++ .../model/SetCommentTextResponse1.java | 270 ++ .../model/SetTrustFactorResponse.java | 269 ++ .../model/UnBlockCommentPublicResponse.java | 271 ++ .../model/UnBlockUserFromCommentResponse.java | 271 ++ .../model/UnFlagCommentResponse.java | 269 ++ .../model/UnLockCommentResponse.java | 269 ++ .../model/UnPinCommentResponse.java | 272 ++ .../model/UpdateCommentResponse.java | 269 ++ .../model/UpdateEmailTemplateResponse.java | 269 ++ .../model/UpdateFeedPostPublicResponse.java | 270 ++ .../model/UpdateFeedPostResponse.java | 269 ++ .../model/UpdateModeratorResponse.java | 269 ++ .../model/UpdateNotificationResponse.java | 269 ++ .../model/UpdateQuestionConfigResponse.java | 269 ++ .../model/UpdateQuestionResultResponse.java | 269 ++ .../model/UpdateTenantPackageResponse.java | 269 ++ .../model/UpdateTenantResponse.java | 269 ++ .../model/UpdateTenantUserResponse.java | 269 ++ .../model/UpdateUserBadgeResponse.java | 269 ++ ...tionCommentSubscriptionStatusResponse.java | 59 +- ...icationPageSubscriptionStatusResponse.java | 59 +- .../UpdateUserNotificationStatusResponse.java | 59 +- .../model/VoteCommentResponse.java | 270 ++ .../com/fastcomments/api/DefaultApiTest.java | 334 +- .../fastcomments/api/ModerationApiTest.java | 269 +- .../com/fastcomments/api/PublicApiTest.java | 166 +- .../model/AddHashTagResponseTest.java | 117 + .../model/AddHashTagsBulkResponseTest.java | 119 + ...AggregateQuestionResultsResponse1Test.java | 117 + .../BlockFromCommentPublicResponseTest.java | 118 + .../BlockUserFromCommentResponseTest.java | 118 + ...AggregateQuestionResultsResponse1Test.java | 119 + .../model/ChangeTicketStateResponse1Test.java | 117 + ...CheckedCommentsForBlockedResponseTest.java | 118 + ...mmentsWithQuestionResultsResponseTest.java | 117 + .../CreateCommentPublicResponseTest.java | 144 + .../CreateEmailTemplateResponse1Test.java | 117 + .../CreateFeedPostPublicResponseTest.java | 117 + .../model/CreateFeedPostResponse1Test.java | 117 + .../model/CreateModeratorResponse1Test.java | 117 + .../CreateQuestionConfigResponse1Test.java | 117 + .../CreateQuestionResultResponse1Test.java | 117 + .../CreateTenantPackageResponse1Test.java | 117 + .../model/CreateTenantResponse1Test.java | 117 + .../model/CreateTenantUserResponse1Test.java | 117 + .../model/CreateTicketResponse1Test.java | 117 + .../model/CreateUserBadgeResponseTest.java | 127 + .../model/CreateV1PageReactResponseTest.java | 108 + .../model/CreateV2PageReactResponseTest.java | 108 + .../model/CreateVoteResponseTest.java | 141 + .../DeleteCommentPublicResponseTest.java | 125 + .../model/DeleteCommentResponseTest.java | 117 + .../model/DeleteCommentVoteResponseTest.java | 116 + ...eEmailTemplateRenderErrorResponseTest.java | 108 + .../DeleteEmailTemplateResponseTest.java | 108 + ...DeleteFeedPostPublicResponseAnyOfTest.java | 49 + .../DeleteFeedPostPublicResponseTest.java | 59 + .../model/DeleteHashTagResponseTest.java | 108 + .../DeleteModerationVoteResponseTest.java | 116 + .../model/DeleteModeratorResponseTest.java | 108 + .../DeleteNotificationCountResponseTest.java | 108 + ...DeletePendingWebhookEventResponseTest.java | 108 + .../DeleteQuestionConfigResponseTest.java | 108 + .../DeleteQuestionResultResponseTest.java | 108 + .../DeleteTenantPackageResponseTest.java | 108 + .../model/DeleteTenantResponseTest.java | 108 + .../model/DeleteTenantUserResponseTest.java | 108 + .../model/DeleteUserBadgeResponseTest.java | 108 + .../model/DeleteV1PageReactResponseTest.java | 108 + .../model/DeleteV2PageReactResponseTest.java | 108 + .../model/DeleteVoteResponseTest.java | 116 + .../model/FlagCommentPublicResponseTest.java | 108 + .../model/FlagCommentResponse1Test.java | 124 + .../model/GetApiCommentsResponseTest.java | 136 + .../model/GetApiExportStatusResponseTest.java | 132 + .../model/GetApiIdsResponseTest.java | 126 + .../model/GetAuditLogsResponse1Test.java | 119 + .../GetBanUsersFromCommentResponseTest.java | 119 + ...tCachedNotificationCountResponse1Test.java | 117 + .../GetCommentBanStatusResponse1Test.java | 124 + .../model/GetCommentChildrenResponseTest.java | 119 + .../model/GetCommentResponseTest.java | 117 + .../model/GetCommentTextResponse1Test.java | 124 + .../GetCommentVoteUserNamesResponseTest.java | 126 + .../GetCommentsForUserResponse1Test.java | 118 + .../model/GetCommentsPublicResponseTest.java | 298 ++ .../model/GetCommentsResponseTest.java | 119 + .../model/GetCountResponseTest.java | 116 + .../model/GetCountsResponseTest.java | 116 + ...EmailTemplateDefinitionsResponse1Test.java | 119 + ...mailTemplateRenderErrorsResponse1Test.java | 119 + .../model/GetEmailTemplateResponse1Test.java | 117 + .../model/GetEmailTemplatesResponse1Test.java | 119 + .../model/GetEventLogResponse1Test.java | 119 + .../model/GetFeedPostsPublicResponseTest.java | 162 + .../model/GetFeedPostsResponse1Test.java | 119 + .../model/GetFeedPostsStatsResponseTest.java | 119 + .../model/GetGifLargeResponseTest.java | 116 + .../model/GetGifsSearchResponseTest.java | 50 + .../model/GetGlobalEventLogResponseTest.java | 119 + .../model/GetHashTagsResponse1Test.java | 119 + .../model/GetLogsResponseTest.java | 119 + .../GetManualBadgesForUserResponseTest.java | 119 + .../model/GetManualBadgesResponseTest.java | 119 + .../GetModerationCommentResponseTest.java | 117 + .../GetModerationCommentTextResponseTest.java | 116 + .../model/GetModeratorResponse1Test.java | 117 + .../model/GetModeratorsResponse1Test.java | 119 + .../GetNotificationCountResponse1Test.java | 116 + .../model/GetNotificationsResponse1Test.java | 119 + .../model/GetOfflineUsersResponseTest.java | 135 + .../model/GetOnlineUsersResponseTest.java | 151 + .../model/GetPagesPublicResponseTest.java | 127 + ...PendingWebhookEventCountResponse1Test.java | 116 + .../GetPendingWebhookEventsResponse1Test.java | 119 + .../model/GetPreBanSummaryResponseTest.java | 126 + .../model/GetQuestionConfigResponse1Test.java | 117 + .../GetQuestionConfigsResponse1Test.java | 119 + .../model/GetQuestionResultResponse1Test.java | 117 + .../GetQuestionResultsResponse1Test.java | 119 + .../GetSearchCommentsSummaryResponseTest.java | 116 + .../model/GetSearchPagesResponseTest.java | 119 + .../model/GetSearchSitesResponseTest.java | 119 + .../model/GetSearchSuggestResponseTest.java | 128 + .../model/GetSearchUsersResponseTest.java | 119 + .../GetTenantDailyUsagesResponse1Test.java | 119 + .../model/GetTenantPackageResponse1Test.java | 117 + .../model/GetTenantPackagesResponse1Test.java | 119 + .../model/GetTenantResponse1Test.java | 117 + .../model/GetTenantUserResponse1Test.java | 117 + .../model/GetTenantUsersResponse1Test.java | 119 + .../model/GetTenantsResponse1Test.java | 119 + .../model/GetTicketResponse1Test.java | 127 + .../model/GetTicketsResponse1Test.java | 119 + .../model/GetTranslationsResponse1Test.java | 118 + .../model/GetTrustFactorResponseTest.java | 124 + .../GetUserBadgeProgressByIdResponseTest.java | 117 + ...UserBadgeProgressByUserIdResponseTest.java | 117 + .../GetUserBadgeProgressListResponseTest.java | 119 + .../model/GetUserBadgeResponseTest.java | 117 + .../model/GetUserBadgesResponseTest.java | 119 + .../GetUserBanPreferenceResponseTest.java | 117 + .../GetUserInternalProfileResponse1Test.java | 117 + ...GetUserNotificationCountResponse1Test.java | 116 + .../GetUserNotificationsResponseTest.java | 145 + .../GetUserPresenceStatusesResponse1Test.java | 118 + .../GetUserReactsPublicResponseTest.java | 118 + .../model/GetUserResponse1Test.java | 117 + .../model/GetUsersInfoResponseTest.java | 119 + .../model/GetV1PageLikesResponseTest.java | 140 + .../GetV2PageReactUsersResponse1Test.java | 118 + .../model/GetV2PageReactsResponseTest.java | 128 + .../model/GetVotesForUserResponse1Test.java | 135 + .../model/GetVotesResponse1Test.java | 135 + .../model/LockCommentResponseTest.java | 108 + .../model/PatchHashTagResponseTest.java | 117 + .../model/PinCommentResponseTest.java | 119 + .../PostAdjustCommentVotesResponseTest.java | 116 + .../model/PostApiExportResponseTest.java | 116 + .../PostBanUserFromCommentResponseTest.java | 117 + .../model/PostBanUserUndoResponseTest.java | 108 + .../PostBulkPreBanSummaryResponseTest.java | 150 + .../model/PostCommentsByIdsResponseTest.java | 119 + .../model/PostFlagCommentResponseTest.java | 108 + .../model/PostRemoveCommentResponseTest.java | 59 + ...PostRestoreDeletedCommentResponseTest.java | 108 + ...tSetCommentApprovalStatusResponseTest.java | 116 + ...ostSetCommentReviewStatusResponseTest.java | 108 + .../PostSetCommentSpamStatusResponseTest.java | 108 + .../model/PostSetCommentTextResponseTest.java | 116 + .../model/PostUnFlagCommentResponseTest.java | 108 + .../model/PostVoteResponseTest.java | 141 + .../model/PutAwardBadgeResponseTest.java | 127 + .../model/PutCloseThreadResponseTest.java | 108 + .../model/PutRemoveBadgeResponseTest.java | 119 + .../model/PutReopenThreadResponseTest.java | 108 + .../ReactFeedPostPublicResponseTest.java | 124 + .../RenderEmailTemplateResponse1Test.java | 116 + .../ReplaceTenantPackageResponseTest.java | 108 + .../model/ReplaceTenantUserResponseTest.java | 108 + ...esetUserNotificationCountResponseTest.java | 108 + .../ResetUserNotificationsResponse1Test.java | 108 + .../model/SaveCommentResponseTest.java | 136 + .../model/SearchUsersResponse1Test.java | 128 + .../model/SendInviteResponseTest.java | 108 + .../model/SendLoginLinkResponseTest.java | 108 + .../model/SetCommentTextResponse1Test.java | 117 + .../model/SetTrustFactorResponseTest.java | 116 + .../UnBlockCommentPublicResponseTest.java | 118 + .../UnBlockUserFromCommentResponseTest.java | 118 + .../model/UnFlagCommentResponseTest.java | 124 + .../model/UnLockCommentResponseTest.java | 108 + .../model/UnPinCommentResponseTest.java | 119 + .../model/UpdateCommentResponseTest.java | 108 + .../UpdateEmailTemplateResponseTest.java | 108 + .../UpdateFeedPostPublicResponseTest.java | 117 + .../model/UpdateFeedPostResponseTest.java | 108 + .../model/UpdateModeratorResponseTest.java | 108 + .../model/UpdateNotificationResponseTest.java | 108 + .../UpdateQuestionConfigResponseTest.java | 108 + .../UpdateQuestionResultResponseTest.java | 108 + .../UpdateTenantPackageResponseTest.java | 108 + .../model/UpdateTenantResponseTest.java | 108 + .../model/UpdateTenantUserResponseTest.java | 108 + .../model/UpdateUserBadgeResponseTest.java | 108 + ...CommentSubscriptionStatusResponseTest.java | 58 + ...ionPageSubscriptionStatusResponseTest.java | 58 + ...ateUserNotificationStatusResponseTest.java | 58 + .../model/VoteCommentResponseTest.java | 141 + openapi.json | 4082 +++++++++-------- 563 files changed, 82200 insertions(+), 7736 deletions(-) create mode 100644 client/docs/AddHashTagResponse.md create mode 100644 client/docs/AddHashTagsBulkResponse.md create mode 100644 client/docs/AggregateQuestionResultsResponse1.md create mode 100644 client/docs/BlockFromCommentPublicResponse.md create mode 100644 client/docs/BlockUserFromCommentResponse.md create mode 100644 client/docs/BulkAggregateQuestionResultsResponse1.md create mode 100644 client/docs/ChangeTicketStateResponse1.md create mode 100644 client/docs/CheckedCommentsForBlockedResponse.md create mode 100644 client/docs/CombineCommentsWithQuestionResultsResponse.md create mode 100644 client/docs/CreateCommentPublicResponse.md create mode 100644 client/docs/CreateEmailTemplateResponse1.md create mode 100644 client/docs/CreateFeedPostPublicResponse.md create mode 100644 client/docs/CreateFeedPostResponse1.md create mode 100644 client/docs/CreateModeratorResponse1.md create mode 100644 client/docs/CreateQuestionConfigResponse1.md create mode 100644 client/docs/CreateQuestionResultResponse1.md create mode 100644 client/docs/CreateTenantPackageResponse1.md create mode 100644 client/docs/CreateTenantResponse1.md create mode 100644 client/docs/CreateTenantUserResponse1.md create mode 100644 client/docs/CreateTicketResponse1.md create mode 100644 client/docs/CreateUserBadgeResponse.md create mode 100644 client/docs/CreateV1PageReactResponse.md create mode 100644 client/docs/CreateV2PageReactResponse.md create mode 100644 client/docs/CreateVoteResponse.md create mode 100644 client/docs/DeleteCommentPublicResponse.md create mode 100644 client/docs/DeleteCommentResponse.md create mode 100644 client/docs/DeleteCommentVoteResponse.md create mode 100644 client/docs/DeleteEmailTemplateRenderErrorResponse.md create mode 100644 client/docs/DeleteEmailTemplateResponse.md create mode 100644 client/docs/DeleteFeedPostPublicResponseAnyOf.md create mode 100644 client/docs/DeleteHashTagResponse.md create mode 100644 client/docs/DeleteModerationVoteResponse.md create mode 100644 client/docs/DeleteModeratorResponse.md create mode 100644 client/docs/DeleteNotificationCountResponse.md create mode 100644 client/docs/DeletePendingWebhookEventResponse.md create mode 100644 client/docs/DeleteQuestionConfigResponse.md create mode 100644 client/docs/DeleteQuestionResultResponse.md create mode 100644 client/docs/DeleteTenantPackageResponse.md create mode 100644 client/docs/DeleteTenantResponse.md create mode 100644 client/docs/DeleteTenantUserResponse.md create mode 100644 client/docs/DeleteUserBadgeResponse.md create mode 100644 client/docs/DeleteV1PageReactResponse.md create mode 100644 client/docs/DeleteV2PageReactResponse.md create mode 100644 client/docs/DeleteVoteResponse.md create mode 100644 client/docs/FlagCommentPublicResponse.md create mode 100644 client/docs/FlagCommentResponse1.md create mode 100644 client/docs/GetApiCommentsResponse.md create mode 100644 client/docs/GetApiExportStatusResponse.md create mode 100644 client/docs/GetApiIdsResponse.md create mode 100644 client/docs/GetAuditLogsResponse1.md create mode 100644 client/docs/GetBanUsersFromCommentResponse.md create mode 100644 client/docs/GetCachedNotificationCountResponse1.md create mode 100644 client/docs/GetCommentBanStatusResponse1.md create mode 100644 client/docs/GetCommentChildrenResponse.md create mode 100644 client/docs/GetCommentResponse.md create mode 100644 client/docs/GetCommentTextResponse1.md create mode 100644 client/docs/GetCommentVoteUserNamesResponse.md create mode 100644 client/docs/GetCommentsForUserResponse1.md create mode 100644 client/docs/GetCommentsPublicResponse.md create mode 100644 client/docs/GetCommentsResponse.md create mode 100644 client/docs/GetCountResponse.md create mode 100644 client/docs/GetCountsResponse.md create mode 100644 client/docs/GetEmailTemplateDefinitionsResponse1.md create mode 100644 client/docs/GetEmailTemplateRenderErrorsResponse1.md create mode 100644 client/docs/GetEmailTemplateResponse1.md create mode 100644 client/docs/GetEmailTemplatesResponse1.md create mode 100644 client/docs/GetEventLogResponse1.md create mode 100644 client/docs/GetFeedPostsPublicResponse.md create mode 100644 client/docs/GetFeedPostsResponse1.md create mode 100644 client/docs/GetFeedPostsStatsResponse.md create mode 100644 client/docs/GetGifLargeResponse.md create mode 100644 client/docs/GetGlobalEventLogResponse.md create mode 100644 client/docs/GetHashTagsResponse1.md create mode 100644 client/docs/GetLogsResponse.md create mode 100644 client/docs/GetManualBadgesForUserResponse.md create mode 100644 client/docs/GetManualBadgesResponse.md create mode 100644 client/docs/GetModerationCommentResponse.md create mode 100644 client/docs/GetModerationCommentTextResponse.md create mode 100644 client/docs/GetModeratorResponse1.md create mode 100644 client/docs/GetModeratorsResponse1.md create mode 100644 client/docs/GetNotificationCountResponse1.md create mode 100644 client/docs/GetNotificationsResponse1.md create mode 100644 client/docs/GetOfflineUsersResponse.md create mode 100644 client/docs/GetOnlineUsersResponse.md create mode 100644 client/docs/GetPagesPublicResponse.md create mode 100644 client/docs/GetPendingWebhookEventCountResponse1.md create mode 100644 client/docs/GetPendingWebhookEventsResponse1.md create mode 100644 client/docs/GetPreBanSummaryResponse.md create mode 100644 client/docs/GetQuestionConfigResponse1.md create mode 100644 client/docs/GetQuestionConfigsResponse1.md create mode 100644 client/docs/GetQuestionResultResponse1.md create mode 100644 client/docs/GetQuestionResultsResponse1.md create mode 100644 client/docs/GetSearchCommentsSummaryResponse.md create mode 100644 client/docs/GetSearchPagesResponse.md create mode 100644 client/docs/GetSearchSitesResponse.md create mode 100644 client/docs/GetSearchSuggestResponse.md create mode 100644 client/docs/GetSearchUsersResponse.md create mode 100644 client/docs/GetTenantDailyUsagesResponse1.md create mode 100644 client/docs/GetTenantPackageResponse1.md create mode 100644 client/docs/GetTenantPackagesResponse1.md create mode 100644 client/docs/GetTenantResponse1.md create mode 100644 client/docs/GetTenantUserResponse1.md create mode 100644 client/docs/GetTenantUsersResponse1.md create mode 100644 client/docs/GetTenantsResponse1.md create mode 100644 client/docs/GetTicketResponse1.md create mode 100644 client/docs/GetTicketsResponse1.md create mode 100644 client/docs/GetTranslationsResponse1.md create mode 100644 client/docs/GetTrustFactorResponse.md create mode 100644 client/docs/GetUserBadgeProgressByIdResponse.md create mode 100644 client/docs/GetUserBadgeProgressByUserIdResponse.md create mode 100644 client/docs/GetUserBadgeProgressListResponse.md create mode 100644 client/docs/GetUserBadgeResponse.md create mode 100644 client/docs/GetUserBadgesResponse.md create mode 100644 client/docs/GetUserBanPreferenceResponse.md create mode 100644 client/docs/GetUserInternalProfileResponse1.md create mode 100644 client/docs/GetUserNotificationCountResponse1.md create mode 100644 client/docs/GetUserNotificationsResponse.md create mode 100644 client/docs/GetUserPresenceStatusesResponse1.md create mode 100644 client/docs/GetUserReactsPublicResponse.md create mode 100644 client/docs/GetUserResponse1.md create mode 100644 client/docs/GetUsersInfoResponse.md create mode 100644 client/docs/GetV1PageLikesResponse.md create mode 100644 client/docs/GetV2PageReactUsersResponse1.md create mode 100644 client/docs/GetV2PageReactsResponse.md create mode 100644 client/docs/GetVotesForUserResponse1.md create mode 100644 client/docs/GetVotesResponse1.md create mode 100644 client/docs/LockCommentResponse.md create mode 100644 client/docs/PatchHashTagResponse.md create mode 100644 client/docs/PinCommentResponse.md create mode 100644 client/docs/PostAdjustCommentVotesResponse.md create mode 100644 client/docs/PostApiExportResponse.md create mode 100644 client/docs/PostBanUserFromCommentResponse.md create mode 100644 client/docs/PostBanUserUndoResponse.md create mode 100644 client/docs/PostBulkPreBanSummaryResponse.md create mode 100644 client/docs/PostCommentsByIdsResponse.md create mode 100644 client/docs/PostFlagCommentResponse.md create mode 100644 client/docs/PostRestoreDeletedCommentResponse.md create mode 100644 client/docs/PostSetCommentApprovalStatusResponse.md create mode 100644 client/docs/PostSetCommentReviewStatusResponse.md create mode 100644 client/docs/PostSetCommentSpamStatusResponse.md create mode 100644 client/docs/PostSetCommentTextResponse.md create mode 100644 client/docs/PostUnFlagCommentResponse.md create mode 100644 client/docs/PostVoteResponse.md create mode 100644 client/docs/PutAwardBadgeResponse.md create mode 100644 client/docs/PutCloseThreadResponse.md create mode 100644 client/docs/PutRemoveBadgeResponse.md create mode 100644 client/docs/PutReopenThreadResponse.md create mode 100644 client/docs/ReactFeedPostPublicResponse.md create mode 100644 client/docs/RenderEmailTemplateResponse1.md create mode 100644 client/docs/ReplaceTenantPackageResponse.md create mode 100644 client/docs/ReplaceTenantUserResponse.md create mode 100644 client/docs/ResetUserNotificationCountResponse.md create mode 100644 client/docs/ResetUserNotificationsResponse1.md create mode 100644 client/docs/SaveCommentResponse.md create mode 100644 client/docs/SearchUsersResponse1.md create mode 100644 client/docs/SendInviteResponse.md create mode 100644 client/docs/SendLoginLinkResponse.md create mode 100644 client/docs/SetCommentTextResponse1.md create mode 100644 client/docs/SetTrustFactorResponse.md create mode 100644 client/docs/UnBlockCommentPublicResponse.md create mode 100644 client/docs/UnBlockUserFromCommentResponse.md create mode 100644 client/docs/UnFlagCommentResponse.md create mode 100644 client/docs/UnLockCommentResponse.md create mode 100644 client/docs/UnPinCommentResponse.md create mode 100644 client/docs/UpdateCommentResponse.md create mode 100644 client/docs/UpdateEmailTemplateResponse.md create mode 100644 client/docs/UpdateFeedPostPublicResponse.md create mode 100644 client/docs/UpdateFeedPostResponse.md create mode 100644 client/docs/UpdateModeratorResponse.md create mode 100644 client/docs/UpdateNotificationResponse.md create mode 100644 client/docs/UpdateQuestionConfigResponse.md create mode 100644 client/docs/UpdateQuestionResultResponse.md create mode 100644 client/docs/UpdateTenantPackageResponse.md create mode 100644 client/docs/UpdateTenantResponse.md create mode 100644 client/docs/UpdateTenantUserResponse.md create mode 100644 client/docs/UpdateUserBadgeResponse.md create mode 100644 client/docs/VoteCommentResponse.md create mode 100644 client/src/main/java/com/fastcomments/model/AddHashTagResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/AddHashTagsBulkResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/AggregateQuestionResultsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/BlockFromCommentPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/BlockUserFromCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/ChangeTicketStateResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/CheckedCommentsForBlockedResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateCommentPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateEmailTemplateResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateFeedPostPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateFeedPostResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateModeratorResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateQuestionConfigResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateQuestionResultResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateTenantPackageResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateTenantResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateTenantUserResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateTicketResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateUserBadgeResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateV1PageReactResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateV2PageReactResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/CreateVoteResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteCommentPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteCommentVoteResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteEmailTemplateResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOf.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteHashTagResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteModerationVoteResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteModeratorResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteNotificationCountResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeletePendingWebhookEventResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteQuestionConfigResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteQuestionResultResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteTenantPackageResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteTenantResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteTenantUserResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteUserBadgeResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteV1PageReactResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteV2PageReactResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/DeleteVoteResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/FlagCommentPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/FlagCommentResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetApiCommentsResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetApiExportStatusResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetApiIdsResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetAuditLogsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetBanUsersFromCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetCachedNotificationCountResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetCommentBanStatusResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetCommentChildrenResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetCommentTextResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetCommentVoteUserNamesResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetCommentsForUserResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetCommentsPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetCommentsResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetCountResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetCountsResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetEmailTemplateResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetEmailTemplatesResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetEventLogResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetFeedPostsPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetFeedPostsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetFeedPostsStatsResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetGifLargeResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetGlobalEventLogResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetHashTagsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetLogsResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetManualBadgesForUserResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetManualBadgesResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetModerationCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetModerationCommentTextResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetModeratorResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetModeratorsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetNotificationCountResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetNotificationsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetOfflineUsersResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetOnlineUsersResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetPagesPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetPreBanSummaryResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetQuestionConfigResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetQuestionConfigsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetQuestionResultResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetQuestionResultsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetSearchCommentsSummaryResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetSearchPagesResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetSearchSitesResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetSearchSuggestResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetSearchUsersResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetTenantPackageResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetTenantPackagesResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetTenantResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetTenantUserResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetTenantUsersResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetTenantsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetTicketResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetTicketsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetTranslationsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetTrustFactorResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByIdResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserBadgeProgressListResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserBadgeResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserBadgesResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserBanPreferenceResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserNotificationCountResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserNotificationsResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserReactsPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUserResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetUsersInfoResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetV1PageLikesResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetV2PageReactsResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/GetVotesForUserResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/GetVotesResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/LockCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PatchHashTagResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PinCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostAdjustCommentVotesResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostApiExportResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostBanUserFromCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostBanUserUndoResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostBulkPreBanSummaryResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostCommentsByIdsResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostFlagCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostRestoreDeletedCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostSetCommentApprovalStatusResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostSetCommentReviewStatusResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostSetCommentSpamStatusResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostSetCommentTextResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostUnFlagCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PostVoteResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PutAwardBadgeResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PutCloseThreadResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PutRemoveBadgeResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/PutReopenThreadResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/ReactFeedPostPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/RenderEmailTemplateResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/ReplaceTenantPackageResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/ReplaceTenantUserResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/ResetUserNotificationCountResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/ResetUserNotificationsResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/SaveCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/SearchUsersResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/SendInviteResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/SendLoginLinkResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/SetCommentTextResponse1.java create mode 100644 client/src/main/java/com/fastcomments/model/SetTrustFactorResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UnBlockCommentPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UnBlockUserFromCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UnFlagCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UnLockCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UnPinCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateCommentResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateEmailTemplateResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateFeedPostPublicResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateFeedPostResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateModeratorResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateNotificationResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateQuestionConfigResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateQuestionResultResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateTenantPackageResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateTenantResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateTenantUserResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/UpdateUserBadgeResponse.java create mode 100644 client/src/main/java/com/fastcomments/model/VoteCommentResponse.java create mode 100644 client/src/test/java/com/fastcomments/model/AddHashTagResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/AddHashTagsBulkResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/AggregateQuestionResultsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/BlockFromCommentPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/BlockUserFromCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/ChangeTicketStateResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/CheckedCommentsForBlockedResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateCommentPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateEmailTemplateResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateFeedPostPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateFeedPostResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateModeratorResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateQuestionConfigResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateQuestionResultResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateTenantPackageResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateTenantResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateTenantUserResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateTicketResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateUserBadgeResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateV1PageReactResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateV2PageReactResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/CreateVoteResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteCommentPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteCommentVoteResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteEmailTemplateResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOfTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteHashTagResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteModerationVoteResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteModeratorResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteNotificationCountResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeletePendingWebhookEventResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteQuestionConfigResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteQuestionResultResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteTenantPackageResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteTenantResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteTenantUserResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteUserBadgeResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteV1PageReactResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteV2PageReactResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/DeleteVoteResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/FlagCommentPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/FlagCommentResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetApiCommentsResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetApiExportStatusResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetApiIdsResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetAuditLogsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetBanUsersFromCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetCachedNotificationCountResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetCommentBanStatusResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetCommentChildrenResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetCommentTextResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetCommentVoteUserNamesResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetCommentsForUserResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetCommentsPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetCommentsResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetCountResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetCountsResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetEmailTemplateResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetEmailTemplatesResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetEventLogResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetFeedPostsPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetFeedPostsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetFeedPostsStatsResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetGifLargeResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetGlobalEventLogResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetHashTagsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetLogsResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetManualBadgesForUserResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetManualBadgesResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetModerationCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetModerationCommentTextResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetModeratorResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetModeratorsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetNotificationCountResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetNotificationsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetOfflineUsersResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetOnlineUsersResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetPagesPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetPendingWebhookEventsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetPreBanSummaryResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetQuestionConfigResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetQuestionConfigsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetQuestionResultResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetQuestionResultsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetSearchCommentsSummaryResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetSearchPagesResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetSearchSitesResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetSearchSuggestResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetSearchUsersResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetTenantDailyUsagesResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetTenantPackageResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetTenantPackagesResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetTenantResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetTenantUserResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetTenantUsersResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetTenantsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetTicketResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetTicketsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetTranslationsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetTrustFactorResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByIdResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserBadgeProgressListResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserBadgeResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserBadgesResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserBanPreferenceResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserNotificationCountResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserNotificationsResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserPresenceStatusesResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserReactsPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUserResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetUsersInfoResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetV1PageLikesResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetV2PageReactUsersResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetV2PageReactsResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/GetVotesForUserResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/GetVotesResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/LockCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PatchHashTagResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PinCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostAdjustCommentVotesResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostApiExportResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostBanUserFromCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostBanUserUndoResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostBulkPreBanSummaryResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostCommentsByIdsResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostFlagCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostRestoreDeletedCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostSetCommentApprovalStatusResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostSetCommentReviewStatusResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostSetCommentSpamStatusResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostSetCommentTextResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostUnFlagCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PostVoteResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PutAwardBadgeResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PutCloseThreadResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PutRemoveBadgeResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/PutReopenThreadResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/ReactFeedPostPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/RenderEmailTemplateResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/ReplaceTenantPackageResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/ReplaceTenantUserResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/ResetUserNotificationCountResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/ResetUserNotificationsResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/SaveCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/SearchUsersResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/SendInviteResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/SendLoginLinkResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/SetCommentTextResponse1Test.java create mode 100644 client/src/test/java/com/fastcomments/model/SetTrustFactorResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UnBlockCommentPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UnBlockUserFromCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UnFlagCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UnLockCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UnPinCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateCommentResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateEmailTemplateResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateFeedPostPublicResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateFeedPostResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateModeratorResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateNotificationResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateQuestionConfigResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateQuestionResultResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateTenantPackageResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateTenantResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateTenantUserResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/UpdateUserBadgeResponseTest.java create mode 100644 client/src/test/java/com/fastcomments/model/VoteCommentResponseTest.java diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index fb0b9ca0..3e582d5f 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -40,11 +40,14 @@ docs/APIUserSubscription.md docs/AddDomainConfigParams.md docs/AddDomainConfigResponse.md docs/AddDomainConfigResponseAnyOf.md +docs/AddHashTagResponse.md +docs/AddHashTagsBulkResponse.md docs/AddPageAPIResponse.md docs/AddSSOUserAPIResponse.md docs/AdjustCommentVotesParams.md docs/AdjustVotesResponse.md docs/AggregateQuestionResultsResponse.md +docs/AggregateQuestionResultsResponse1.md docs/AggregateResponse.md docs/AggregateTimeBucket.md docs/AggregationAPIError.md @@ -64,12 +67,15 @@ docs/BannedUserMatchMatchedOnValue.md docs/BannedUserMatchType.md docs/BillingInfo.md docs/BlockFromCommentParams.md +docs/BlockFromCommentPublicResponse.md docs/BlockSuccess.md +docs/BlockUserFromCommentResponse.md docs/BuildModerationFilterParams.md docs/BuildModerationFilterResponse.md docs/BulkAggregateQuestionItem.md docs/BulkAggregateQuestionResultsRequest.md docs/BulkAggregateQuestionResultsResponse.md +docs/BulkAggregateQuestionResultsResponse1.md docs/BulkCreateHashTagsBody.md docs/BulkCreateHashTagsBodyTagsInner.md docs/BulkCreateHashTagsResponse.md @@ -79,7 +85,10 @@ docs/BulkPreBanSummary.md docs/ChangeCommentPinStatusResponse.md docs/ChangeTicketStateBody.md docs/ChangeTicketStateResponse.md +docs/ChangeTicketStateResponse1.md docs/CheckBlockedCommentsResponse.md +docs/CheckedCommentsForBlockedResponse.md +docs/CombineCommentsWithQuestionResultsResponse.md docs/CombineQuestionResultsWithCommentsResponse.md docs/CommentData.md docs/CommentHTMLRenderingMode.md @@ -99,41 +108,76 @@ docs/CreateAPIPageData.md docs/CreateAPISSOUserData.md docs/CreateAPIUserSubscriptionData.md docs/CreateCommentParams.md +docs/CreateCommentPublicResponse.md docs/CreateEmailTemplateBody.md docs/CreateEmailTemplateResponse.md +docs/CreateEmailTemplateResponse1.md docs/CreateFeedPostParams.md +docs/CreateFeedPostPublicResponse.md docs/CreateFeedPostResponse.md +docs/CreateFeedPostResponse1.md docs/CreateFeedPostsResponse.md docs/CreateHashTagBody.md docs/CreateHashTagResponse.md docs/CreateModeratorBody.md docs/CreateModeratorResponse.md +docs/CreateModeratorResponse1.md docs/CreateQuestionConfigBody.md docs/CreateQuestionConfigResponse.md +docs/CreateQuestionConfigResponse1.md docs/CreateQuestionResultBody.md docs/CreateQuestionResultResponse.md +docs/CreateQuestionResultResponse1.md docs/CreateSubscriptionAPIResponse.md docs/CreateTenantBody.md docs/CreateTenantPackageBody.md docs/CreateTenantPackageResponse.md +docs/CreateTenantPackageResponse1.md docs/CreateTenantResponse.md +docs/CreateTenantResponse1.md docs/CreateTenantUserBody.md docs/CreateTenantUserResponse.md +docs/CreateTenantUserResponse1.md docs/CreateTicketBody.md docs/CreateTicketResponse.md +docs/CreateTicketResponse1.md docs/CreateUserBadgeParams.md +docs/CreateUserBadgeResponse.md docs/CreateV1PageReact.md +docs/CreateV1PageReactResponse.md +docs/CreateV2PageReactResponse.md +docs/CreateVoteResponse.md docs/CustomConfigParameters.md docs/CustomEmailTemplate.md docs/DefaultApi.md docs/DeleteCommentAction.md +docs/DeleteCommentPublicResponse.md +docs/DeleteCommentResponse.md docs/DeleteCommentResult.md +docs/DeleteCommentVoteResponse.md docs/DeleteDomainConfigResponse.md +docs/DeleteEmailTemplateRenderErrorResponse.md +docs/DeleteEmailTemplateResponse.md docs/DeleteFeedPostPublicResponse.md +docs/DeleteFeedPostPublicResponseAnyOf.md docs/DeleteHashTagRequestBody.md +docs/DeleteHashTagResponse.md +docs/DeleteModerationVoteResponse.md +docs/DeleteModeratorResponse.md +docs/DeleteNotificationCountResponse.md docs/DeletePageAPIResponse.md +docs/DeletePendingWebhookEventResponse.md +docs/DeleteQuestionConfigResponse.md +docs/DeleteQuestionResultResponse.md docs/DeleteSSOUserAPIResponse.md docs/DeleteSubscriptionAPIResponse.md +docs/DeleteTenantPackageResponse.md +docs/DeleteTenantResponse.md +docs/DeleteTenantUserResponse.md +docs/DeleteUserBadgeResponse.md +docs/DeleteV1PageReactResponse.md +docs/DeleteV2PageReactResponse.md +docs/DeleteVoteResponse.md docs/DeletedCommentResultComment.md docs/DigestEmailFrequency.md docs/EmailTemplateDefinition.md @@ -149,72 +193,154 @@ docs/FeedPostStats.md docs/FeedPostsStatsResponse.md docs/FindCommentsByRangeItem.md docs/FindCommentsByRangeResponse.md +docs/FlagCommentPublicResponse.md docs/FlagCommentResponse.md +docs/FlagCommentResponse1.md +docs/GetApiCommentsResponse.md +docs/GetApiExportStatusResponse.md +docs/GetApiIdsResponse.md docs/GetAuditLogsResponse.md +docs/GetAuditLogsResponse1.md +docs/GetBanUsersFromCommentResponse.md docs/GetBannedUsersCountResponse.md docs/GetBannedUsersFromCommentResponse.md docs/GetCachedNotificationCountResponse.md +docs/GetCachedNotificationCountResponse1.md docs/GetCommentBanStatusResponse.md +docs/GetCommentBanStatusResponse1.md +docs/GetCommentChildrenResponse.md +docs/GetCommentResponse.md docs/GetCommentTextResponse.md +docs/GetCommentTextResponse1.md +docs/GetCommentVoteUserNamesResponse.md docs/GetCommentVoteUserNamesSuccessResponse.md docs/GetCommentsForUserResponse.md +docs/GetCommentsForUserResponse1.md +docs/GetCommentsPublicResponse.md +docs/GetCommentsResponse.md docs/GetCommentsResponsePublicComment.md docs/GetCommentsResponseWithPresencePublicComment.md +docs/GetCountResponse.md +docs/GetCountsResponse.md docs/GetDomainConfigResponse.md docs/GetDomainConfigsResponse.md docs/GetDomainConfigsResponseAnyOf.md docs/GetDomainConfigsResponseAnyOf1.md docs/GetEmailTemplateDefinitionsResponse.md +docs/GetEmailTemplateDefinitionsResponse1.md docs/GetEmailTemplateRenderErrorsResponse.md +docs/GetEmailTemplateRenderErrorsResponse1.md docs/GetEmailTemplateResponse.md +docs/GetEmailTemplateResponse1.md docs/GetEmailTemplatesResponse.md +docs/GetEmailTemplatesResponse1.md docs/GetEventLogResponse.md +docs/GetEventLogResponse1.md +docs/GetFeedPostsPublicResponse.md docs/GetFeedPostsResponse.md +docs/GetFeedPostsResponse1.md +docs/GetFeedPostsStatsResponse.md +docs/GetGifLargeResponse.md docs/GetGifsSearchResponse.md docs/GetGifsTrendingResponse.md +docs/GetGlobalEventLogResponse.md docs/GetHashTagsResponse.md +docs/GetHashTagsResponse1.md +docs/GetLogsResponse.md +docs/GetManualBadgesForUserResponse.md +docs/GetManualBadgesResponse.md +docs/GetModerationCommentResponse.md +docs/GetModerationCommentTextResponse.md docs/GetModeratorResponse.md +docs/GetModeratorResponse1.md docs/GetModeratorsResponse.md +docs/GetModeratorsResponse1.md docs/GetMyNotificationsResponse.md docs/GetNotificationCountResponse.md +docs/GetNotificationCountResponse1.md docs/GetNotificationsResponse.md +docs/GetNotificationsResponse1.md +docs/GetOfflineUsersResponse.md +docs/GetOnlineUsersResponse.md docs/GetPageByURLIdAPIResponse.md docs/GetPagesAPIResponse.md +docs/GetPagesPublicResponse.md docs/GetPendingWebhookEventCountResponse.md +docs/GetPendingWebhookEventCountResponse1.md docs/GetPendingWebhookEventsResponse.md +docs/GetPendingWebhookEventsResponse1.md +docs/GetPreBanSummaryResponse.md docs/GetPublicFeedPostsResponse.md docs/GetPublicPagesResponse.md docs/GetQuestionConfigResponse.md +docs/GetQuestionConfigResponse1.md docs/GetQuestionConfigsResponse.md +docs/GetQuestionConfigsResponse1.md docs/GetQuestionResultResponse.md +docs/GetQuestionResultResponse1.md docs/GetQuestionResultsResponse.md +docs/GetQuestionResultsResponse1.md docs/GetSSOUserByEmailAPIResponse.md docs/GetSSOUserByIdAPIResponse.md docs/GetSSOUsersResponse.md +docs/GetSearchCommentsSummaryResponse.md +docs/GetSearchPagesResponse.md +docs/GetSearchSitesResponse.md +docs/GetSearchSuggestResponse.md +docs/GetSearchUsersResponse.md docs/GetSubscriptionsAPIResponse.md docs/GetTenantDailyUsagesResponse.md +docs/GetTenantDailyUsagesResponse1.md docs/GetTenantManualBadgesResponse.md docs/GetTenantPackageResponse.md +docs/GetTenantPackageResponse1.md docs/GetTenantPackagesResponse.md +docs/GetTenantPackagesResponse1.md docs/GetTenantResponse.md +docs/GetTenantResponse1.md docs/GetTenantUserResponse.md +docs/GetTenantUserResponse1.md docs/GetTenantUsersResponse.md +docs/GetTenantUsersResponse1.md docs/GetTenantsResponse.md +docs/GetTenantsResponse1.md docs/GetTicketResponse.md +docs/GetTicketResponse1.md docs/GetTicketsResponse.md +docs/GetTicketsResponse1.md docs/GetTranslationsResponse.md +docs/GetTranslationsResponse1.md +docs/GetTrustFactorResponse.md +docs/GetUserBadgeProgressByIdResponse.md +docs/GetUserBadgeProgressByUserIdResponse.md +docs/GetUserBadgeProgressListResponse.md +docs/GetUserBadgeResponse.md +docs/GetUserBadgesResponse.md +docs/GetUserBanPreferenceResponse.md docs/GetUserInternalProfileResponse.md +docs/GetUserInternalProfileResponse1.md docs/GetUserInternalProfileResponseProfile.md docs/GetUserManualBadgesResponse.md docs/GetUserNotificationCountResponse.md +docs/GetUserNotificationCountResponse1.md +docs/GetUserNotificationsResponse.md docs/GetUserPresenceStatusesResponse.md +docs/GetUserPresenceStatusesResponse1.md +docs/GetUserReactsPublicResponse.md docs/GetUserResponse.md +docs/GetUserResponse1.md docs/GetUserTrustFactorResponse.md +docs/GetUsersInfoResponse.md docs/GetV1PageLikes.md +docs/GetV1PageLikesResponse.md docs/GetV2PageReactUsersResponse.md +docs/GetV2PageReactUsersResponse1.md docs/GetV2PageReacts.md +docs/GetV2PageReactsResponse.md docs/GetVotesForUserResponse.md +docs/GetVotesForUserResponse1.md docs/GetVotesResponse.md +docs/GetVotesResponse1.md docs/GifGetLargeResponse.md docs/GifRating.md docs/GifSearchInternalError.md @@ -229,6 +355,7 @@ docs/ImportedSiteType.md docs/LiveEvent.md docs/LiveEventExtraInfo.md docs/LiveEventType.md +docs/LockCommentResponse.md docs/MediaAsset.md docs/MentionAutoCompleteMode.md docs/MetaItem.md @@ -263,10 +390,26 @@ docs/PageUsersOnlineResponse.md docs/PagesSortBy.md docs/PatchDomainConfigParams.md docs/PatchDomainConfigResponse.md +docs/PatchHashTagResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md +docs/PinCommentResponse.md +docs/PostAdjustCommentVotesResponse.md +docs/PostApiExportResponse.md +docs/PostBanUserFromCommentResponse.md +docs/PostBanUserUndoResponse.md +docs/PostBulkPreBanSummaryResponse.md +docs/PostCommentsByIdsResponse.md +docs/PostFlagCommentResponse.md docs/PostRemoveCommentResponse.md +docs/PostRestoreDeletedCommentResponse.md +docs/PostSetCommentApprovalStatusResponse.md +docs/PostSetCommentReviewStatusResponse.md +docs/PostSetCommentSpamStatusResponse.md +docs/PostSetCommentTextResponse.md +docs/PostUnFlagCommentResponse.md +docs/PostVoteResponse.md docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md @@ -281,7 +424,11 @@ docs/PublicCommentBase.md docs/PublicFeedPostsResponse.md docs/PublicPage.md docs/PublicVote.md +docs/PutAwardBadgeResponse.md +docs/PutCloseThreadResponse.md docs/PutDomainConfigResponse.md +docs/PutRemoveBadgeResponse.md +docs/PutReopenThreadResponse.md docs/PutSSOUserAPIResponse.md docs/QueryPredicate.md docs/QueryPredicateValue.md @@ -294,30 +441,42 @@ docs/QuestionResultAggregationOverall.md docs/QuestionSubQuestionVisibility.md docs/QuestionWhenSave.md docs/ReactBodyParams.md +docs/ReactFeedPostPublicResponse.md docs/ReactFeedPostResponse.md docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md docs/RemoveCommentActionResponse.md docs/RemoveUserBadgeResponse.md docs/RenderEmailTemplateBody.md docs/RenderEmailTemplateResponse.md +docs/RenderEmailTemplateResponse1.md docs/RenderableUserNotification.md docs/RepeatCommentCheckIgnoredReason.md docs/RepeatCommentHandlingAction.md docs/ReplaceTenantPackageBody.md +docs/ReplaceTenantPackageResponse.md docs/ReplaceTenantUserBody.md +docs/ReplaceTenantUserResponse.md +docs/ResetUserNotificationCountResponse.md docs/ResetUserNotificationsResponse.md +docs/ResetUserNotificationsResponse1.md docs/SORTDIR.md docs/SSOSecurityLevel.md +docs/SaveCommentResponse.md docs/SaveCommentResponseOptimized.md docs/SaveCommentsBulkResponse.md docs/SaveCommentsResponseWithPresence.md docs/SearchUsersResponse.md +docs/SearchUsersResponse1.md docs/SearchUsersResult.md docs/SearchUsersSectionedResponse.md +docs/SendInviteResponse.md +docs/SendLoginLinkResponse.md docs/SetCommentApprovedResponse.md docs/SetCommentTextParams.md docs/SetCommentTextResponse.md +docs/SetCommentTextResponse1.md docs/SetCommentTextResult.md +docs/SetTrustFactorResponse.md docs/SetUserTrustFactorResponse.md docs/SizePreset.md docs/SortDirections.md @@ -326,26 +485,43 @@ docs/TOSConfig.md docs/TenantBadge.md docs/TenantHashTag.md docs/TenantPackage.md +docs/UnBlockCommentPublicResponse.md docs/UnBlockFromCommentParams.md +docs/UnBlockUserFromCommentResponse.md +docs/UnFlagCommentResponse.md +docs/UnLockCommentResponse.md +docs/UnPinCommentResponse.md docs/UnblockSuccess.md docs/UpdatableCommentParams.md docs/UpdateAPIPageData.md docs/UpdateAPISSOUserData.md docs/UpdateAPIUserSubscriptionData.md +docs/UpdateCommentResponse.md docs/UpdateDomainConfigParams.md docs/UpdateEmailTemplateBody.md +docs/UpdateEmailTemplateResponse.md docs/UpdateFeedPostParams.md +docs/UpdateFeedPostPublicResponse.md +docs/UpdateFeedPostResponse.md docs/UpdateHashTagBody.md docs/UpdateHashTagResponse.md docs/UpdateModeratorBody.md +docs/UpdateModeratorResponse.md docs/UpdateNotificationBody.md +docs/UpdateNotificationResponse.md docs/UpdateQuestionConfigBody.md +docs/UpdateQuestionConfigResponse.md docs/UpdateQuestionResultBody.md +docs/UpdateQuestionResultResponse.md docs/UpdateSubscriptionAPIResponse.md docs/UpdateTenantBody.md docs/UpdateTenantPackageBody.md +docs/UpdateTenantPackageResponse.md +docs/UpdateTenantResponse.md docs/UpdateTenantUserBody.md +docs/UpdateTenantUserResponse.md docs/UpdateUserBadgeParams.md +docs/UpdateUserBadgeResponse.md docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md docs/UpdateUserNotificationPageSubscriptionStatusResponse.md docs/UpdateUserNotificationStatusResponse.md @@ -364,6 +540,7 @@ docs/UserSearchSectionResult.md docs/UserSessionInfo.md docs/UsersListLocation.md docs/VoteBodyParams.md +docs/VoteCommentResponse.md docs/VoteDeleteResponse.md docs/VoteResponse.md docs/VoteResponseUser.md @@ -433,11 +610,14 @@ src/main/java/com/fastcomments/model/AbstractOpenApiSchema.java src/main/java/com/fastcomments/model/AddDomainConfigParams.java src/main/java/com/fastcomments/model/AddDomainConfigResponse.java src/main/java/com/fastcomments/model/AddDomainConfigResponseAnyOf.java +src/main/java/com/fastcomments/model/AddHashTagResponse.java +src/main/java/com/fastcomments/model/AddHashTagsBulkResponse.java src/main/java/com/fastcomments/model/AddPageAPIResponse.java src/main/java/com/fastcomments/model/AddSSOUserAPIResponse.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/AggregateQuestionResultsResponse1.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 @@ -457,12 +637,15 @@ 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/BlockFromCommentPublicResponse.java src/main/java/com/fastcomments/model/BlockSuccess.java +src/main/java/com/fastcomments/model/BlockUserFromCommentResponse.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/BulkAggregateQuestionResultsRequest.java src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse.java +src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1.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 @@ -472,7 +655,10 @@ src/main/java/com/fastcomments/model/BulkPreBanSummary.java src/main/java/com/fastcomments/model/ChangeCommentPinStatusResponse.java src/main/java/com/fastcomments/model/ChangeTicketStateBody.java src/main/java/com/fastcomments/model/ChangeTicketStateResponse.java +src/main/java/com/fastcomments/model/ChangeTicketStateResponse1.java src/main/java/com/fastcomments/model/CheckBlockedCommentsResponse.java +src/main/java/com/fastcomments/model/CheckedCommentsForBlockedResponse.java +src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponse.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 @@ -492,40 +678,75 @@ 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/CreateCommentPublicResponse.java src/main/java/com/fastcomments/model/CreateEmailTemplateBody.java src/main/java/com/fastcomments/model/CreateEmailTemplateResponse.java +src/main/java/com/fastcomments/model/CreateEmailTemplateResponse1.java src/main/java/com/fastcomments/model/CreateFeedPostParams.java +src/main/java/com/fastcomments/model/CreateFeedPostPublicResponse.java src/main/java/com/fastcomments/model/CreateFeedPostResponse.java +src/main/java/com/fastcomments/model/CreateFeedPostResponse1.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/CreateModeratorBody.java src/main/java/com/fastcomments/model/CreateModeratorResponse.java +src/main/java/com/fastcomments/model/CreateModeratorResponse1.java src/main/java/com/fastcomments/model/CreateQuestionConfigBody.java src/main/java/com/fastcomments/model/CreateQuestionConfigResponse.java +src/main/java/com/fastcomments/model/CreateQuestionConfigResponse1.java src/main/java/com/fastcomments/model/CreateQuestionResultBody.java src/main/java/com/fastcomments/model/CreateQuestionResultResponse.java +src/main/java/com/fastcomments/model/CreateQuestionResultResponse1.java src/main/java/com/fastcomments/model/CreateSubscriptionAPIResponse.java src/main/java/com/fastcomments/model/CreateTenantBody.java src/main/java/com/fastcomments/model/CreateTenantPackageBody.java src/main/java/com/fastcomments/model/CreateTenantPackageResponse.java +src/main/java/com/fastcomments/model/CreateTenantPackageResponse1.java src/main/java/com/fastcomments/model/CreateTenantResponse.java +src/main/java/com/fastcomments/model/CreateTenantResponse1.java src/main/java/com/fastcomments/model/CreateTenantUserBody.java src/main/java/com/fastcomments/model/CreateTenantUserResponse.java +src/main/java/com/fastcomments/model/CreateTenantUserResponse1.java src/main/java/com/fastcomments/model/CreateTicketBody.java src/main/java/com/fastcomments/model/CreateTicketResponse.java +src/main/java/com/fastcomments/model/CreateTicketResponse1.java src/main/java/com/fastcomments/model/CreateUserBadgeParams.java +src/main/java/com/fastcomments/model/CreateUserBadgeResponse.java src/main/java/com/fastcomments/model/CreateV1PageReact.java +src/main/java/com/fastcomments/model/CreateV1PageReactResponse.java +src/main/java/com/fastcomments/model/CreateV2PageReactResponse.java +src/main/java/com/fastcomments/model/CreateVoteResponse.java src/main/java/com/fastcomments/model/CustomConfigParameters.java src/main/java/com/fastcomments/model/CustomEmailTemplate.java src/main/java/com/fastcomments/model/DeleteCommentAction.java +src/main/java/com/fastcomments/model/DeleteCommentPublicResponse.java +src/main/java/com/fastcomments/model/DeleteCommentResponse.java src/main/java/com/fastcomments/model/DeleteCommentResult.java +src/main/java/com/fastcomments/model/DeleteCommentVoteResponse.java src/main/java/com/fastcomments/model/DeleteDomainConfigResponse.java +src/main/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponse.java +src/main/java/com/fastcomments/model/DeleteEmailTemplateResponse.java src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java +src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOf.java src/main/java/com/fastcomments/model/DeleteHashTagRequestBody.java +src/main/java/com/fastcomments/model/DeleteHashTagResponse.java +src/main/java/com/fastcomments/model/DeleteModerationVoteResponse.java +src/main/java/com/fastcomments/model/DeleteModeratorResponse.java +src/main/java/com/fastcomments/model/DeleteNotificationCountResponse.java src/main/java/com/fastcomments/model/DeletePageAPIResponse.java +src/main/java/com/fastcomments/model/DeletePendingWebhookEventResponse.java +src/main/java/com/fastcomments/model/DeleteQuestionConfigResponse.java +src/main/java/com/fastcomments/model/DeleteQuestionResultResponse.java src/main/java/com/fastcomments/model/DeleteSSOUserAPIResponse.java src/main/java/com/fastcomments/model/DeleteSubscriptionAPIResponse.java +src/main/java/com/fastcomments/model/DeleteTenantPackageResponse.java +src/main/java/com/fastcomments/model/DeleteTenantResponse.java +src/main/java/com/fastcomments/model/DeleteTenantUserResponse.java +src/main/java/com/fastcomments/model/DeleteUserBadgeResponse.java +src/main/java/com/fastcomments/model/DeleteV1PageReactResponse.java +src/main/java/com/fastcomments/model/DeleteV2PageReactResponse.java +src/main/java/com/fastcomments/model/DeleteVoteResponse.java src/main/java/com/fastcomments/model/DeletedCommentResultComment.java src/main/java/com/fastcomments/model/DigestEmailFrequency.java src/main/java/com/fastcomments/model/EmailTemplateDefinition.java @@ -541,72 +762,154 @@ 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/FlagCommentPublicResponse.java src/main/java/com/fastcomments/model/FlagCommentResponse.java +src/main/java/com/fastcomments/model/FlagCommentResponse1.java +src/main/java/com/fastcomments/model/GetApiCommentsResponse.java +src/main/java/com/fastcomments/model/GetApiExportStatusResponse.java +src/main/java/com/fastcomments/model/GetApiIdsResponse.java src/main/java/com/fastcomments/model/GetAuditLogsResponse.java +src/main/java/com/fastcomments/model/GetAuditLogsResponse1.java +src/main/java/com/fastcomments/model/GetBanUsersFromCommentResponse.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/GetCachedNotificationCountResponse1.java src/main/java/com/fastcomments/model/GetCommentBanStatusResponse.java +src/main/java/com/fastcomments/model/GetCommentBanStatusResponse1.java +src/main/java/com/fastcomments/model/GetCommentChildrenResponse.java +src/main/java/com/fastcomments/model/GetCommentResponse.java src/main/java/com/fastcomments/model/GetCommentTextResponse.java +src/main/java/com/fastcomments/model/GetCommentTextResponse1.java +src/main/java/com/fastcomments/model/GetCommentVoteUserNamesResponse.java src/main/java/com/fastcomments/model/GetCommentVoteUserNamesSuccessResponse.java src/main/java/com/fastcomments/model/GetCommentsForUserResponse.java +src/main/java/com/fastcomments/model/GetCommentsForUserResponse1.java +src/main/java/com/fastcomments/model/GetCommentsPublicResponse.java +src/main/java/com/fastcomments/model/GetCommentsResponse.java src/main/java/com/fastcomments/model/GetCommentsResponsePublicComment.java src/main/java/com/fastcomments/model/GetCommentsResponseWithPresencePublicComment.java +src/main/java/com/fastcomments/model/GetCountResponse.java +src/main/java/com/fastcomments/model/GetCountsResponse.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/GetEmailTemplateDefinitionsResponse1.java src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse.java +src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1.java src/main/java/com/fastcomments/model/GetEmailTemplateResponse.java +src/main/java/com/fastcomments/model/GetEmailTemplateResponse1.java src/main/java/com/fastcomments/model/GetEmailTemplatesResponse.java +src/main/java/com/fastcomments/model/GetEmailTemplatesResponse1.java src/main/java/com/fastcomments/model/GetEventLogResponse.java +src/main/java/com/fastcomments/model/GetEventLogResponse1.java +src/main/java/com/fastcomments/model/GetFeedPostsPublicResponse.java src/main/java/com/fastcomments/model/GetFeedPostsResponse.java +src/main/java/com/fastcomments/model/GetFeedPostsResponse1.java +src/main/java/com/fastcomments/model/GetFeedPostsStatsResponse.java +src/main/java/com/fastcomments/model/GetGifLargeResponse.java src/main/java/com/fastcomments/model/GetGifsSearchResponse.java src/main/java/com/fastcomments/model/GetGifsTrendingResponse.java +src/main/java/com/fastcomments/model/GetGlobalEventLogResponse.java src/main/java/com/fastcomments/model/GetHashTagsResponse.java +src/main/java/com/fastcomments/model/GetHashTagsResponse1.java +src/main/java/com/fastcomments/model/GetLogsResponse.java +src/main/java/com/fastcomments/model/GetManualBadgesForUserResponse.java +src/main/java/com/fastcomments/model/GetManualBadgesResponse.java +src/main/java/com/fastcomments/model/GetModerationCommentResponse.java +src/main/java/com/fastcomments/model/GetModerationCommentTextResponse.java src/main/java/com/fastcomments/model/GetModeratorResponse.java +src/main/java/com/fastcomments/model/GetModeratorResponse1.java src/main/java/com/fastcomments/model/GetModeratorsResponse.java +src/main/java/com/fastcomments/model/GetModeratorsResponse1.java src/main/java/com/fastcomments/model/GetMyNotificationsResponse.java src/main/java/com/fastcomments/model/GetNotificationCountResponse.java +src/main/java/com/fastcomments/model/GetNotificationCountResponse1.java src/main/java/com/fastcomments/model/GetNotificationsResponse.java +src/main/java/com/fastcomments/model/GetNotificationsResponse1.java +src/main/java/com/fastcomments/model/GetOfflineUsersResponse.java +src/main/java/com/fastcomments/model/GetOnlineUsersResponse.java src/main/java/com/fastcomments/model/GetPageByURLIdAPIResponse.java src/main/java/com/fastcomments/model/GetPagesAPIResponse.java +src/main/java/com/fastcomments/model/GetPagesPublicResponse.java src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse.java +src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1.java src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse.java +src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse1.java +src/main/java/com/fastcomments/model/GetPreBanSummaryResponse.java src/main/java/com/fastcomments/model/GetPublicFeedPostsResponse.java src/main/java/com/fastcomments/model/GetPublicPagesResponse.java src/main/java/com/fastcomments/model/GetQuestionConfigResponse.java +src/main/java/com/fastcomments/model/GetQuestionConfigResponse1.java src/main/java/com/fastcomments/model/GetQuestionConfigsResponse.java +src/main/java/com/fastcomments/model/GetQuestionConfigsResponse1.java src/main/java/com/fastcomments/model/GetQuestionResultResponse.java +src/main/java/com/fastcomments/model/GetQuestionResultResponse1.java src/main/java/com/fastcomments/model/GetQuestionResultsResponse.java +src/main/java/com/fastcomments/model/GetQuestionResultsResponse1.java src/main/java/com/fastcomments/model/GetSSOUserByEmailAPIResponse.java src/main/java/com/fastcomments/model/GetSSOUserByIdAPIResponse.java src/main/java/com/fastcomments/model/GetSSOUsersResponse.java +src/main/java/com/fastcomments/model/GetSearchCommentsSummaryResponse.java +src/main/java/com/fastcomments/model/GetSearchPagesResponse.java +src/main/java/com/fastcomments/model/GetSearchSitesResponse.java +src/main/java/com/fastcomments/model/GetSearchSuggestResponse.java +src/main/java/com/fastcomments/model/GetSearchUsersResponse.java src/main/java/com/fastcomments/model/GetSubscriptionsAPIResponse.java src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse.java +src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse1.java src/main/java/com/fastcomments/model/GetTenantManualBadgesResponse.java src/main/java/com/fastcomments/model/GetTenantPackageResponse.java +src/main/java/com/fastcomments/model/GetTenantPackageResponse1.java src/main/java/com/fastcomments/model/GetTenantPackagesResponse.java +src/main/java/com/fastcomments/model/GetTenantPackagesResponse1.java src/main/java/com/fastcomments/model/GetTenantResponse.java +src/main/java/com/fastcomments/model/GetTenantResponse1.java src/main/java/com/fastcomments/model/GetTenantUserResponse.java +src/main/java/com/fastcomments/model/GetTenantUserResponse1.java src/main/java/com/fastcomments/model/GetTenantUsersResponse.java +src/main/java/com/fastcomments/model/GetTenantUsersResponse1.java src/main/java/com/fastcomments/model/GetTenantsResponse.java +src/main/java/com/fastcomments/model/GetTenantsResponse1.java src/main/java/com/fastcomments/model/GetTicketResponse.java +src/main/java/com/fastcomments/model/GetTicketResponse1.java src/main/java/com/fastcomments/model/GetTicketsResponse.java +src/main/java/com/fastcomments/model/GetTicketsResponse1.java src/main/java/com/fastcomments/model/GetTranslationsResponse.java +src/main/java/com/fastcomments/model/GetTranslationsResponse1.java +src/main/java/com/fastcomments/model/GetTrustFactorResponse.java +src/main/java/com/fastcomments/model/GetUserBadgeProgressByIdResponse.java +src/main/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponse.java +src/main/java/com/fastcomments/model/GetUserBadgeProgressListResponse.java +src/main/java/com/fastcomments/model/GetUserBadgeResponse.java +src/main/java/com/fastcomments/model/GetUserBadgesResponse.java +src/main/java/com/fastcomments/model/GetUserBanPreferenceResponse.java src/main/java/com/fastcomments/model/GetUserInternalProfileResponse.java +src/main/java/com/fastcomments/model/GetUserInternalProfileResponse1.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/GetUserNotificationCountResponse1.java +src/main/java/com/fastcomments/model/GetUserNotificationsResponse.java src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse.java +src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse1.java +src/main/java/com/fastcomments/model/GetUserReactsPublicResponse.java src/main/java/com/fastcomments/model/GetUserResponse.java +src/main/java/com/fastcomments/model/GetUserResponse1.java src/main/java/com/fastcomments/model/GetUserTrustFactorResponse.java +src/main/java/com/fastcomments/model/GetUsersInfoResponse.java src/main/java/com/fastcomments/model/GetV1PageLikes.java +src/main/java/com/fastcomments/model/GetV1PageLikesResponse.java src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse.java +src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse1.java src/main/java/com/fastcomments/model/GetV2PageReacts.java +src/main/java/com/fastcomments/model/GetV2PageReactsResponse.java src/main/java/com/fastcomments/model/GetVotesForUserResponse.java +src/main/java/com/fastcomments/model/GetVotesForUserResponse1.java src/main/java/com/fastcomments/model/GetVotesResponse.java +src/main/java/com/fastcomments/model/GetVotesResponse1.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 @@ -621,6 +924,7 @@ 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/LockCommentResponse.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 @@ -654,10 +958,26 @@ 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/PatchDomainConfigResponse.java +src/main/java/com/fastcomments/model/PatchHashTagResponse.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/PinCommentResponse.java +src/main/java/com/fastcomments/model/PostAdjustCommentVotesResponse.java +src/main/java/com/fastcomments/model/PostApiExportResponse.java +src/main/java/com/fastcomments/model/PostBanUserFromCommentResponse.java +src/main/java/com/fastcomments/model/PostBanUserUndoResponse.java +src/main/java/com/fastcomments/model/PostBulkPreBanSummaryResponse.java +src/main/java/com/fastcomments/model/PostCommentsByIdsResponse.java +src/main/java/com/fastcomments/model/PostFlagCommentResponse.java src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java +src/main/java/com/fastcomments/model/PostRestoreDeletedCommentResponse.java +src/main/java/com/fastcomments/model/PostSetCommentApprovalStatusResponse.java +src/main/java/com/fastcomments/model/PostSetCommentReviewStatusResponse.java +src/main/java/com/fastcomments/model/PostSetCommentSpamStatusResponse.java +src/main/java/com/fastcomments/model/PostSetCommentTextResponse.java +src/main/java/com/fastcomments/model/PostUnFlagCommentResponse.java +src/main/java/com/fastcomments/model/PostVoteResponse.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 @@ -671,7 +991,11 @@ 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/PutAwardBadgeResponse.java +src/main/java/com/fastcomments/model/PutCloseThreadResponse.java src/main/java/com/fastcomments/model/PutDomainConfigResponse.java +src/main/java/com/fastcomments/model/PutRemoveBadgeResponse.java +src/main/java/com/fastcomments/model/PutReopenThreadResponse.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 @@ -684,30 +1008,42 @@ 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/ReactFeedPostPublicResponse.java src/main/java/com/fastcomments/model/ReactFeedPostResponse.java src/main/java/com/fastcomments/model/RecordStringBeforeStringOrNullAfterStringOrNullValue.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/RenderEmailTemplateResponse1.java src/main/java/com/fastcomments/model/RenderableUserNotification.java 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/ReplaceTenantPackageResponse.java src/main/java/com/fastcomments/model/ReplaceTenantUserBody.java +src/main/java/com/fastcomments/model/ReplaceTenantUserResponse.java +src/main/java/com/fastcomments/model/ResetUserNotificationCountResponse.java src/main/java/com/fastcomments/model/ResetUserNotificationsResponse.java +src/main/java/com/fastcomments/model/ResetUserNotificationsResponse1.java src/main/java/com/fastcomments/model/SORTDIR.java src/main/java/com/fastcomments/model/SSOSecurityLevel.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/SearchUsersResponse.java +src/main/java/com/fastcomments/model/SearchUsersResponse1.java src/main/java/com/fastcomments/model/SearchUsersResult.java src/main/java/com/fastcomments/model/SearchUsersSectionedResponse.java +src/main/java/com/fastcomments/model/SendInviteResponse.java +src/main/java/com/fastcomments/model/SendLoginLinkResponse.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/SetCommentTextResponse1.java src/main/java/com/fastcomments/model/SetCommentTextResult.java +src/main/java/com/fastcomments/model/SetTrustFactorResponse.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 @@ -716,26 +1052,43 @@ 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/UnBlockCommentPublicResponse.java src/main/java/com/fastcomments/model/UnBlockFromCommentParams.java +src/main/java/com/fastcomments/model/UnBlockUserFromCommentResponse.java +src/main/java/com/fastcomments/model/UnFlagCommentResponse.java +src/main/java/com/fastcomments/model/UnLockCommentResponse.java +src/main/java/com/fastcomments/model/UnPinCommentResponse.java src/main/java/com/fastcomments/model/UnblockSuccess.java src/main/java/com/fastcomments/model/UpdatableCommentParams.java src/main/java/com/fastcomments/model/UpdateAPIPageData.java src/main/java/com/fastcomments/model/UpdateAPISSOUserData.java src/main/java/com/fastcomments/model/UpdateAPIUserSubscriptionData.java +src/main/java/com/fastcomments/model/UpdateCommentResponse.java src/main/java/com/fastcomments/model/UpdateDomainConfigParams.java src/main/java/com/fastcomments/model/UpdateEmailTemplateBody.java +src/main/java/com/fastcomments/model/UpdateEmailTemplateResponse.java src/main/java/com/fastcomments/model/UpdateFeedPostParams.java +src/main/java/com/fastcomments/model/UpdateFeedPostPublicResponse.java +src/main/java/com/fastcomments/model/UpdateFeedPostResponse.java src/main/java/com/fastcomments/model/UpdateHashTagBody.java src/main/java/com/fastcomments/model/UpdateHashTagResponse.java src/main/java/com/fastcomments/model/UpdateModeratorBody.java +src/main/java/com/fastcomments/model/UpdateModeratorResponse.java src/main/java/com/fastcomments/model/UpdateNotificationBody.java +src/main/java/com/fastcomments/model/UpdateNotificationResponse.java src/main/java/com/fastcomments/model/UpdateQuestionConfigBody.java +src/main/java/com/fastcomments/model/UpdateQuestionConfigResponse.java src/main/java/com/fastcomments/model/UpdateQuestionResultBody.java +src/main/java/com/fastcomments/model/UpdateQuestionResultResponse.java 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/UpdateTenantPackageResponse.java +src/main/java/com/fastcomments/model/UpdateTenantResponse.java src/main/java/com/fastcomments/model/UpdateTenantUserBody.java +src/main/java/com/fastcomments/model/UpdateTenantUserResponse.java src/main/java/com/fastcomments/model/UpdateUserBadgeParams.java +src/main/java/com/fastcomments/model/UpdateUserBadgeResponse.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 @@ -754,6 +1107,7 @@ 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/VoteCommentResponse.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 @@ -796,10 +1150,13 @@ src/test/java/com/fastcomments/model/APIUserSubscriptionTest.java src/test/java/com/fastcomments/model/AddDomainConfigParamsTest.java src/test/java/com/fastcomments/model/AddDomainConfigResponseAnyOfTest.java src/test/java/com/fastcomments/model/AddDomainConfigResponseTest.java +src/test/java/com/fastcomments/model/AddHashTagResponseTest.java +src/test/java/com/fastcomments/model/AddHashTagsBulkResponseTest.java src/test/java/com/fastcomments/model/AddPageAPIResponseTest.java src/test/java/com/fastcomments/model/AddSSOUserAPIResponseTest.java src/test/java/com/fastcomments/model/AdjustCommentVotesParamsTest.java src/test/java/com/fastcomments/model/AdjustVotesResponseTest.java +src/test/java/com/fastcomments/model/AggregateQuestionResultsResponse1Test.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 @@ -820,11 +1177,14 @@ 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/BlockFromCommentPublicResponseTest.java src/test/java/com/fastcomments/model/BlockSuccessTest.java +src/test/java/com/fastcomments/model/BlockUserFromCommentResponseTest.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/BulkAggregateQuestionResultsRequestTest.java +src/test/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1Test.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 @@ -834,8 +1194,11 @@ 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/ChangeTicketStateBodyTest.java +src/test/java/com/fastcomments/model/ChangeTicketStateResponse1Test.java src/test/java/com/fastcomments/model/ChangeTicketStateResponseTest.java src/test/java/com/fastcomments/model/CheckBlockedCommentsResponseTest.java +src/test/java/com/fastcomments/model/CheckedCommentsForBlockedResponseTest.java +src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponseTest.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 @@ -855,40 +1218,75 @@ 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/CreateCommentPublicResponseTest.java src/test/java/com/fastcomments/model/CreateEmailTemplateBodyTest.java +src/test/java/com/fastcomments/model/CreateEmailTemplateResponse1Test.java src/test/java/com/fastcomments/model/CreateEmailTemplateResponseTest.java src/test/java/com/fastcomments/model/CreateFeedPostParamsTest.java +src/test/java/com/fastcomments/model/CreateFeedPostPublicResponseTest.java +src/test/java/com/fastcomments/model/CreateFeedPostResponse1Test.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/CreateModeratorBodyTest.java +src/test/java/com/fastcomments/model/CreateModeratorResponse1Test.java src/test/java/com/fastcomments/model/CreateModeratorResponseTest.java src/test/java/com/fastcomments/model/CreateQuestionConfigBodyTest.java +src/test/java/com/fastcomments/model/CreateQuestionConfigResponse1Test.java src/test/java/com/fastcomments/model/CreateQuestionConfigResponseTest.java src/test/java/com/fastcomments/model/CreateQuestionResultBodyTest.java +src/test/java/com/fastcomments/model/CreateQuestionResultResponse1Test.java src/test/java/com/fastcomments/model/CreateQuestionResultResponseTest.java src/test/java/com/fastcomments/model/CreateSubscriptionAPIResponseTest.java src/test/java/com/fastcomments/model/CreateTenantBodyTest.java src/test/java/com/fastcomments/model/CreateTenantPackageBodyTest.java +src/test/java/com/fastcomments/model/CreateTenantPackageResponse1Test.java src/test/java/com/fastcomments/model/CreateTenantPackageResponseTest.java +src/test/java/com/fastcomments/model/CreateTenantResponse1Test.java src/test/java/com/fastcomments/model/CreateTenantResponseTest.java src/test/java/com/fastcomments/model/CreateTenantUserBodyTest.java +src/test/java/com/fastcomments/model/CreateTenantUserResponse1Test.java src/test/java/com/fastcomments/model/CreateTenantUserResponseTest.java src/test/java/com/fastcomments/model/CreateTicketBodyTest.java +src/test/java/com/fastcomments/model/CreateTicketResponse1Test.java src/test/java/com/fastcomments/model/CreateTicketResponseTest.java src/test/java/com/fastcomments/model/CreateUserBadgeParamsTest.java +src/test/java/com/fastcomments/model/CreateUserBadgeResponseTest.java +src/test/java/com/fastcomments/model/CreateV1PageReactResponseTest.java src/test/java/com/fastcomments/model/CreateV1PageReactTest.java +src/test/java/com/fastcomments/model/CreateV2PageReactResponseTest.java +src/test/java/com/fastcomments/model/CreateVoteResponseTest.java src/test/java/com/fastcomments/model/CustomConfigParametersTest.java src/test/java/com/fastcomments/model/CustomEmailTemplateTest.java src/test/java/com/fastcomments/model/DeleteCommentActionTest.java +src/test/java/com/fastcomments/model/DeleteCommentPublicResponseTest.java +src/test/java/com/fastcomments/model/DeleteCommentResponseTest.java src/test/java/com/fastcomments/model/DeleteCommentResultTest.java +src/test/java/com/fastcomments/model/DeleteCommentVoteResponseTest.java src/test/java/com/fastcomments/model/DeleteDomainConfigResponseTest.java +src/test/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponseTest.java +src/test/java/com/fastcomments/model/DeleteEmailTemplateResponseTest.java +src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOfTest.java src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java src/test/java/com/fastcomments/model/DeleteHashTagRequestBodyTest.java +src/test/java/com/fastcomments/model/DeleteHashTagResponseTest.java +src/test/java/com/fastcomments/model/DeleteModerationVoteResponseTest.java +src/test/java/com/fastcomments/model/DeleteModeratorResponseTest.java +src/test/java/com/fastcomments/model/DeleteNotificationCountResponseTest.java src/test/java/com/fastcomments/model/DeletePageAPIResponseTest.java +src/test/java/com/fastcomments/model/DeletePendingWebhookEventResponseTest.java +src/test/java/com/fastcomments/model/DeleteQuestionConfigResponseTest.java +src/test/java/com/fastcomments/model/DeleteQuestionResultResponseTest.java src/test/java/com/fastcomments/model/DeleteSSOUserAPIResponseTest.java src/test/java/com/fastcomments/model/DeleteSubscriptionAPIResponseTest.java +src/test/java/com/fastcomments/model/DeleteTenantPackageResponseTest.java +src/test/java/com/fastcomments/model/DeleteTenantResponseTest.java +src/test/java/com/fastcomments/model/DeleteTenantUserResponseTest.java +src/test/java/com/fastcomments/model/DeleteUserBadgeResponseTest.java +src/test/java/com/fastcomments/model/DeleteV1PageReactResponseTest.java +src/test/java/com/fastcomments/model/DeleteV2PageReactResponseTest.java +src/test/java/com/fastcomments/model/DeleteVoteResponseTest.java src/test/java/com/fastcomments/model/DeletedCommentResultCommentTest.java src/test/java/com/fastcomments/model/DigestEmailFrequencyTest.java src/test/java/com/fastcomments/model/EmailTemplateDefinitionTest.java @@ -904,71 +1302,153 @@ 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/FlagCommentPublicResponseTest.java +src/test/java/com/fastcomments/model/FlagCommentResponse1Test.java src/test/java/com/fastcomments/model/FlagCommentResponseTest.java +src/test/java/com/fastcomments/model/GetApiCommentsResponseTest.java +src/test/java/com/fastcomments/model/GetApiExportStatusResponseTest.java +src/test/java/com/fastcomments/model/GetApiIdsResponseTest.java +src/test/java/com/fastcomments/model/GetAuditLogsResponse1Test.java src/test/java/com/fastcomments/model/GetAuditLogsResponseTest.java +src/test/java/com/fastcomments/model/GetBanUsersFromCommentResponseTest.java src/test/java/com/fastcomments/model/GetBannedUsersCountResponseTest.java src/test/java/com/fastcomments/model/GetBannedUsersFromCommentResponseTest.java +src/test/java/com/fastcomments/model/GetCachedNotificationCountResponse1Test.java src/test/java/com/fastcomments/model/GetCachedNotificationCountResponseTest.java +src/test/java/com/fastcomments/model/GetCommentBanStatusResponse1Test.java src/test/java/com/fastcomments/model/GetCommentBanStatusResponseTest.java +src/test/java/com/fastcomments/model/GetCommentChildrenResponseTest.java +src/test/java/com/fastcomments/model/GetCommentResponseTest.java +src/test/java/com/fastcomments/model/GetCommentTextResponse1Test.java src/test/java/com/fastcomments/model/GetCommentTextResponseTest.java +src/test/java/com/fastcomments/model/GetCommentVoteUserNamesResponseTest.java src/test/java/com/fastcomments/model/GetCommentVoteUserNamesSuccessResponseTest.java +src/test/java/com/fastcomments/model/GetCommentsForUserResponse1Test.java src/test/java/com/fastcomments/model/GetCommentsForUserResponseTest.java +src/test/java/com/fastcomments/model/GetCommentsPublicResponseTest.java src/test/java/com/fastcomments/model/GetCommentsResponsePublicCommentTest.java +src/test/java/com/fastcomments/model/GetCommentsResponseTest.java src/test/java/com/fastcomments/model/GetCommentsResponseWithPresencePublicCommentTest.java +src/test/java/com/fastcomments/model/GetCountResponseTest.java +src/test/java/com/fastcomments/model/GetCountsResponseTest.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/GetEmailTemplateDefinitionsResponse1Test.java src/test/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponseTest.java +src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1Test.java src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponseTest.java +src/test/java/com/fastcomments/model/GetEmailTemplateResponse1Test.java src/test/java/com/fastcomments/model/GetEmailTemplateResponseTest.java +src/test/java/com/fastcomments/model/GetEmailTemplatesResponse1Test.java src/test/java/com/fastcomments/model/GetEmailTemplatesResponseTest.java +src/test/java/com/fastcomments/model/GetEventLogResponse1Test.java src/test/java/com/fastcomments/model/GetEventLogResponseTest.java +src/test/java/com/fastcomments/model/GetFeedPostsPublicResponseTest.java +src/test/java/com/fastcomments/model/GetFeedPostsResponse1Test.java src/test/java/com/fastcomments/model/GetFeedPostsResponseTest.java +src/test/java/com/fastcomments/model/GetFeedPostsStatsResponseTest.java +src/test/java/com/fastcomments/model/GetGifLargeResponseTest.java src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java src/test/java/com/fastcomments/model/GetGifsTrendingResponseTest.java +src/test/java/com/fastcomments/model/GetGlobalEventLogResponseTest.java +src/test/java/com/fastcomments/model/GetHashTagsResponse1Test.java src/test/java/com/fastcomments/model/GetHashTagsResponseTest.java +src/test/java/com/fastcomments/model/GetLogsResponseTest.java +src/test/java/com/fastcomments/model/GetManualBadgesForUserResponseTest.java +src/test/java/com/fastcomments/model/GetManualBadgesResponseTest.java +src/test/java/com/fastcomments/model/GetModerationCommentResponseTest.java +src/test/java/com/fastcomments/model/GetModerationCommentTextResponseTest.java +src/test/java/com/fastcomments/model/GetModeratorResponse1Test.java src/test/java/com/fastcomments/model/GetModeratorResponseTest.java +src/test/java/com/fastcomments/model/GetModeratorsResponse1Test.java src/test/java/com/fastcomments/model/GetModeratorsResponseTest.java src/test/java/com/fastcomments/model/GetMyNotificationsResponseTest.java +src/test/java/com/fastcomments/model/GetNotificationCountResponse1Test.java src/test/java/com/fastcomments/model/GetNotificationCountResponseTest.java +src/test/java/com/fastcomments/model/GetNotificationsResponse1Test.java src/test/java/com/fastcomments/model/GetNotificationsResponseTest.java +src/test/java/com/fastcomments/model/GetOfflineUsersResponseTest.java +src/test/java/com/fastcomments/model/GetOnlineUsersResponseTest.java src/test/java/com/fastcomments/model/GetPageByURLIdAPIResponseTest.java src/test/java/com/fastcomments/model/GetPagesAPIResponseTest.java +src/test/java/com/fastcomments/model/GetPagesPublicResponseTest.java +src/test/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1Test.java src/test/java/com/fastcomments/model/GetPendingWebhookEventCountResponseTest.java +src/test/java/com/fastcomments/model/GetPendingWebhookEventsResponse1Test.java src/test/java/com/fastcomments/model/GetPendingWebhookEventsResponseTest.java +src/test/java/com/fastcomments/model/GetPreBanSummaryResponseTest.java src/test/java/com/fastcomments/model/GetPublicFeedPostsResponseTest.java src/test/java/com/fastcomments/model/GetPublicPagesResponseTest.java +src/test/java/com/fastcomments/model/GetQuestionConfigResponse1Test.java src/test/java/com/fastcomments/model/GetQuestionConfigResponseTest.java +src/test/java/com/fastcomments/model/GetQuestionConfigsResponse1Test.java src/test/java/com/fastcomments/model/GetQuestionConfigsResponseTest.java +src/test/java/com/fastcomments/model/GetQuestionResultResponse1Test.java src/test/java/com/fastcomments/model/GetQuestionResultResponseTest.java +src/test/java/com/fastcomments/model/GetQuestionResultsResponse1Test.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/GetSSOUsersResponseTest.java +src/test/java/com/fastcomments/model/GetSearchCommentsSummaryResponseTest.java +src/test/java/com/fastcomments/model/GetSearchPagesResponseTest.java +src/test/java/com/fastcomments/model/GetSearchSitesResponseTest.java +src/test/java/com/fastcomments/model/GetSearchSuggestResponseTest.java +src/test/java/com/fastcomments/model/GetSearchUsersResponseTest.java src/test/java/com/fastcomments/model/GetSubscriptionsAPIResponseTest.java +src/test/java/com/fastcomments/model/GetTenantDailyUsagesResponse1Test.java src/test/java/com/fastcomments/model/GetTenantDailyUsagesResponseTest.java src/test/java/com/fastcomments/model/GetTenantManualBadgesResponseTest.java +src/test/java/com/fastcomments/model/GetTenantPackageResponse1Test.java src/test/java/com/fastcomments/model/GetTenantPackageResponseTest.java +src/test/java/com/fastcomments/model/GetTenantPackagesResponse1Test.java src/test/java/com/fastcomments/model/GetTenantPackagesResponseTest.java +src/test/java/com/fastcomments/model/GetTenantResponse1Test.java src/test/java/com/fastcomments/model/GetTenantResponseTest.java +src/test/java/com/fastcomments/model/GetTenantUserResponse1Test.java src/test/java/com/fastcomments/model/GetTenantUserResponseTest.java +src/test/java/com/fastcomments/model/GetTenantUsersResponse1Test.java src/test/java/com/fastcomments/model/GetTenantUsersResponseTest.java +src/test/java/com/fastcomments/model/GetTenantsResponse1Test.java src/test/java/com/fastcomments/model/GetTenantsResponseTest.java +src/test/java/com/fastcomments/model/GetTicketResponse1Test.java src/test/java/com/fastcomments/model/GetTicketResponseTest.java +src/test/java/com/fastcomments/model/GetTicketsResponse1Test.java src/test/java/com/fastcomments/model/GetTicketsResponseTest.java +src/test/java/com/fastcomments/model/GetTranslationsResponse1Test.java src/test/java/com/fastcomments/model/GetTranslationsResponseTest.java +src/test/java/com/fastcomments/model/GetTrustFactorResponseTest.java +src/test/java/com/fastcomments/model/GetUserBadgeProgressByIdResponseTest.java +src/test/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponseTest.java +src/test/java/com/fastcomments/model/GetUserBadgeProgressListResponseTest.java +src/test/java/com/fastcomments/model/GetUserBadgeResponseTest.java +src/test/java/com/fastcomments/model/GetUserBadgesResponseTest.java +src/test/java/com/fastcomments/model/GetUserBanPreferenceResponseTest.java +src/test/java/com/fastcomments/model/GetUserInternalProfileResponse1Test.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/GetUserNotificationCountResponse1Test.java src/test/java/com/fastcomments/model/GetUserNotificationCountResponseTest.java +src/test/java/com/fastcomments/model/GetUserNotificationsResponseTest.java +src/test/java/com/fastcomments/model/GetUserPresenceStatusesResponse1Test.java src/test/java/com/fastcomments/model/GetUserPresenceStatusesResponseTest.java +src/test/java/com/fastcomments/model/GetUserReactsPublicResponseTest.java +src/test/java/com/fastcomments/model/GetUserResponse1Test.java src/test/java/com/fastcomments/model/GetUserResponseTest.java src/test/java/com/fastcomments/model/GetUserTrustFactorResponseTest.java +src/test/java/com/fastcomments/model/GetUsersInfoResponseTest.java +src/test/java/com/fastcomments/model/GetV1PageLikesResponseTest.java src/test/java/com/fastcomments/model/GetV1PageLikesTest.java +src/test/java/com/fastcomments/model/GetV2PageReactUsersResponse1Test.java src/test/java/com/fastcomments/model/GetV2PageReactUsersResponseTest.java +src/test/java/com/fastcomments/model/GetV2PageReactsResponseTest.java src/test/java/com/fastcomments/model/GetV2PageReactsTest.java +src/test/java/com/fastcomments/model/GetVotesForUserResponse1Test.java src/test/java/com/fastcomments/model/GetVotesForUserResponseTest.java +src/test/java/com/fastcomments/model/GetVotesResponse1Test.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 @@ -984,6 +1464,7 @@ 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/LockCommentResponseTest.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 @@ -1017,10 +1498,26 @@ 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/PatchDomainConfigResponseTest.java +src/test/java/com/fastcomments/model/PatchHashTagResponseTest.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/PinCommentResponseTest.java +src/test/java/com/fastcomments/model/PostAdjustCommentVotesResponseTest.java +src/test/java/com/fastcomments/model/PostApiExportResponseTest.java +src/test/java/com/fastcomments/model/PostBanUserFromCommentResponseTest.java +src/test/java/com/fastcomments/model/PostBanUserUndoResponseTest.java +src/test/java/com/fastcomments/model/PostBulkPreBanSummaryResponseTest.java +src/test/java/com/fastcomments/model/PostCommentsByIdsResponseTest.java +src/test/java/com/fastcomments/model/PostFlagCommentResponseTest.java src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java +src/test/java/com/fastcomments/model/PostRestoreDeletedCommentResponseTest.java +src/test/java/com/fastcomments/model/PostSetCommentApprovalStatusResponseTest.java +src/test/java/com/fastcomments/model/PostSetCommentReviewStatusResponseTest.java +src/test/java/com/fastcomments/model/PostSetCommentSpamStatusResponseTest.java +src/test/java/com/fastcomments/model/PostSetCommentTextResponseTest.java +src/test/java/com/fastcomments/model/PostUnFlagCommentResponseTest.java +src/test/java/com/fastcomments/model/PostVoteResponseTest.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 @@ -1034,7 +1531,11 @@ 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/PutAwardBadgeResponseTest.java +src/test/java/com/fastcomments/model/PutCloseThreadResponseTest.java src/test/java/com/fastcomments/model/PutDomainConfigResponseTest.java +src/test/java/com/fastcomments/model/PutRemoveBadgeResponseTest.java +src/test/java/com/fastcomments/model/PutReopenThreadResponseTest.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 @@ -1047,30 +1548,42 @@ 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/ReactFeedPostPublicResponseTest.java src/test/java/com/fastcomments/model/ReactFeedPostResponseTest.java src/test/java/com/fastcomments/model/RecordStringBeforeStringOrNullAfterStringOrNullValueTest.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/RenderEmailTemplateResponse1Test.java src/test/java/com/fastcomments/model/RenderEmailTemplateResponseTest.java src/test/java/com/fastcomments/model/RenderableUserNotificationTest.java 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/ReplaceTenantPackageResponseTest.java src/test/java/com/fastcomments/model/ReplaceTenantUserBodyTest.java +src/test/java/com/fastcomments/model/ReplaceTenantUserResponseTest.java +src/test/java/com/fastcomments/model/ResetUserNotificationCountResponseTest.java +src/test/java/com/fastcomments/model/ResetUserNotificationsResponse1Test.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/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/SearchUsersResponse1Test.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/SendInviteResponseTest.java +src/test/java/com/fastcomments/model/SendLoginLinkResponseTest.java src/test/java/com/fastcomments/model/SetCommentApprovedResponseTest.java src/test/java/com/fastcomments/model/SetCommentTextParamsTest.java +src/test/java/com/fastcomments/model/SetCommentTextResponse1Test.java src/test/java/com/fastcomments/model/SetCommentTextResponseTest.java src/test/java/com/fastcomments/model/SetCommentTextResultTest.java +src/test/java/com/fastcomments/model/SetTrustFactorResponseTest.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 @@ -1079,26 +1592,43 @@ 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/UnBlockCommentPublicResponseTest.java src/test/java/com/fastcomments/model/UnBlockFromCommentParamsTest.java +src/test/java/com/fastcomments/model/UnBlockUserFromCommentResponseTest.java +src/test/java/com/fastcomments/model/UnFlagCommentResponseTest.java +src/test/java/com/fastcomments/model/UnLockCommentResponseTest.java +src/test/java/com/fastcomments/model/UnPinCommentResponseTest.java src/test/java/com/fastcomments/model/UnblockSuccessTest.java src/test/java/com/fastcomments/model/UpdatableCommentParamsTest.java src/test/java/com/fastcomments/model/UpdateAPIPageDataTest.java src/test/java/com/fastcomments/model/UpdateAPISSOUserDataTest.java src/test/java/com/fastcomments/model/UpdateAPIUserSubscriptionDataTest.java +src/test/java/com/fastcomments/model/UpdateCommentResponseTest.java src/test/java/com/fastcomments/model/UpdateDomainConfigParamsTest.java src/test/java/com/fastcomments/model/UpdateEmailTemplateBodyTest.java +src/test/java/com/fastcomments/model/UpdateEmailTemplateResponseTest.java src/test/java/com/fastcomments/model/UpdateFeedPostParamsTest.java +src/test/java/com/fastcomments/model/UpdateFeedPostPublicResponseTest.java +src/test/java/com/fastcomments/model/UpdateFeedPostResponseTest.java src/test/java/com/fastcomments/model/UpdateHashTagBodyTest.java src/test/java/com/fastcomments/model/UpdateHashTagResponseTest.java src/test/java/com/fastcomments/model/UpdateModeratorBodyTest.java +src/test/java/com/fastcomments/model/UpdateModeratorResponseTest.java src/test/java/com/fastcomments/model/UpdateNotificationBodyTest.java +src/test/java/com/fastcomments/model/UpdateNotificationResponseTest.java src/test/java/com/fastcomments/model/UpdateQuestionConfigBodyTest.java +src/test/java/com/fastcomments/model/UpdateQuestionConfigResponseTest.java src/test/java/com/fastcomments/model/UpdateQuestionResultBodyTest.java +src/test/java/com/fastcomments/model/UpdateQuestionResultResponseTest.java 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/UpdateTenantPackageResponseTest.java +src/test/java/com/fastcomments/model/UpdateTenantResponseTest.java src/test/java/com/fastcomments/model/UpdateTenantUserBodyTest.java +src/test/java/com/fastcomments/model/UpdateTenantUserResponseTest.java src/test/java/com/fastcomments/model/UpdateUserBadgeParamsTest.java +src/test/java/com/fastcomments/model/UpdateUserBadgeResponseTest.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 @@ -1117,6 +1647,7 @@ 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/VoteCommentResponseTest.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/README.md b/client/README.md index 40a5c479..8599819f 100644 --- a/client/README.md +++ b/client/README.md @@ -371,11 +371,14 @@ Class | Method | HTTP request | Description - [AddDomainConfigParams](docs/AddDomainConfigParams.md) - [AddDomainConfigResponse](docs/AddDomainConfigResponse.md) - [AddDomainConfigResponseAnyOf](docs/AddDomainConfigResponseAnyOf.md) + - [AddHashTagResponse](docs/AddHashTagResponse.md) + - [AddHashTagsBulkResponse](docs/AddHashTagsBulkResponse.md) - [AddPageAPIResponse](docs/AddPageAPIResponse.md) - [AddSSOUserAPIResponse](docs/AddSSOUserAPIResponse.md) - [AdjustCommentVotesParams](docs/AdjustCommentVotesParams.md) - [AdjustVotesResponse](docs/AdjustVotesResponse.md) - [AggregateQuestionResultsResponse](docs/AggregateQuestionResultsResponse.md) + - [AggregateQuestionResultsResponse1](docs/AggregateQuestionResultsResponse1.md) - [AggregateResponse](docs/AggregateResponse.md) - [AggregateTimeBucket](docs/AggregateTimeBucket.md) - [AggregationAPIError](docs/AggregationAPIError.md) @@ -395,12 +398,15 @@ Class | Method | HTTP request | Description - [BannedUserMatchType](docs/BannedUserMatchType.md) - [BillingInfo](docs/BillingInfo.md) - [BlockFromCommentParams](docs/BlockFromCommentParams.md) + - [BlockFromCommentPublicResponse](docs/BlockFromCommentPublicResponse.md) - [BlockSuccess](docs/BlockSuccess.md) + - [BlockUserFromCommentResponse](docs/BlockUserFromCommentResponse.md) - [BuildModerationFilterParams](docs/BuildModerationFilterParams.md) - [BuildModerationFilterResponse](docs/BuildModerationFilterResponse.md) - [BulkAggregateQuestionItem](docs/BulkAggregateQuestionItem.md) - [BulkAggregateQuestionResultsRequest](docs/BulkAggregateQuestionResultsRequest.md) - [BulkAggregateQuestionResultsResponse](docs/BulkAggregateQuestionResultsResponse.md) + - [BulkAggregateQuestionResultsResponse1](docs/BulkAggregateQuestionResultsResponse1.md) - [BulkCreateHashTagsBody](docs/BulkCreateHashTagsBody.md) - [BulkCreateHashTagsBodyTagsInner](docs/BulkCreateHashTagsBodyTagsInner.md) - [BulkCreateHashTagsResponse](docs/BulkCreateHashTagsResponse.md) @@ -410,7 +416,10 @@ Class | Method | HTTP request | Description - [ChangeCommentPinStatusResponse](docs/ChangeCommentPinStatusResponse.md) - [ChangeTicketStateBody](docs/ChangeTicketStateBody.md) - [ChangeTicketStateResponse](docs/ChangeTicketStateResponse.md) + - [ChangeTicketStateResponse1](docs/ChangeTicketStateResponse1.md) - [CheckBlockedCommentsResponse](docs/CheckBlockedCommentsResponse.md) + - [CheckedCommentsForBlockedResponse](docs/CheckedCommentsForBlockedResponse.md) + - [CombineCommentsWithQuestionResultsResponse](docs/CombineCommentsWithQuestionResultsResponse.md) - [CombineQuestionResultsWithCommentsResponse](docs/CombineQuestionResultsWithCommentsResponse.md) - [CommentData](docs/CommentData.md) - [CommentHTMLRenderingMode](docs/CommentHTMLRenderingMode.md) @@ -430,40 +439,75 @@ Class | Method | HTTP request | Description - [CreateAPISSOUserData](docs/CreateAPISSOUserData.md) - [CreateAPIUserSubscriptionData](docs/CreateAPIUserSubscriptionData.md) - [CreateCommentParams](docs/CreateCommentParams.md) + - [CreateCommentPublicResponse](docs/CreateCommentPublicResponse.md) - [CreateEmailTemplateBody](docs/CreateEmailTemplateBody.md) - [CreateEmailTemplateResponse](docs/CreateEmailTemplateResponse.md) + - [CreateEmailTemplateResponse1](docs/CreateEmailTemplateResponse1.md) - [CreateFeedPostParams](docs/CreateFeedPostParams.md) + - [CreateFeedPostPublicResponse](docs/CreateFeedPostPublicResponse.md) - [CreateFeedPostResponse](docs/CreateFeedPostResponse.md) + - [CreateFeedPostResponse1](docs/CreateFeedPostResponse1.md) - [CreateFeedPostsResponse](docs/CreateFeedPostsResponse.md) - [CreateHashTagBody](docs/CreateHashTagBody.md) - [CreateHashTagResponse](docs/CreateHashTagResponse.md) - [CreateModeratorBody](docs/CreateModeratorBody.md) - [CreateModeratorResponse](docs/CreateModeratorResponse.md) + - [CreateModeratorResponse1](docs/CreateModeratorResponse1.md) - [CreateQuestionConfigBody](docs/CreateQuestionConfigBody.md) - [CreateQuestionConfigResponse](docs/CreateQuestionConfigResponse.md) + - [CreateQuestionConfigResponse1](docs/CreateQuestionConfigResponse1.md) - [CreateQuestionResultBody](docs/CreateQuestionResultBody.md) - [CreateQuestionResultResponse](docs/CreateQuestionResultResponse.md) + - [CreateQuestionResultResponse1](docs/CreateQuestionResultResponse1.md) - [CreateSubscriptionAPIResponse](docs/CreateSubscriptionAPIResponse.md) - [CreateTenantBody](docs/CreateTenantBody.md) - [CreateTenantPackageBody](docs/CreateTenantPackageBody.md) - [CreateTenantPackageResponse](docs/CreateTenantPackageResponse.md) + - [CreateTenantPackageResponse1](docs/CreateTenantPackageResponse1.md) - [CreateTenantResponse](docs/CreateTenantResponse.md) + - [CreateTenantResponse1](docs/CreateTenantResponse1.md) - [CreateTenantUserBody](docs/CreateTenantUserBody.md) - [CreateTenantUserResponse](docs/CreateTenantUserResponse.md) + - [CreateTenantUserResponse1](docs/CreateTenantUserResponse1.md) - [CreateTicketBody](docs/CreateTicketBody.md) - [CreateTicketResponse](docs/CreateTicketResponse.md) + - [CreateTicketResponse1](docs/CreateTicketResponse1.md) - [CreateUserBadgeParams](docs/CreateUserBadgeParams.md) + - [CreateUserBadgeResponse](docs/CreateUserBadgeResponse.md) - [CreateV1PageReact](docs/CreateV1PageReact.md) + - [CreateV1PageReactResponse](docs/CreateV1PageReactResponse.md) + - [CreateV2PageReactResponse](docs/CreateV2PageReactResponse.md) + - [CreateVoteResponse](docs/CreateVoteResponse.md) - [CustomConfigParameters](docs/CustomConfigParameters.md) - [CustomEmailTemplate](docs/CustomEmailTemplate.md) - [DeleteCommentAction](docs/DeleteCommentAction.md) + - [DeleteCommentPublicResponse](docs/DeleteCommentPublicResponse.md) + - [DeleteCommentResponse](docs/DeleteCommentResponse.md) - [DeleteCommentResult](docs/DeleteCommentResult.md) + - [DeleteCommentVoteResponse](docs/DeleteCommentVoteResponse.md) - [DeleteDomainConfigResponse](docs/DeleteDomainConfigResponse.md) + - [DeleteEmailTemplateRenderErrorResponse](docs/DeleteEmailTemplateRenderErrorResponse.md) + - [DeleteEmailTemplateResponse](docs/DeleteEmailTemplateResponse.md) - [DeleteFeedPostPublicResponse](docs/DeleteFeedPostPublicResponse.md) + - [DeleteFeedPostPublicResponseAnyOf](docs/DeleteFeedPostPublicResponseAnyOf.md) - [DeleteHashTagRequestBody](docs/DeleteHashTagRequestBody.md) + - [DeleteHashTagResponse](docs/DeleteHashTagResponse.md) + - [DeleteModerationVoteResponse](docs/DeleteModerationVoteResponse.md) + - [DeleteModeratorResponse](docs/DeleteModeratorResponse.md) + - [DeleteNotificationCountResponse](docs/DeleteNotificationCountResponse.md) - [DeletePageAPIResponse](docs/DeletePageAPIResponse.md) + - [DeletePendingWebhookEventResponse](docs/DeletePendingWebhookEventResponse.md) + - [DeleteQuestionConfigResponse](docs/DeleteQuestionConfigResponse.md) + - [DeleteQuestionResultResponse](docs/DeleteQuestionResultResponse.md) - [DeleteSSOUserAPIResponse](docs/DeleteSSOUserAPIResponse.md) - [DeleteSubscriptionAPIResponse](docs/DeleteSubscriptionAPIResponse.md) + - [DeleteTenantPackageResponse](docs/DeleteTenantPackageResponse.md) + - [DeleteTenantResponse](docs/DeleteTenantResponse.md) + - [DeleteTenantUserResponse](docs/DeleteTenantUserResponse.md) + - [DeleteUserBadgeResponse](docs/DeleteUserBadgeResponse.md) + - [DeleteV1PageReactResponse](docs/DeleteV1PageReactResponse.md) + - [DeleteV2PageReactResponse](docs/DeleteV2PageReactResponse.md) + - [DeleteVoteResponse](docs/DeleteVoteResponse.md) - [DeletedCommentResultComment](docs/DeletedCommentResultComment.md) - [DigestEmailFrequency](docs/DigestEmailFrequency.md) - [EmailTemplateDefinition](docs/EmailTemplateDefinition.md) @@ -479,72 +523,154 @@ Class | Method | HTTP request | Description - [FeedPostsStatsResponse](docs/FeedPostsStatsResponse.md) - [FindCommentsByRangeItem](docs/FindCommentsByRangeItem.md) - [FindCommentsByRangeResponse](docs/FindCommentsByRangeResponse.md) + - [FlagCommentPublicResponse](docs/FlagCommentPublicResponse.md) - [FlagCommentResponse](docs/FlagCommentResponse.md) + - [FlagCommentResponse1](docs/FlagCommentResponse1.md) + - [GetApiCommentsResponse](docs/GetApiCommentsResponse.md) + - [GetApiExportStatusResponse](docs/GetApiExportStatusResponse.md) + - [GetApiIdsResponse](docs/GetApiIdsResponse.md) - [GetAuditLogsResponse](docs/GetAuditLogsResponse.md) + - [GetAuditLogsResponse1](docs/GetAuditLogsResponse1.md) + - [GetBanUsersFromCommentResponse](docs/GetBanUsersFromCommentResponse.md) - [GetBannedUsersCountResponse](docs/GetBannedUsersCountResponse.md) - [GetBannedUsersFromCommentResponse](docs/GetBannedUsersFromCommentResponse.md) - [GetCachedNotificationCountResponse](docs/GetCachedNotificationCountResponse.md) + - [GetCachedNotificationCountResponse1](docs/GetCachedNotificationCountResponse1.md) - [GetCommentBanStatusResponse](docs/GetCommentBanStatusResponse.md) + - [GetCommentBanStatusResponse1](docs/GetCommentBanStatusResponse1.md) + - [GetCommentChildrenResponse](docs/GetCommentChildrenResponse.md) + - [GetCommentResponse](docs/GetCommentResponse.md) - [GetCommentTextResponse](docs/GetCommentTextResponse.md) + - [GetCommentTextResponse1](docs/GetCommentTextResponse1.md) + - [GetCommentVoteUserNamesResponse](docs/GetCommentVoteUserNamesResponse.md) - [GetCommentVoteUserNamesSuccessResponse](docs/GetCommentVoteUserNamesSuccessResponse.md) - [GetCommentsForUserResponse](docs/GetCommentsForUserResponse.md) + - [GetCommentsForUserResponse1](docs/GetCommentsForUserResponse1.md) + - [GetCommentsPublicResponse](docs/GetCommentsPublicResponse.md) + - [GetCommentsResponse](docs/GetCommentsResponse.md) - [GetCommentsResponsePublicComment](docs/GetCommentsResponsePublicComment.md) - [GetCommentsResponseWithPresencePublicComment](docs/GetCommentsResponseWithPresencePublicComment.md) + - [GetCountResponse](docs/GetCountResponse.md) + - [GetCountsResponse](docs/GetCountsResponse.md) - [GetDomainConfigResponse](docs/GetDomainConfigResponse.md) - [GetDomainConfigsResponse](docs/GetDomainConfigsResponse.md) - [GetDomainConfigsResponseAnyOf](docs/GetDomainConfigsResponseAnyOf.md) - [GetDomainConfigsResponseAnyOf1](docs/GetDomainConfigsResponseAnyOf1.md) - [GetEmailTemplateDefinitionsResponse](docs/GetEmailTemplateDefinitionsResponse.md) + - [GetEmailTemplateDefinitionsResponse1](docs/GetEmailTemplateDefinitionsResponse1.md) - [GetEmailTemplateRenderErrorsResponse](docs/GetEmailTemplateRenderErrorsResponse.md) + - [GetEmailTemplateRenderErrorsResponse1](docs/GetEmailTemplateRenderErrorsResponse1.md) - [GetEmailTemplateResponse](docs/GetEmailTemplateResponse.md) + - [GetEmailTemplateResponse1](docs/GetEmailTemplateResponse1.md) - [GetEmailTemplatesResponse](docs/GetEmailTemplatesResponse.md) + - [GetEmailTemplatesResponse1](docs/GetEmailTemplatesResponse1.md) - [GetEventLogResponse](docs/GetEventLogResponse.md) + - [GetEventLogResponse1](docs/GetEventLogResponse1.md) + - [GetFeedPostsPublicResponse](docs/GetFeedPostsPublicResponse.md) - [GetFeedPostsResponse](docs/GetFeedPostsResponse.md) + - [GetFeedPostsResponse1](docs/GetFeedPostsResponse1.md) + - [GetFeedPostsStatsResponse](docs/GetFeedPostsStatsResponse.md) + - [GetGifLargeResponse](docs/GetGifLargeResponse.md) - [GetGifsSearchResponse](docs/GetGifsSearchResponse.md) - [GetGifsTrendingResponse](docs/GetGifsTrendingResponse.md) + - [GetGlobalEventLogResponse](docs/GetGlobalEventLogResponse.md) - [GetHashTagsResponse](docs/GetHashTagsResponse.md) + - [GetHashTagsResponse1](docs/GetHashTagsResponse1.md) + - [GetLogsResponse](docs/GetLogsResponse.md) + - [GetManualBadgesForUserResponse](docs/GetManualBadgesForUserResponse.md) + - [GetManualBadgesResponse](docs/GetManualBadgesResponse.md) + - [GetModerationCommentResponse](docs/GetModerationCommentResponse.md) + - [GetModerationCommentTextResponse](docs/GetModerationCommentTextResponse.md) - [GetModeratorResponse](docs/GetModeratorResponse.md) + - [GetModeratorResponse1](docs/GetModeratorResponse1.md) - [GetModeratorsResponse](docs/GetModeratorsResponse.md) + - [GetModeratorsResponse1](docs/GetModeratorsResponse1.md) - [GetMyNotificationsResponse](docs/GetMyNotificationsResponse.md) - [GetNotificationCountResponse](docs/GetNotificationCountResponse.md) + - [GetNotificationCountResponse1](docs/GetNotificationCountResponse1.md) - [GetNotificationsResponse](docs/GetNotificationsResponse.md) + - [GetNotificationsResponse1](docs/GetNotificationsResponse1.md) + - [GetOfflineUsersResponse](docs/GetOfflineUsersResponse.md) + - [GetOnlineUsersResponse](docs/GetOnlineUsersResponse.md) - [GetPageByURLIdAPIResponse](docs/GetPageByURLIdAPIResponse.md) - [GetPagesAPIResponse](docs/GetPagesAPIResponse.md) + - [GetPagesPublicResponse](docs/GetPagesPublicResponse.md) - [GetPendingWebhookEventCountResponse](docs/GetPendingWebhookEventCountResponse.md) + - [GetPendingWebhookEventCountResponse1](docs/GetPendingWebhookEventCountResponse1.md) - [GetPendingWebhookEventsResponse](docs/GetPendingWebhookEventsResponse.md) + - [GetPendingWebhookEventsResponse1](docs/GetPendingWebhookEventsResponse1.md) + - [GetPreBanSummaryResponse](docs/GetPreBanSummaryResponse.md) - [GetPublicFeedPostsResponse](docs/GetPublicFeedPostsResponse.md) - [GetPublicPagesResponse](docs/GetPublicPagesResponse.md) - [GetQuestionConfigResponse](docs/GetQuestionConfigResponse.md) + - [GetQuestionConfigResponse1](docs/GetQuestionConfigResponse1.md) - [GetQuestionConfigsResponse](docs/GetQuestionConfigsResponse.md) + - [GetQuestionConfigsResponse1](docs/GetQuestionConfigsResponse1.md) - [GetQuestionResultResponse](docs/GetQuestionResultResponse.md) + - [GetQuestionResultResponse1](docs/GetQuestionResultResponse1.md) - [GetQuestionResultsResponse](docs/GetQuestionResultsResponse.md) + - [GetQuestionResultsResponse1](docs/GetQuestionResultsResponse1.md) - [GetSSOUserByEmailAPIResponse](docs/GetSSOUserByEmailAPIResponse.md) - [GetSSOUserByIdAPIResponse](docs/GetSSOUserByIdAPIResponse.md) - [GetSSOUsersResponse](docs/GetSSOUsersResponse.md) + - [GetSearchCommentsSummaryResponse](docs/GetSearchCommentsSummaryResponse.md) + - [GetSearchPagesResponse](docs/GetSearchPagesResponse.md) + - [GetSearchSitesResponse](docs/GetSearchSitesResponse.md) + - [GetSearchSuggestResponse](docs/GetSearchSuggestResponse.md) + - [GetSearchUsersResponse](docs/GetSearchUsersResponse.md) - [GetSubscriptionsAPIResponse](docs/GetSubscriptionsAPIResponse.md) - [GetTenantDailyUsagesResponse](docs/GetTenantDailyUsagesResponse.md) + - [GetTenantDailyUsagesResponse1](docs/GetTenantDailyUsagesResponse1.md) - [GetTenantManualBadgesResponse](docs/GetTenantManualBadgesResponse.md) - [GetTenantPackageResponse](docs/GetTenantPackageResponse.md) + - [GetTenantPackageResponse1](docs/GetTenantPackageResponse1.md) - [GetTenantPackagesResponse](docs/GetTenantPackagesResponse.md) + - [GetTenantPackagesResponse1](docs/GetTenantPackagesResponse1.md) - [GetTenantResponse](docs/GetTenantResponse.md) + - [GetTenantResponse1](docs/GetTenantResponse1.md) - [GetTenantUserResponse](docs/GetTenantUserResponse.md) + - [GetTenantUserResponse1](docs/GetTenantUserResponse1.md) - [GetTenantUsersResponse](docs/GetTenantUsersResponse.md) + - [GetTenantUsersResponse1](docs/GetTenantUsersResponse1.md) - [GetTenantsResponse](docs/GetTenantsResponse.md) + - [GetTenantsResponse1](docs/GetTenantsResponse1.md) - [GetTicketResponse](docs/GetTicketResponse.md) + - [GetTicketResponse1](docs/GetTicketResponse1.md) - [GetTicketsResponse](docs/GetTicketsResponse.md) + - [GetTicketsResponse1](docs/GetTicketsResponse1.md) - [GetTranslationsResponse](docs/GetTranslationsResponse.md) + - [GetTranslationsResponse1](docs/GetTranslationsResponse1.md) + - [GetTrustFactorResponse](docs/GetTrustFactorResponse.md) + - [GetUserBadgeProgressByIdResponse](docs/GetUserBadgeProgressByIdResponse.md) + - [GetUserBadgeProgressByUserIdResponse](docs/GetUserBadgeProgressByUserIdResponse.md) + - [GetUserBadgeProgressListResponse](docs/GetUserBadgeProgressListResponse.md) + - [GetUserBadgeResponse](docs/GetUserBadgeResponse.md) + - [GetUserBadgesResponse](docs/GetUserBadgesResponse.md) + - [GetUserBanPreferenceResponse](docs/GetUserBanPreferenceResponse.md) - [GetUserInternalProfileResponse](docs/GetUserInternalProfileResponse.md) + - [GetUserInternalProfileResponse1](docs/GetUserInternalProfileResponse1.md) - [GetUserInternalProfileResponseProfile](docs/GetUserInternalProfileResponseProfile.md) - [GetUserManualBadgesResponse](docs/GetUserManualBadgesResponse.md) - [GetUserNotificationCountResponse](docs/GetUserNotificationCountResponse.md) + - [GetUserNotificationCountResponse1](docs/GetUserNotificationCountResponse1.md) + - [GetUserNotificationsResponse](docs/GetUserNotificationsResponse.md) - [GetUserPresenceStatusesResponse](docs/GetUserPresenceStatusesResponse.md) + - [GetUserPresenceStatusesResponse1](docs/GetUserPresenceStatusesResponse1.md) + - [GetUserReactsPublicResponse](docs/GetUserReactsPublicResponse.md) - [GetUserResponse](docs/GetUserResponse.md) + - [GetUserResponse1](docs/GetUserResponse1.md) - [GetUserTrustFactorResponse](docs/GetUserTrustFactorResponse.md) + - [GetUsersInfoResponse](docs/GetUsersInfoResponse.md) - [GetV1PageLikes](docs/GetV1PageLikes.md) + - [GetV1PageLikesResponse](docs/GetV1PageLikesResponse.md) - [GetV2PageReactUsersResponse](docs/GetV2PageReactUsersResponse.md) + - [GetV2PageReactUsersResponse1](docs/GetV2PageReactUsersResponse1.md) - [GetV2PageReacts](docs/GetV2PageReacts.md) + - [GetV2PageReactsResponse](docs/GetV2PageReactsResponse.md) - [GetVotesForUserResponse](docs/GetVotesForUserResponse.md) + - [GetVotesForUserResponse1](docs/GetVotesForUserResponse1.md) - [GetVotesResponse](docs/GetVotesResponse.md) + - [GetVotesResponse1](docs/GetVotesResponse1.md) - [GifGetLargeResponse](docs/GifGetLargeResponse.md) - [GifRating](docs/GifRating.md) - [GifSearchInternalError](docs/GifSearchInternalError.md) @@ -559,6 +685,7 @@ Class | Method | HTTP request | Description - [LiveEvent](docs/LiveEvent.md) - [LiveEventExtraInfo](docs/LiveEventExtraInfo.md) - [LiveEventType](docs/LiveEventType.md) + - [LockCommentResponse](docs/LockCommentResponse.md) - [MediaAsset](docs/MediaAsset.md) - [MentionAutoCompleteMode](docs/MentionAutoCompleteMode.md) - [MetaItem](docs/MetaItem.md) @@ -592,10 +719,26 @@ Class | Method | HTTP request | Description - [PagesSortBy](docs/PagesSortBy.md) - [PatchDomainConfigParams](docs/PatchDomainConfigParams.md) - [PatchDomainConfigResponse](docs/PatchDomainConfigResponse.md) + - [PatchHashTagResponse](docs/PatchHashTagResponse.md) - [PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) + - [PinCommentResponse](docs/PinCommentResponse.md) + - [PostAdjustCommentVotesResponse](docs/PostAdjustCommentVotesResponse.md) + - [PostApiExportResponse](docs/PostApiExportResponse.md) + - [PostBanUserFromCommentResponse](docs/PostBanUserFromCommentResponse.md) + - [PostBanUserUndoResponse](docs/PostBanUserUndoResponse.md) + - [PostBulkPreBanSummaryResponse](docs/PostBulkPreBanSummaryResponse.md) + - [PostCommentsByIdsResponse](docs/PostCommentsByIdsResponse.md) + - [PostFlagCommentResponse](docs/PostFlagCommentResponse.md) - [PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [PostRestoreDeletedCommentResponse](docs/PostRestoreDeletedCommentResponse.md) + - [PostSetCommentApprovalStatusResponse](docs/PostSetCommentApprovalStatusResponse.md) + - [PostSetCommentReviewStatusResponse](docs/PostSetCommentReviewStatusResponse.md) + - [PostSetCommentSpamStatusResponse](docs/PostSetCommentSpamStatusResponse.md) + - [PostSetCommentTextResponse](docs/PostSetCommentTextResponse.md) + - [PostUnFlagCommentResponse](docs/PostUnFlagCommentResponse.md) + - [PostVoteResponse](docs/PostVoteResponse.md) - [PreBanSummary](docs/PreBanSummary.md) - [PubSubComment](docs/PubSubComment.md) - [PubSubCommentBase](docs/PubSubCommentBase.md) @@ -609,7 +752,11 @@ Class | Method | HTTP request | Description - [PublicFeedPostsResponse](docs/PublicFeedPostsResponse.md) - [PublicPage](docs/PublicPage.md) - [PublicVote](docs/PublicVote.md) + - [PutAwardBadgeResponse](docs/PutAwardBadgeResponse.md) + - [PutCloseThreadResponse](docs/PutCloseThreadResponse.md) - [PutDomainConfigResponse](docs/PutDomainConfigResponse.md) + - [PutRemoveBadgeResponse](docs/PutRemoveBadgeResponse.md) + - [PutReopenThreadResponse](docs/PutReopenThreadResponse.md) - [PutSSOUserAPIResponse](docs/PutSSOUserAPIResponse.md) - [QueryPredicate](docs/QueryPredicate.md) - [QueryPredicateValue](docs/QueryPredicateValue.md) @@ -622,30 +769,42 @@ Class | Method | HTTP request | Description - [QuestionSubQuestionVisibility](docs/QuestionSubQuestionVisibility.md) - [QuestionWhenSave](docs/QuestionWhenSave.md) - [ReactBodyParams](docs/ReactBodyParams.md) + - [ReactFeedPostPublicResponse](docs/ReactFeedPostPublicResponse.md) - [ReactFeedPostResponse](docs/ReactFeedPostResponse.md) - [RecordStringBeforeStringOrNullAfterStringOrNullValue](docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - [RemoveCommentActionResponse](docs/RemoveCommentActionResponse.md) - [RemoveUserBadgeResponse](docs/RemoveUserBadgeResponse.md) - [RenderEmailTemplateBody](docs/RenderEmailTemplateBody.md) - [RenderEmailTemplateResponse](docs/RenderEmailTemplateResponse.md) + - [RenderEmailTemplateResponse1](docs/RenderEmailTemplateResponse1.md) - [RenderableUserNotification](docs/RenderableUserNotification.md) - [RepeatCommentCheckIgnoredReason](docs/RepeatCommentCheckIgnoredReason.md) - [RepeatCommentHandlingAction](docs/RepeatCommentHandlingAction.md) - [ReplaceTenantPackageBody](docs/ReplaceTenantPackageBody.md) + - [ReplaceTenantPackageResponse](docs/ReplaceTenantPackageResponse.md) - [ReplaceTenantUserBody](docs/ReplaceTenantUserBody.md) + - [ReplaceTenantUserResponse](docs/ReplaceTenantUserResponse.md) + - [ResetUserNotificationCountResponse](docs/ResetUserNotificationCountResponse.md) - [ResetUserNotificationsResponse](docs/ResetUserNotificationsResponse.md) + - [ResetUserNotificationsResponse1](docs/ResetUserNotificationsResponse1.md) - [SORTDIR](docs/SORTDIR.md) - [SSOSecurityLevel](docs/SSOSecurityLevel.md) + - [SaveCommentResponse](docs/SaveCommentResponse.md) - [SaveCommentResponseOptimized](docs/SaveCommentResponseOptimized.md) - [SaveCommentsBulkResponse](docs/SaveCommentsBulkResponse.md) - [SaveCommentsResponseWithPresence](docs/SaveCommentsResponseWithPresence.md) - [SearchUsersResponse](docs/SearchUsersResponse.md) + - [SearchUsersResponse1](docs/SearchUsersResponse1.md) - [SearchUsersResult](docs/SearchUsersResult.md) - [SearchUsersSectionedResponse](docs/SearchUsersSectionedResponse.md) + - [SendInviteResponse](docs/SendInviteResponse.md) + - [SendLoginLinkResponse](docs/SendLoginLinkResponse.md) - [SetCommentApprovedResponse](docs/SetCommentApprovedResponse.md) - [SetCommentTextParams](docs/SetCommentTextParams.md) - [SetCommentTextResponse](docs/SetCommentTextResponse.md) + - [SetCommentTextResponse1](docs/SetCommentTextResponse1.md) - [SetCommentTextResult](docs/SetCommentTextResult.md) + - [SetTrustFactorResponse](docs/SetTrustFactorResponse.md) - [SetUserTrustFactorResponse](docs/SetUserTrustFactorResponse.md) - [SizePreset](docs/SizePreset.md) - [SortDirections](docs/SortDirections.md) @@ -654,26 +813,43 @@ Class | Method | HTTP request | Description - [TenantBadge](docs/TenantBadge.md) - [TenantHashTag](docs/TenantHashTag.md) - [TenantPackage](docs/TenantPackage.md) + - [UnBlockCommentPublicResponse](docs/UnBlockCommentPublicResponse.md) - [UnBlockFromCommentParams](docs/UnBlockFromCommentParams.md) + - [UnBlockUserFromCommentResponse](docs/UnBlockUserFromCommentResponse.md) + - [UnFlagCommentResponse](docs/UnFlagCommentResponse.md) + - [UnLockCommentResponse](docs/UnLockCommentResponse.md) + - [UnPinCommentResponse](docs/UnPinCommentResponse.md) - [UnblockSuccess](docs/UnblockSuccess.md) - [UpdatableCommentParams](docs/UpdatableCommentParams.md) - [UpdateAPIPageData](docs/UpdateAPIPageData.md) - [UpdateAPISSOUserData](docs/UpdateAPISSOUserData.md) - [UpdateAPIUserSubscriptionData](docs/UpdateAPIUserSubscriptionData.md) + - [UpdateCommentResponse](docs/UpdateCommentResponse.md) - [UpdateDomainConfigParams](docs/UpdateDomainConfigParams.md) - [UpdateEmailTemplateBody](docs/UpdateEmailTemplateBody.md) + - [UpdateEmailTemplateResponse](docs/UpdateEmailTemplateResponse.md) - [UpdateFeedPostParams](docs/UpdateFeedPostParams.md) + - [UpdateFeedPostPublicResponse](docs/UpdateFeedPostPublicResponse.md) + - [UpdateFeedPostResponse](docs/UpdateFeedPostResponse.md) - [UpdateHashTagBody](docs/UpdateHashTagBody.md) - [UpdateHashTagResponse](docs/UpdateHashTagResponse.md) - [UpdateModeratorBody](docs/UpdateModeratorBody.md) + - [UpdateModeratorResponse](docs/UpdateModeratorResponse.md) - [UpdateNotificationBody](docs/UpdateNotificationBody.md) + - [UpdateNotificationResponse](docs/UpdateNotificationResponse.md) - [UpdateQuestionConfigBody](docs/UpdateQuestionConfigBody.md) + - [UpdateQuestionConfigResponse](docs/UpdateQuestionConfigResponse.md) - [UpdateQuestionResultBody](docs/UpdateQuestionResultBody.md) + - [UpdateQuestionResultResponse](docs/UpdateQuestionResultResponse.md) - [UpdateSubscriptionAPIResponse](docs/UpdateSubscriptionAPIResponse.md) - [UpdateTenantBody](docs/UpdateTenantBody.md) - [UpdateTenantPackageBody](docs/UpdateTenantPackageBody.md) + - [UpdateTenantPackageResponse](docs/UpdateTenantPackageResponse.md) + - [UpdateTenantResponse](docs/UpdateTenantResponse.md) - [UpdateTenantUserBody](docs/UpdateTenantUserBody.md) + - [UpdateTenantUserResponse](docs/UpdateTenantUserResponse.md) - [UpdateUserBadgeParams](docs/UpdateUserBadgeParams.md) + - [UpdateUserBadgeResponse](docs/UpdateUserBadgeResponse.md) - [UpdateUserNotificationCommentSubscriptionStatusResponse](docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md) - [UpdateUserNotificationPageSubscriptionStatusResponse](docs/UpdateUserNotificationPageSubscriptionStatusResponse.md) - [UpdateUserNotificationStatusResponse](docs/UpdateUserNotificationStatusResponse.md) @@ -692,6 +868,7 @@ Class | Method | HTTP request | Description - [UserSessionInfo](docs/UserSessionInfo.md) - [UsersListLocation](docs/UsersListLocation.md) - [VoteBodyParams](docs/VoteBodyParams.md) + - [VoteCommentResponse](docs/VoteCommentResponse.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 a0379b03..683a955c 100644 --- a/client/api/openapi.yaml +++ b/client/api/openapi.yaml @@ -63,14 +63,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SearchUsersResult" + $ref: "#/components/schemas/SearchUsersResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -106,7 +100,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserPresenceStatusesResponse" + $ref: "#/components/schemas/GetUserPresenceStatusesResponse_1" description: Ok "422": content: @@ -114,12 +108,6 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -221,14 +209,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetMyNotificationsResponse" + $ref: "#/components/schemas/GetUserNotificationsResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -293,14 +275,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ResetUserNotificationsResponse" + $ref: "#/components/schemas/ResetUserNotificationsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -329,14 +305,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserNotificationCountResponse" + $ref: "#/components/schemas/GetUserNotificationCountResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -365,14 +335,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ResetUserNotificationsResponse" + $ref: "#/components/schemas/ResetUserNotificationCountResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -420,12 +384,6 @@ paths: schema: $ref: "#/components/schemas/UpdateUserNotificationStatusResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -481,12 +439,6 @@ paths: schema: $ref: "#/components/schemas/UpdateUserNotificationCommentSubscriptionStatusResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -551,12 +503,6 @@ paths: schema: $ref: "#/components/schemas/UpdateUserNotificationPageSubscriptionStatusResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -647,7 +593,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTranslationsResponse" + $ref: "#/components/schemas/GetTranslationsResponse_1" description: Ok "422": content: @@ -661,12 +607,6 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Internal - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -735,14 +675,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetPublicPagesResponse" + $ref: "#/components/schemas/GetPagesPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -792,7 +726,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PageUsersOnlineResponse" + $ref: "#/components/schemas/GetOnlineUsersResponse" description: Ok "403": content: @@ -806,12 +740,6 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -863,7 +791,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PageUsersOfflineResponse" + $ref: "#/components/schemas/GetOfflineUsersResponse" description: Ok "403": content: @@ -877,12 +805,6 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -916,7 +838,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PageUsersInfoResponse" + $ref: "#/components/schemas/GetUsersInfoResponse" description: Ok "422": content: @@ -924,12 +846,6 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -958,14 +874,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteV1PageReact" + $ref: "#/components/schemas/DeleteV1PageReactResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -993,14 +903,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetV1PageLikes" + $ref: "#/components/schemas/GetV1PageLikesResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -1035,14 +939,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateV1PageReact" + $ref: "#/components/schemas/CreateV1PageReactResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -1078,14 +976,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetV2PageReactUsersResponse" + $ref: "#/components/schemas/GetV2PageReactUsersResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -1121,14 +1013,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteV2PageReact" + $ref: "#/components/schemas/DeleteV2PageReactResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -1156,14 +1042,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetV2PageReacts" + $ref: "#/components/schemas/GetV2PageReactsResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -1205,14 +1085,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateV2PageReact" + $ref: "#/components/schemas/CreateV2PageReactResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -1257,6 +1131,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1269,14 +1150,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationAPICountCommentsResponse" + $ref: "#/components/schemas/GetCountResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1328,6 +1203,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1340,14 +1222,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationAPIGetCommentIdsResponse" + $ref: "#/components/schemas/GetApiIdsResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1415,6 +1291,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1427,14 +1310,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationAPIGetCommentsResponse" + $ref: "#/components/schemas/GetApiCommentsResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1479,6 +1356,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1491,14 +1375,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationExportResponse" + $ref: "#/components/schemas/PostApiExportResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1515,6 +1393,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1527,14 +1412,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationExportStatusResponse" + $ref: "#/components/schemas/GetApiExportStatusResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1551,6 +1430,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1563,14 +1449,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationUserSearchResponse" + $ref: "#/components/schemas/GetSearchUsersResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1587,6 +1467,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1599,14 +1486,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationPageSearchResponse" + $ref: "#/components/schemas/GetSearchPagesResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1623,6 +1504,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1635,14 +1523,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationSiteSearchResponse" + $ref: "#/components/schemas/GetSearchSitesResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1673,6 +1555,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1685,14 +1574,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationCommentSearchResponse" + $ref: "#/components/schemas/GetSearchCommentsSummaryResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1709,6 +1592,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1721,14 +1611,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationSuggestResponse" + $ref: "#/components/schemas/GetSearchSuggestResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1766,6 +1650,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1778,14 +1669,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PreBanSummary" + $ref: "#/components/schemas/GetPreBanSummaryResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1816,6 +1701,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1834,14 +1726,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkPreBanSummary" + $ref: "#/components/schemas/PostBulkPreBanSummaryResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1915,6 +1801,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1927,14 +1820,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BanUserFromCommentResult" + $ref: "#/components/schemas/PostBanUserFromCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1951,6 +1838,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1963,14 +1857,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetBannedUsersFromCommentResponse" + $ref: "#/components/schemas/GetBanUsersFromCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -1980,6 +1868,13 @@ paths: post: operationId: PostBanUserUndo parameters: + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1998,14 +1893,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/PostBanUserUndoResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2025,24 +1914,32 @@ paths: style: simple - explode: true in: query - name: sso + name: broadcastId required: false schema: type: string style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/PostRemoveCommentResponse" - description: Ok - default: + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form + responses: + "200": content: application/json: schema: - $ref: "#/components/schemas/APIError" - description: Error + $ref: "#/components/schemas/PostRemoveCommentResponse" + description: Ok security: [] tags: - Moderation @@ -2059,6 +1956,20 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2071,14 +1982,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/PostRestoreDeletedCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2095,6 +2000,20 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2107,14 +2026,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/PostFlagCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2131,6 +2044,20 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2143,14 +2070,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/PostUnFlagCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2174,6 +2095,20 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2186,14 +2121,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/PostSetCommentReviewStatusResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2224,6 +2153,20 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2236,14 +2179,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/PostSetCommentSpamStatusResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2267,6 +2204,20 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2279,14 +2230,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SetCommentApprovedResponse" + $ref: "#/components/schemas/PostSetCommentApprovalStatusResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2303,6 +2248,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2315,14 +2267,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationAPIGetLogsResponse" + $ref: "#/components/schemas/GetLogsResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2353,6 +2299,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2365,14 +2318,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationAPICommentResponse" + $ref: "#/components/schemas/GetModerationCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2382,6 +2329,13 @@ paths: post: operationId: PostCommentsByIds parameters: + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2400,14 +2354,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" + $ref: "#/components/schemas/PostCommentsByIdsResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2425,6 +2373,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2437,14 +2392,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" + $ref: "#/components/schemas/GetCommentChildrenResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2461,6 +2410,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2473,14 +2429,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentTextResponse" + $ref: "#/components/schemas/GetModerationCommentTextResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2497,6 +2447,20 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2515,14 +2479,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SetCommentTextResponse" + $ref: "#/components/schemas/PostSetCommentTextResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2540,6 +2498,20 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2558,14 +2530,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AdjustVotesResponse" + $ref: "#/components/schemas/PostAdjustCommentVotesResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2590,6 +2556,20 @@ paths: schema: type: string style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2602,14 +2582,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/VoteResponse" + $ref: "#/components/schemas/PostVoteResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2635,24 +2609,32 @@ paths: style: simple - explode: true in: query - name: sso + name: broadcastId required: false schema: type: string style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/VoteDeleteResponse" - description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DeleteModerationVoteResponse" + description: Ok security: [] tags: - Moderation @@ -2669,6 +2651,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2681,14 +2670,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentBanStatusResponse" + $ref: "#/components/schemas/GetCommentBanStatusResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2698,6 +2681,13 @@ paths: get: operationId: GetUserBanPreference parameters: + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2710,14 +2700,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIModerateGetUserBanPreferencesResponse" + $ref: "#/components/schemas/GetUserBanPreferenceResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2727,6 +2711,13 @@ paths: get: operationId: GetManualBadges parameters: + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2739,14 +2730,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantManualBadgesResponse" + $ref: "#/components/schemas/GetManualBadgesResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2770,6 +2755,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2782,14 +2774,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserManualBadgesResponse" + $ref: "#/components/schemas/GetManualBadgesForUserResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2827,6 +2813,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2839,14 +2832,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AwardUserBadgeResponse" + $ref: "#/components/schemas/PutAwardBadgeResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2884,6 +2871,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2896,14 +2890,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RemoveUserBadgeResponse" + $ref: "#/components/schemas/PutRemoveBadgeResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2920,6 +2908,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2932,14 +2927,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserTrustFactorResponse" + $ref: "#/components/schemas/GetTrustFactorResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2963,6 +2952,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2975,14 +2971,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SetUserTrustFactorResponse" + $ref: "#/components/schemas/SetTrustFactorResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -2999,6 +2989,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -3011,14 +3008,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserInternalProfileResponse" + $ref: "#/components/schemas/GetUserInternalProfileResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -3035,6 +3026,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -3047,14 +3045,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/PutReopenThreadResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -3071,6 +3063,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -3083,14 +3082,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/PutCloseThreadResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -3100,6 +3093,13 @@ paths: get: operationId: GetCounts parameters: + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -3112,14 +3112,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetBannedUsersCountResponse" + $ref: "#/components/schemas/GetCountsResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Moderation @@ -3223,12 +3217,6 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3257,7 +3245,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GifGetLargeResponse" + $ref: "#/components/schemas/GetGifLargeResponse" description: Ok "422": content: @@ -3265,12 +3253,6 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3313,14 +3295,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/FlagCommentPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3392,14 +3368,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PublicFeedPostsResponse" + $ref: "#/components/schemas/GetFeedPostsPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3440,14 +3410,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPostResponse" + $ref: "#/components/schemas/CreateFeedPostPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3504,14 +3468,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ReactFeedPostResponse" + $ref: "#/components/schemas/ReactFeedPostPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3550,14 +3508,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UserReactsResponse" + $ref: "#/components/schemas/GetUserReactsPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3602,12 +3554,6 @@ paths: schema: $ref: "#/components/schemas/DeleteFeedPostPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3655,14 +3601,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPostResponse" + $ref: "#/components/schemas/UpdateFeedPostPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3701,14 +3641,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FeedPostsStatsResponse" + $ref: "#/components/schemas/GetFeedPostsStatsResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3766,14 +3700,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEventLogResponse" + $ref: "#/components/schemas/GetEventLogResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3831,14 +3759,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEventLogResponse" + $ref: "#/components/schemas/GetGlobalEventLogResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3881,14 +3803,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PublicAPIGetCommentTextResponse" + $ref: "#/components/schemas/GetCommentTextResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -3944,14 +3860,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PublicAPISetCommentTextResponse" + $ref: "#/components/schemas/SetCommentTextResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4017,14 +3927,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentsForUserResponse" + $ref: "#/components/schemas/GetCommentsForUserResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4248,14 +4152,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" + $ref: "#/components/schemas/GetCommentsPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4310,14 +4208,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SaveCommentsResponseWithPresence" + $ref: "#/components/schemas/CreateCommentPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4368,14 +4260,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PublicAPIDeleteCommentResponse" + $ref: "#/components/schemas/DeleteCommentPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4412,14 +4298,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CheckBlockedCommentsResponse" + $ref: "#/components/schemas/CheckedCommentsForBlockedResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4482,14 +4362,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/VoteResponse" + $ref: "#/components/schemas/VoteCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4554,14 +4428,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/VoteDeleteResponse" + $ref: "#/components/schemas/DeleteCommentVoteResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4605,14 +4473,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" + $ref: "#/components/schemas/GetCommentVoteUserNamesResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4655,14 +4517,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ChangeCommentPinStatusResponse" + $ref: "#/components/schemas/PinCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4705,14 +4561,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ChangeCommentPinStatusResponse" + $ref: "#/components/schemas/UnPinCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4755,14 +4605,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/LockCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4805,14 +4649,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/UnLockCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4854,14 +4692,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UnblockSuccess" + $ref: "#/components/schemas/UnBlockCommentPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -4903,14 +4735,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BlockSuccess" + $ref: "#/components/schemas/BlockFromCommentPublicResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: [] tags: - Public @@ -5477,14 +5303,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetVotesResponse" + $ref: "#/components/schemas/GetVotesResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -5535,14 +5355,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/VoteResponse" + $ref: "#/components/schemas/CreateVoteResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -5584,14 +5398,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetVotesForUserResponse" + $ref: "#/components/schemas/GetVotesForUserResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -5626,14 +5434,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/VoteDeleteResponse" + $ref: "#/components/schemas/DeleteVoteResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -5661,14 +5463,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserResponse" + $ref: "#/components/schemas/GetUserResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -5696,14 +5492,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptySuccessResponse" + $ref: "#/components/schemas/DeleteUserBadgeResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -5730,14 +5520,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIGetUserBadgeResponse" + $ref: "#/components/schemas/GetUserBadgeResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -5770,14 +5554,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptySuccessResponse" + $ref: "#/components/schemas/UpdateUserBadgeResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -5844,14 +5622,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIGetUserBadgesResponse" + $ref: "#/components/schemas/GetUserBadgesResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -5877,14 +5649,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APICreateUserBadgeResponse" + $ref: "#/components/schemas/CreateUserBadgeResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -5913,14 +5679,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" + $ref: "#/components/schemas/GetUserBadgeProgressByIdResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -5964,14 +5724,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIGetUserBadgeProgressListResponse" + $ref: "#/components/schemas/GetUserBadgeProgressListResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -5999,14 +5753,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" + $ref: "#/components/schemas/GetUserBadgeProgressByUserIdResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6058,14 +5806,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTicketsResponse" + $ref: "#/components/schemas/GetTicketsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6098,14 +5840,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateTicketResponse" + $ref: "#/components/schemas/CreateTicketResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -6141,14 +5877,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTicketResponse" + $ref: "#/components/schemas/GetTicketResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6189,14 +5919,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ChangeTicketStateResponse" + $ref: "#/components/schemas/ChangeTicketStateResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -6232,14 +5956,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/DeleteTenantResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6266,14 +5984,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantResponse" + $ref: "#/components/schemas/GetTenantResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6306,14 +6018,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/UpdateTenantResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -6350,14 +6056,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantsResponse" + $ref: "#/components/schemas/GetTenantsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6383,14 +6083,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateTenantResponse" + $ref: "#/components/schemas/CreateTenantResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -6433,14 +6127,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/DeleteTenantUserResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6467,14 +6155,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantUserResponse" + $ref: "#/components/schemas/GetTenantUserResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6514,14 +6196,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/UpdateTenantUserResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -6562,14 +6238,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/ReplaceTenantUserResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -6599,14 +6269,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantUsersResponse" + $ref: "#/components/schemas/GetTenantUsersResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6632,14 +6296,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateTenantUserResponse" + $ref: "#/components/schemas/CreateTenantUserResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -6675,14 +6333,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/SendLoginLinkResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6710,14 +6362,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/DeleteTenantPackageResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6744,14 +6390,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantPackageResponse" + $ref: "#/components/schemas/GetTenantPackageResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6784,14 +6424,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/UpdateTenantPackageResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -6825,14 +6459,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/ReplaceTenantPackageResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -6862,14 +6490,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantPackagesResponse" + $ref: "#/components/schemas/GetTenantPackagesResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6895,14 +6517,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateTenantPackageResponse" + $ref: "#/components/schemas/CreateTenantPackageResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -6956,14 +6572,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantDailyUsagesResponse" + $ref: "#/components/schemas/GetTenantDailyUsagesResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -6991,14 +6601,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/DeleteQuestionResultResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7025,14 +6629,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetQuestionResultResponse" + $ref: "#/components/schemas/GetQuestionResultResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7065,14 +6663,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/UpdateQuestionResultResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -7137,14 +6729,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetQuestionResultsResponse" + $ref: "#/components/schemas/GetQuestionResultsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7170,14 +6756,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateQuestionResultResponse" + $ref: "#/components/schemas/CreateQuestionResultResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -7244,14 +6824,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AggregateQuestionResultsResponse" + $ref: "#/components/schemas/AggregateQuestionResultsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7285,14 +6859,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkAggregateQuestionResultsResponse" + $ref: "#/components/schemas/BulkAggregateQuestionResultsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -7376,14 +6944,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + $ref: "#/components/schemas/CombineCommentsWithQuestionResultsResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7411,14 +6973,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/DeleteQuestionConfigResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7445,14 +7001,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetQuestionConfigResponse" + $ref: "#/components/schemas/GetQuestionConfigResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7485,14 +7035,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/UpdateQuestionConfigResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -7522,14 +7066,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetQuestionConfigsResponse" + $ref: "#/components/schemas/GetQuestionConfigsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7555,14 +7093,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateQuestionConfigResponse" + $ref: "#/components/schemas/CreateQuestionConfigResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -7635,14 +7167,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetPendingWebhookEventsResponse" + $ref: "#/components/schemas/GetPendingWebhookEventsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7706,14 +7232,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetPendingWebhookEventCountResponse" + $ref: "#/components/schemas/GetPendingWebhookEventCountResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7741,14 +7261,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/DeletePendingWebhookEventResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7812,14 +7326,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetNotificationsResponse" + $ref: "#/components/schemas/GetNotificationsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7875,14 +7383,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetNotificationCountResponse" + $ref: "#/components/schemas/GetNotificationCountResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7923,14 +7425,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/UpdateNotificationResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -7959,14 +7455,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/DeleteNotificationCountResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -7993,14 +7483,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCachedNotificationCountResponse" + $ref: "#/components/schemas/GetCachedNotificationCountResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8035,14 +7519,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/DeleteModeratorResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8069,14 +7547,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetModeratorResponse" + $ref: "#/components/schemas/GetModeratorResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8109,14 +7581,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/UpdateModeratorResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -8146,14 +7612,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetModeratorsResponse" + $ref: "#/components/schemas/GetModeratorsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8179,14 +7639,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateModeratorResponse" + $ref: "#/components/schemas/CreateModeratorResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -8222,14 +7676,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/SendInviteResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8258,14 +7706,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetHashTagsResponse" + $ref: "#/components/schemas/GetHashTagsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8291,14 +7733,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateHashTagResponse" + $ref: "#/components/schemas/AddHashTagResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -8326,14 +7762,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkCreateHashTagsResponse" + $ref: "#/components/schemas/AddHashTagsBulkResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -8368,14 +7798,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/DeleteHashTagResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -8409,14 +7833,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateHashTagResponse" + $ref: "#/components/schemas/PatchHashTagResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -8467,14 +7885,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetFeedPostsResponse" + $ref: "#/components/schemas/GetFeedPostsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8528,14 +7940,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPostsResponse" + $ref: "#/components/schemas/CreateFeedPostResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -8570,14 +7976,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/UpdateFeedPostResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -8599,14 +7999,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplateDefinitionsResponse" + $ref: "#/components/schemas/GetEmailTemplateDefinitionsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8642,14 +8036,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplateRenderErrorsResponse" + $ref: "#/components/schemas/GetEmailTemplateRenderErrorsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8684,14 +8072,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/DeleteEmailTemplateRenderErrorResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8719,14 +8101,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/DeleteEmailTemplateResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8753,14 +8129,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplateResponse" + $ref: "#/components/schemas/GetEmailTemplateResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8793,14 +8163,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/UpdateEmailTemplateResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -8830,14 +8194,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplatesResponse" + $ref: "#/components/schemas/GetEmailTemplatesResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -8863,14 +8221,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateEmailTemplateResponse" + $ref: "#/components/schemas/CreateEmailTemplateResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -8905,14 +8257,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RenderEmailTemplateResponse" + $ref: "#/components/schemas/RenderEmailTemplateResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -9133,14 +8479,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteCommentResult" + $ref: "#/components/schemas/DeleteCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -9167,14 +8507,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIGetCommentResponse" + $ref: "#/components/schemas/GetCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -9228,14 +8562,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIEmptyResponse" + $ref: "#/components/schemas/UpdateCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -9377,14 +8705,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APIGetCommentsResponse" + $ref: "#/components/schemas/GetCommentsResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -9438,14 +8760,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/APISaveCommentResponse" + $ref: "#/components/schemas/SaveCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -9549,14 +8865,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FlagCommentResponse" + $ref: "#/components/schemas/FlagCommentResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -9598,14 +8908,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FlagCommentResponse" + $ref: "#/components/schemas/UnFlagCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -9653,14 +8957,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BlockSuccess" + $ref: "#/components/schemas/BlockUserFromCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -9709,14 +9007,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UnblockSuccess" + $ref: "#/components/schemas/UnBlockUserFromCommentResponse" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-content-type: application/json @@ -9777,14 +9069,8 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetAuditLogsResponse" + $ref: "#/components/schemas/GetAuditLogsResponse_1" description: Ok - default: - content: - application/json: - schema: - $ref: "#/components/schemas/APIError" - description: Error security: - api_key: [] x-accepts: @@ -25526,20 +24812,53 @@ components: - operations - resourceName type: object + SearchUsersResponse_1: + anyOf: + - $ref: "#/components/schemas/SearchUsersResult" + - $ref: "#/components/schemas/APIError" + title: SearchUsersResponse + GetUserPresenceStatusesResponse_1: + anyOf: + - $ref: "#/components/schemas/GetUserPresenceStatusesResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserPresenceStatusesResponse + GetUserNotificationsResponse: + anyOf: + - $ref: "#/components/schemas/GetMyNotificationsResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserNotificationsResponse + ResetUserNotificationsResponse_1: + anyOf: + - $ref: "#/components/schemas/ResetUserNotificationsResponse" + - $ref: "#/components/schemas/APIError" + title: ResetUserNotificationsResponse + GetUserNotificationCountResponse_1: + anyOf: + - $ref: "#/components/schemas/GetUserNotificationCountResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserNotificationCountResponse + ResetUserNotificationCountResponse: + anyOf: + - $ref: "#/components/schemas/ResetUserNotificationsResponse" + - $ref: "#/components/schemas/APIError" + title: ResetUserNotificationCountResponse UpdateUserNotificationStatusResponse: anyOf: - $ref: "#/components/schemas/UserNotificationWriteResponse" - $ref: "#/components/schemas/IgnoredResponse" + - $ref: "#/components/schemas/APIError" title: UpdateUserNotificationStatusResponse UpdateUserNotificationCommentSubscriptionStatusResponse: anyOf: - $ref: "#/components/schemas/UserNotificationWriteResponse" - $ref: "#/components/schemas/IgnoredResponse" + - $ref: "#/components/schemas/APIError" title: UpdateUserNotificationCommentSubscriptionStatusResponse UpdateUserNotificationPageSubscriptionStatusResponse: anyOf: - $ref: "#/components/schemas/UserNotificationWriteResponse" - $ref: "#/components/schemas/IgnoredResponse" + - $ref: "#/components/schemas/APIError" title: UpdateUserNotificationPageSubscriptionStatusResponse UploadImage_request: properties: @@ -25549,11 +24868,282 @@ components: required: - file type: object + GetTranslationsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetTranslationsResponse" + - $ref: "#/components/schemas/APIError" + title: GetTranslationsResponse + GetPagesPublicResponse: + anyOf: + - $ref: "#/components/schemas/GetPublicPagesResponse" + - $ref: "#/components/schemas/APIError" + title: GetPagesPublicResponse + GetOnlineUsersResponse: + anyOf: + - $ref: "#/components/schemas/PageUsersOnlineResponse" + - $ref: "#/components/schemas/APIError" + title: GetOnlineUsersResponse + GetOfflineUsersResponse: + anyOf: + - $ref: "#/components/schemas/PageUsersOfflineResponse" + - $ref: "#/components/schemas/APIError" + title: GetOfflineUsersResponse + GetUsersInfoResponse: + anyOf: + - $ref: "#/components/schemas/PageUsersInfoResponse" + - $ref: "#/components/schemas/APIError" + title: GetUsersInfoResponse + GetV1PageLikesResponse: + anyOf: + - $ref: "#/components/schemas/GetV1PageLikes" + - $ref: "#/components/schemas/APIError" + title: GetV1PageLikesResponse + CreateV1PageReactResponse: + anyOf: + - $ref: "#/components/schemas/CreateV1PageReact" + - $ref: "#/components/schemas/APIError" + title: CreateV1PageReactResponse + DeleteV1PageReactResponse: + anyOf: + - $ref: "#/components/schemas/DeleteV1PageReact" + - $ref: "#/components/schemas/APIError" + title: DeleteV1PageReactResponse + GetV2PageReactUsersResponse_1: + anyOf: + - $ref: "#/components/schemas/GetV2PageReactUsersResponse" + - $ref: "#/components/schemas/APIError" + title: GetV2PageReactUsersResponse + GetV2PageReactsResponse: + anyOf: + - $ref: "#/components/schemas/GetV2PageReacts" + - $ref: "#/components/schemas/APIError" + title: GetV2PageReactsResponse + CreateV2PageReactResponse: + anyOf: + - $ref: "#/components/schemas/CreateV2PageReact" + - $ref: "#/components/schemas/APIError" + title: CreateV2PageReactResponse + DeleteV2PageReactResponse: + anyOf: + - $ref: "#/components/schemas/DeleteV2PageReact" + - $ref: "#/components/schemas/APIError" + title: DeleteV2PageReactResponse + GetCountResponse: + anyOf: + - $ref: "#/components/schemas/ModerationAPICountCommentsResponse" + - $ref: "#/components/schemas/APIError" + title: GetCountResponse + GetApiIdsResponse: + anyOf: + - $ref: "#/components/schemas/ModerationAPIGetCommentIdsResponse" + - $ref: "#/components/schemas/APIError" + title: GetApiIdsResponse + GetApiCommentsResponse: + anyOf: + - $ref: "#/components/schemas/ModerationAPIGetCommentsResponse" + - $ref: "#/components/schemas/APIError" + title: GetApiCommentsResponse + PostApiExportResponse: + anyOf: + - $ref: "#/components/schemas/ModerationExportResponse" + - $ref: "#/components/schemas/APIError" + title: PostApiExportResponse + GetApiExportStatusResponse: + anyOf: + - $ref: "#/components/schemas/ModerationExportStatusResponse" + - $ref: "#/components/schemas/APIError" + title: GetApiExportStatusResponse + GetSearchUsersResponse: + anyOf: + - $ref: "#/components/schemas/ModerationUserSearchResponse" + - $ref: "#/components/schemas/APIError" + title: GetSearchUsersResponse + GetSearchPagesResponse: + anyOf: + - $ref: "#/components/schemas/ModerationPageSearchResponse" + - $ref: "#/components/schemas/APIError" + title: GetSearchPagesResponse + GetSearchSitesResponse: + anyOf: + - $ref: "#/components/schemas/ModerationSiteSearchResponse" + - $ref: "#/components/schemas/APIError" + title: GetSearchSitesResponse + GetSearchCommentsSummaryResponse: + anyOf: + - $ref: "#/components/schemas/ModerationCommentSearchResponse" + - $ref: "#/components/schemas/APIError" + title: GetSearchCommentsSummaryResponse + GetSearchSuggestResponse: + anyOf: + - $ref: "#/components/schemas/ModerationSuggestResponse" + - $ref: "#/components/schemas/APIError" + title: GetSearchSuggestResponse + GetPreBanSummaryResponse: + anyOf: + - $ref: "#/components/schemas/PreBanSummary" + - $ref: "#/components/schemas/APIError" + title: GetPreBanSummaryResponse + PostBulkPreBanSummaryResponse: + anyOf: + - $ref: "#/components/schemas/BulkPreBanSummary" + - $ref: "#/components/schemas/APIError" + title: PostBulkPreBanSummaryResponse + PostBanUserFromCommentResponse: + anyOf: + - $ref: "#/components/schemas/BanUserFromCommentResult" + - $ref: "#/components/schemas/APIError" + title: PostBanUserFromCommentResponse + GetBanUsersFromCommentResponse: + anyOf: + - $ref: "#/components/schemas/GetBannedUsersFromCommentResponse" + - $ref: "#/components/schemas/APIError" + title: GetBanUsersFromCommentResponse + PostBanUserUndoResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: PostBanUserUndoResponse PostRemoveCommentResponse: anyOf: - $ref: "#/components/schemas/DeleteCommentResult" - $ref: "#/components/schemas/RemoveCommentActionResponse" + - $ref: "#/components/schemas/APIError" title: PostRemoveCommentResponse + PostRestoreDeletedCommentResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: PostRestoreDeletedCommentResponse + PostFlagCommentResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: PostFlagCommentResponse + PostUnFlagCommentResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: PostUnFlagCommentResponse + PostSetCommentReviewStatusResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: PostSetCommentReviewStatusResponse + PostSetCommentSpamStatusResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: PostSetCommentSpamStatusResponse + PostSetCommentApprovalStatusResponse: + anyOf: + - $ref: "#/components/schemas/SetCommentApprovedResponse" + - $ref: "#/components/schemas/APIError" + title: PostSetCommentApprovalStatusResponse + GetLogsResponse: + anyOf: + - $ref: "#/components/schemas/ModerationAPIGetLogsResponse" + - $ref: "#/components/schemas/APIError" + title: GetLogsResponse + GetModerationCommentResponse: + anyOf: + - $ref: "#/components/schemas/ModerationAPICommentResponse" + - $ref: "#/components/schemas/APIError" + title: GetModerationCommentResponse + PostCommentsByIdsResponse: + anyOf: + - $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" + - $ref: "#/components/schemas/APIError" + title: PostCommentsByIdsResponse + GetCommentChildrenResponse: + anyOf: + - $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" + - $ref: "#/components/schemas/APIError" + title: GetCommentChildrenResponse + GetModerationCommentTextResponse: + anyOf: + - $ref: "#/components/schemas/GetCommentTextResponse" + - $ref: "#/components/schemas/APIError" + title: GetModerationCommentTextResponse + PostSetCommentTextResponse: + anyOf: + - $ref: "#/components/schemas/SetCommentTextResponse" + - $ref: "#/components/schemas/APIError" + title: PostSetCommentTextResponse + PostAdjustCommentVotesResponse: + anyOf: + - $ref: "#/components/schemas/AdjustVotesResponse" + - $ref: "#/components/schemas/APIError" + title: PostAdjustCommentVotesResponse + PostVoteResponse: + anyOf: + - $ref: "#/components/schemas/VoteResponse" + - $ref: "#/components/schemas/APIError" + title: PostVoteResponse + DeleteModerationVoteResponse: + anyOf: + - $ref: "#/components/schemas/VoteDeleteResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteModerationVoteResponse + GetCommentBanStatusResponse_1: + anyOf: + - $ref: "#/components/schemas/GetCommentBanStatusResponse" + - $ref: "#/components/schemas/APIError" + title: GetCommentBanStatusResponse + GetUserBanPreferenceResponse: + anyOf: + - $ref: "#/components/schemas/APIModerateGetUserBanPreferencesResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserBanPreferenceResponse + GetManualBadgesResponse: + anyOf: + - $ref: "#/components/schemas/GetTenantManualBadgesResponse" + - $ref: "#/components/schemas/APIError" + title: GetManualBadgesResponse + GetManualBadgesForUserResponse: + anyOf: + - $ref: "#/components/schemas/GetUserManualBadgesResponse" + - $ref: "#/components/schemas/APIError" + title: GetManualBadgesForUserResponse + PutAwardBadgeResponse: + anyOf: + - $ref: "#/components/schemas/AwardUserBadgeResponse" + - $ref: "#/components/schemas/APIError" + title: PutAwardBadgeResponse + PutRemoveBadgeResponse: + anyOf: + - $ref: "#/components/schemas/RemoveUserBadgeResponse" + - $ref: "#/components/schemas/APIError" + title: PutRemoveBadgeResponse + GetTrustFactorResponse: + anyOf: + - $ref: "#/components/schemas/GetUserTrustFactorResponse" + - $ref: "#/components/schemas/APIError" + title: GetTrustFactorResponse + SetTrustFactorResponse: + anyOf: + - $ref: "#/components/schemas/SetUserTrustFactorResponse" + - $ref: "#/components/schemas/APIError" + title: SetTrustFactorResponse + GetUserInternalProfileResponse_1: + anyOf: + - $ref: "#/components/schemas/GetUserInternalProfileResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserInternalProfileResponse + PutReopenThreadResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: PutReopenThreadResponse + PutCloseThreadResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: PutCloseThreadResponse + GetCountsResponse: + anyOf: + - $ref: "#/components/schemas/GetBannedUsersCountResponse" + - $ref: "#/components/schemas/APIError" + title: GetCountsResponse GetGifsTrendingResponse: anyOf: - $ref: "#/components/schemas/GifSearchResponse" @@ -25563,8 +25153,44 @@ components: anyOf: - $ref: "#/components/schemas/GifSearchResponse" - $ref: "#/components/schemas/GifSearchInternalError" + - $ref: "#/components/schemas/APIError" title: GetGifsSearchResponse - DeleteFeedPostPublicResponse: + GetGifLargeResponse: + anyOf: + - $ref: "#/components/schemas/GifGetLargeResponse" + - $ref: "#/components/schemas/APIError" + title: GetGifLargeResponse + FlagCommentPublicResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: FlagCommentPublicResponse + GetFeedPostsPublicResponse: + anyOf: + - $ref: "#/components/schemas/PublicFeedPostsResponse" + - $ref: "#/components/schemas/APIError" + title: GetFeedPostsPublicResponse + CreateFeedPostPublicResponse: + anyOf: + - $ref: "#/components/schemas/CreateFeedPostResponse" + - $ref: "#/components/schemas/APIError" + title: CreateFeedPostPublicResponse + ReactFeedPostPublicResponse: + anyOf: + - $ref: "#/components/schemas/ReactFeedPostResponse" + - $ref: "#/components/schemas/APIError" + title: ReactFeedPostPublicResponse + GetUserReactsPublicResponse: + anyOf: + - $ref: "#/components/schemas/UserReactsResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserReactsPublicResponse + UpdateFeedPostPublicResponse: + anyOf: + - $ref: "#/components/schemas/CreateFeedPostResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateFeedPostPublicResponse + DeleteFeedPostPublicResponse_anyOf: example: status: success properties: @@ -25572,8 +25198,107 @@ components: $ref: "#/components/schemas/APIStatus" required: - status - title: DeleteFeedPostPublicResponse type: object + DeleteFeedPostPublicResponse: + anyOf: + - $ref: "#/components/schemas/DeleteFeedPostPublicResponse_anyOf" + - $ref: "#/components/schemas/APIError" + title: DeleteFeedPostPublicResponse + GetFeedPostsStatsResponse: + anyOf: + - $ref: "#/components/schemas/FeedPostsStatsResponse" + - $ref: "#/components/schemas/APIError" + title: GetFeedPostsStatsResponse + GetEventLogResponse_1: + anyOf: + - $ref: "#/components/schemas/GetEventLogResponse" + - $ref: "#/components/schemas/APIError" + title: GetEventLogResponse + GetGlobalEventLogResponse: + anyOf: + - $ref: "#/components/schemas/GetEventLogResponse" + - $ref: "#/components/schemas/APIError" + title: GetGlobalEventLogResponse + GetCommentTextResponse_1: + anyOf: + - $ref: "#/components/schemas/PublicAPIGetCommentTextResponse" + - $ref: "#/components/schemas/APIError" + title: GetCommentTextResponse + SetCommentTextResponse_1: + anyOf: + - $ref: "#/components/schemas/PublicAPISetCommentTextResponse" + - $ref: "#/components/schemas/APIError" + title: SetCommentTextResponse + GetCommentsForUserResponse_1: + anyOf: + - $ref: "#/components/schemas/GetCommentsForUserResponse" + - $ref: "#/components/schemas/APIError" + title: GetCommentsForUserResponse + GetCommentsPublicResponse: + anyOf: + - $ref: "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" + - $ref: "#/components/schemas/APIError" + title: GetCommentsPublicResponse + CreateCommentPublicResponse: + anyOf: + - $ref: "#/components/schemas/SaveCommentsResponseWithPresence" + - $ref: "#/components/schemas/APIError" + title: CreateCommentPublicResponse + DeleteCommentPublicResponse: + anyOf: + - $ref: "#/components/schemas/PublicAPIDeleteCommentResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteCommentPublicResponse + CheckedCommentsForBlockedResponse: + anyOf: + - $ref: "#/components/schemas/CheckBlockedCommentsResponse" + - $ref: "#/components/schemas/APIError" + title: CheckedCommentsForBlockedResponse + VoteCommentResponse: + anyOf: + - $ref: "#/components/schemas/VoteResponse" + - $ref: "#/components/schemas/APIError" + title: VoteCommentResponse + DeleteCommentVoteResponse: + anyOf: + - $ref: "#/components/schemas/VoteDeleteResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteCommentVoteResponse + GetCommentVoteUserNamesResponse: + anyOf: + - $ref: "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" + - $ref: "#/components/schemas/APIError" + title: GetCommentVoteUserNamesResponse + PinCommentResponse: + anyOf: + - $ref: "#/components/schemas/ChangeCommentPinStatusResponse" + - $ref: "#/components/schemas/APIError" + title: PinCommentResponse + UnPinCommentResponse: + anyOf: + - $ref: "#/components/schemas/ChangeCommentPinStatusResponse" + - $ref: "#/components/schemas/APIError" + title: UnPinCommentResponse + LockCommentResponse: + anyOf: + - $ref: "#/components/schemas/APIError" + - $ref: "#/components/schemas/APIEmptyResponse" + title: LockCommentResponse + UnLockCommentResponse: + anyOf: + - $ref: "#/components/schemas/APIError" + - $ref: "#/components/schemas/APIEmptyResponse" + title: UnLockCommentResponse + BlockFromCommentPublicResponse: + anyOf: + - $ref: "#/components/schemas/BlockSuccess" + - $ref: "#/components/schemas/APIError" + title: BlockFromCommentPublicResponse + UnBlockCommentPublicResponse: + anyOf: + - $ref: "#/components/schemas/UnblockSuccess" + - $ref: "#/components/schemas/APIError" + title: UnBlockCommentPublicResponse GetSSOUsersResponse: example: users: @@ -25634,6 +25359,336 @@ components: - users title: GetSSOUsersResponse type: object + GetVotesResponse_1: + anyOf: + - $ref: "#/components/schemas/GetVotesResponse" + - $ref: "#/components/schemas/APIError" + title: GetVotesResponse + CreateVoteResponse: + anyOf: + - $ref: "#/components/schemas/VoteResponse" + - $ref: "#/components/schemas/APIError" + title: CreateVoteResponse + GetVotesForUserResponse_1: + anyOf: + - $ref: "#/components/schemas/GetVotesForUserResponse" + - $ref: "#/components/schemas/APIError" + title: GetVotesForUserResponse + DeleteVoteResponse: + anyOf: + - $ref: "#/components/schemas/VoteDeleteResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteVoteResponse + GetUserResponse_1: + anyOf: + - $ref: "#/components/schemas/GetUserResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserResponse + GetUserBadgeResponse: + anyOf: + - $ref: "#/components/schemas/APIGetUserBadgeResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserBadgeResponse + UpdateUserBadgeResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptySuccessResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateUserBadgeResponse + DeleteUserBadgeResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptySuccessResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteUserBadgeResponse + GetUserBadgesResponse: + anyOf: + - $ref: "#/components/schemas/APIGetUserBadgesResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserBadgesResponse + CreateUserBadgeResponse: + anyOf: + - $ref: "#/components/schemas/APICreateUserBadgeResponse" + - $ref: "#/components/schemas/APIError" + title: CreateUserBadgeResponse + GetUserBadgeProgressByIdResponse: + anyOf: + - $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserBadgeProgressByIdResponse + GetUserBadgeProgressListResponse: + anyOf: + - $ref: "#/components/schemas/APIGetUserBadgeProgressListResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserBadgeProgressListResponse + GetUserBadgeProgressByUserIdResponse: + anyOf: + - $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" + - $ref: "#/components/schemas/APIError" + title: GetUserBadgeProgressByUserIdResponse + GetTicketsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetTicketsResponse" + - $ref: "#/components/schemas/APIError" + title: GetTicketsResponse + CreateTicketResponse_1: + anyOf: + - $ref: "#/components/schemas/CreateTicketResponse" + - $ref: "#/components/schemas/APIError" + title: CreateTicketResponse + GetTicketResponse_1: + anyOf: + - $ref: "#/components/schemas/GetTicketResponse" + - $ref: "#/components/schemas/APIError" + title: GetTicketResponse + ChangeTicketStateResponse_1: + anyOf: + - $ref: "#/components/schemas/ChangeTicketStateResponse" + - $ref: "#/components/schemas/APIError" + title: ChangeTicketStateResponse + GetTenantResponse_1: + anyOf: + - $ref: "#/components/schemas/GetTenantResponse" + - $ref: "#/components/schemas/APIError" + title: GetTenantResponse + DeleteTenantResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteTenantResponse + UpdateTenantResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateTenantResponse + GetTenantsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetTenantsResponse" + - $ref: "#/components/schemas/APIError" + title: GetTenantsResponse + CreateTenantResponse_1: + anyOf: + - $ref: "#/components/schemas/CreateTenantResponse" + - $ref: "#/components/schemas/APIError" + title: CreateTenantResponse + GetTenantUserResponse_1: + anyOf: + - $ref: "#/components/schemas/GetTenantUserResponse" + - $ref: "#/components/schemas/APIError" + title: GetTenantUserResponse + ReplaceTenantUserResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: ReplaceTenantUserResponse + DeleteTenantUserResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteTenantUserResponse + UpdateTenantUserResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateTenantUserResponse + GetTenantUsersResponse_1: + anyOf: + - $ref: "#/components/schemas/GetTenantUsersResponse" + - $ref: "#/components/schemas/APIError" + title: GetTenantUsersResponse + CreateTenantUserResponse_1: + anyOf: + - $ref: "#/components/schemas/CreateTenantUserResponse" + - $ref: "#/components/schemas/APIError" + title: CreateTenantUserResponse + SendLoginLinkResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: SendLoginLinkResponse + GetTenantPackageResponse_1: + anyOf: + - $ref: "#/components/schemas/GetTenantPackageResponse" + - $ref: "#/components/schemas/APIError" + title: GetTenantPackageResponse + ReplaceTenantPackageResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: ReplaceTenantPackageResponse + DeleteTenantPackageResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteTenantPackageResponse + UpdateTenantPackageResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateTenantPackageResponse + GetTenantPackagesResponse_1: + anyOf: + - $ref: "#/components/schemas/GetTenantPackagesResponse" + - $ref: "#/components/schemas/APIError" + title: GetTenantPackagesResponse + CreateTenantPackageResponse_1: + anyOf: + - $ref: "#/components/schemas/CreateTenantPackageResponse" + - $ref: "#/components/schemas/APIError" + title: CreateTenantPackageResponse + GetTenantDailyUsagesResponse_1: + anyOf: + - $ref: "#/components/schemas/GetTenantDailyUsagesResponse" + - $ref: "#/components/schemas/APIError" + title: GetTenantDailyUsagesResponse + GetQuestionResultResponse_1: + anyOf: + - $ref: "#/components/schemas/GetQuestionResultResponse" + - $ref: "#/components/schemas/APIError" + title: GetQuestionResultResponse + DeleteQuestionResultResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteQuestionResultResponse + UpdateQuestionResultResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateQuestionResultResponse + GetQuestionResultsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetQuestionResultsResponse" + - $ref: "#/components/schemas/APIError" + title: GetQuestionResultsResponse + CreateQuestionResultResponse_1: + anyOf: + - $ref: "#/components/schemas/CreateQuestionResultResponse" + - $ref: "#/components/schemas/APIError" + title: CreateQuestionResultResponse + AggregateQuestionResultsResponse_1: + anyOf: + - $ref: "#/components/schemas/AggregateQuestionResultsResponse" + - $ref: "#/components/schemas/APIError" + title: AggregateQuestionResultsResponse + BulkAggregateQuestionResultsResponse_1: + anyOf: + - $ref: "#/components/schemas/BulkAggregateQuestionResultsResponse" + - $ref: "#/components/schemas/APIError" + title: BulkAggregateQuestionResultsResponse + CombineCommentsWithQuestionResultsResponse: + anyOf: + - $ref: "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + - $ref: "#/components/schemas/APIError" + title: CombineCommentsWithQuestionResultsResponse + GetQuestionConfigResponse_1: + anyOf: + - $ref: "#/components/schemas/GetQuestionConfigResponse" + - $ref: "#/components/schemas/APIError" + title: GetQuestionConfigResponse + DeleteQuestionConfigResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteQuestionConfigResponse + UpdateQuestionConfigResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateQuestionConfigResponse + GetQuestionConfigsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetQuestionConfigsResponse" + - $ref: "#/components/schemas/APIError" + title: GetQuestionConfigsResponse + CreateQuestionConfigResponse_1: + anyOf: + - $ref: "#/components/schemas/CreateQuestionConfigResponse" + - $ref: "#/components/schemas/APIError" + title: CreateQuestionConfigResponse + GetPendingWebhookEventsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetPendingWebhookEventsResponse" + - $ref: "#/components/schemas/APIError" + title: GetPendingWebhookEventsResponse + GetPendingWebhookEventCountResponse_1: + anyOf: + - $ref: "#/components/schemas/GetPendingWebhookEventCountResponse" + - $ref: "#/components/schemas/APIError" + title: GetPendingWebhookEventCountResponse + DeletePendingWebhookEventResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: DeletePendingWebhookEventResponse + GetNotificationsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetNotificationsResponse" + - $ref: "#/components/schemas/APIError" + title: GetNotificationsResponse + GetNotificationCountResponse_1: + anyOf: + - $ref: "#/components/schemas/GetNotificationCountResponse" + - $ref: "#/components/schemas/APIError" + title: GetNotificationCountResponse + UpdateNotificationResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateNotificationResponse + GetCachedNotificationCountResponse_1: + anyOf: + - $ref: "#/components/schemas/GetCachedNotificationCountResponse" + - $ref: "#/components/schemas/APIError" + title: GetCachedNotificationCountResponse + DeleteNotificationCountResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteNotificationCountResponse + GetModeratorResponse_1: + anyOf: + - $ref: "#/components/schemas/GetModeratorResponse" + - $ref: "#/components/schemas/APIError" + title: GetModeratorResponse + DeleteModeratorResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteModeratorResponse + UpdateModeratorResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateModeratorResponse + GetModeratorsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetModeratorsResponse" + - $ref: "#/components/schemas/APIError" + title: GetModeratorsResponse + CreateModeratorResponse_1: + anyOf: + - $ref: "#/components/schemas/CreateModeratorResponse" + - $ref: "#/components/schemas/APIError" + title: CreateModeratorResponse + SendInviteResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: SendInviteResponse + GetHashTagsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetHashTagsResponse" + - $ref: "#/components/schemas/APIError" + title: GetHashTagsResponse + AddHashTagResponse: + anyOf: + - $ref: "#/components/schemas/CreateHashTagResponse" + - $ref: "#/components/schemas/APIError" + title: AddHashTagResponse + AddHashTagsBulkResponse: + anyOf: + - $ref: "#/components/schemas/BulkCreateHashTagsResponse" + - $ref: "#/components/schemas/APIError" + title: AddHashTagsBulkResponse DeleteHashTagRequestBody: example: tenantId: tenantId @@ -25642,6 +25697,76 @@ components: type: string title: DeleteHashTagRequestBody type: object + DeleteHashTagResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteHashTagResponse + PatchHashTagResponse: + anyOf: + - $ref: "#/components/schemas/UpdateHashTagResponse" + - $ref: "#/components/schemas/APIError" + title: PatchHashTagResponse + GetFeedPostsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetFeedPostsResponse" + - $ref: "#/components/schemas/APIError" + title: GetFeedPostsResponse + CreateFeedPostResponse_1: + anyOf: + - $ref: "#/components/schemas/CreateFeedPostsResponse" + - $ref: "#/components/schemas/APIError" + title: CreateFeedPostResponse + UpdateFeedPostResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateFeedPostResponse + GetEmailTemplateDefinitionsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetEmailTemplateDefinitionsResponse" + - $ref: "#/components/schemas/APIError" + title: GetEmailTemplateDefinitionsResponse + GetEmailTemplateRenderErrorsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetEmailTemplateRenderErrorsResponse" + - $ref: "#/components/schemas/APIError" + title: GetEmailTemplateRenderErrorsResponse + DeleteEmailTemplateRenderErrorResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteEmailTemplateRenderErrorResponse + GetEmailTemplateResponse_1: + anyOf: + - $ref: "#/components/schemas/GetEmailTemplateResponse" + - $ref: "#/components/schemas/APIError" + title: GetEmailTemplateResponse + DeleteEmailTemplateResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: DeleteEmailTemplateResponse + UpdateEmailTemplateResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateEmailTemplateResponse + GetEmailTemplatesResponse_1: + anyOf: + - $ref: "#/components/schemas/GetEmailTemplatesResponse" + - $ref: "#/components/schemas/APIError" + title: GetEmailTemplatesResponse + CreateEmailTemplateResponse_1: + anyOf: + - $ref: "#/components/schemas/CreateEmailTemplateResponse" + - $ref: "#/components/schemas/APIError" + title: CreateEmailTemplateResponse + RenderEmailTemplateResponse_1: + anyOf: + - $ref: "#/components/schemas/RenderEmailTemplateResponse" + - $ref: "#/components/schemas/APIError" + title: RenderEmailTemplateResponse GetDomainConfigsResponse_anyOf: example: configurations: "" @@ -25714,11 +25839,61 @@ components: - $ref: "#/components/schemas/AddDomainConfigResponse_anyOf" - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" title: PatchDomainConfigResponse + GetCommentResponse: + anyOf: + - $ref: "#/components/schemas/APIGetCommentResponse" + - $ref: "#/components/schemas/APIError" + title: GetCommentResponse + DeleteCommentResponse: + anyOf: + - $ref: "#/components/schemas/DeleteCommentResult" + - $ref: "#/components/schemas/APIError" + title: DeleteCommentResponse + UpdateCommentResponse: + anyOf: + - $ref: "#/components/schemas/APIEmptyResponse" + - $ref: "#/components/schemas/APIError" + title: UpdateCommentResponse + GetCommentsResponse: + anyOf: + - $ref: "#/components/schemas/APIGetCommentsResponse" + - $ref: "#/components/schemas/APIError" + title: GetCommentsResponse + SaveCommentResponse: + anyOf: + - $ref: "#/components/schemas/APISaveCommentResponse" + - $ref: "#/components/schemas/APIError" + title: SaveCommentResponse SaveCommentsBulkResponse: anyOf: - $ref: "#/components/schemas/APISaveCommentResponse" - $ref: "#/components/schemas/APIError" title: SaveCommentsBulkResponse + FlagCommentResponse_1: + anyOf: + - $ref: "#/components/schemas/FlagCommentResponse" + - $ref: "#/components/schemas/APIError" + title: FlagCommentResponse + UnFlagCommentResponse: + anyOf: + - $ref: "#/components/schemas/FlagCommentResponse" + - $ref: "#/components/schemas/APIError" + title: UnFlagCommentResponse + BlockUserFromCommentResponse: + anyOf: + - $ref: "#/components/schemas/BlockSuccess" + - $ref: "#/components/schemas/APIError" + title: BlockUserFromCommentResponse + UnBlockUserFromCommentResponse: + anyOf: + - $ref: "#/components/schemas/UnblockSuccess" + - $ref: "#/components/schemas/APIError" + title: UnBlockUserFromCommentResponse + GetAuditLogsResponse_1: + anyOf: + - $ref: "#/components/schemas/GetAuditLogsResponse" + - $ref: "#/components/schemas/APIError" + title: GetAuditLogsResponse AggregateResponse: anyOf: - $ref: "#/components/schemas/AggregationResponse" diff --git a/client/docs/AddHashTagResponse.md b/client/docs/AddHashTagResponse.md new file mode 100644 index 00000000..aeb7b56a --- /dev/null +++ b/client/docs/AddHashTagResponse.md @@ -0,0 +1,21 @@ + + +# AddHashTagResponse + + +## 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/AddHashTagsBulkResponse.md b/client/docs/AddHashTagsBulkResponse.md new file mode 100644 index 00000000..d5d2549d --- /dev/null +++ b/client/docs/AddHashTagsBulkResponse.md @@ -0,0 +1,21 @@ + + +# AddHashTagsBulkResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**results** | [**List<BulkCreateHashTagsResponseResultsInner>**](BulkCreateHashTagsResponseResultsInner.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/AggregateQuestionResultsResponse1.md b/client/docs/AggregateQuestionResultsResponse1.md new file mode 100644 index 00000000..a3ef813f --- /dev/null +++ b/client/docs/AggregateQuestionResultsResponse1.md @@ -0,0 +1,21 @@ + + +# AggregateQuestionResultsResponse1 + + +## 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/BlockFromCommentPublicResponse.md b/client/docs/BlockFromCommentPublicResponse.md new file mode 100644 index 00000000..3b8b61ab --- /dev/null +++ b/client/docs/BlockFromCommentPublicResponse.md @@ -0,0 +1,21 @@ + + +# BlockFromCommentPublicResponse + + +## 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/BlockUserFromCommentResponse.md b/client/docs/BlockUserFromCommentResponse.md new file mode 100644 index 00000000..270195aa --- /dev/null +++ b/client/docs/BlockUserFromCommentResponse.md @@ -0,0 +1,21 @@ + + +# BlockUserFromCommentResponse + + +## 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/BulkAggregateQuestionResultsResponse1.md b/client/docs/BulkAggregateQuestionResultsResponse1.md new file mode 100644 index 00000000..28ec8df5 --- /dev/null +++ b/client/docs/BulkAggregateQuestionResultsResponse1.md @@ -0,0 +1,21 @@ + + +# BulkAggregateQuestionResultsResponse1 + + +## 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/ChangeTicketStateResponse1.md b/client/docs/ChangeTicketStateResponse1.md new file mode 100644 index 00000000..7f05399a --- /dev/null +++ b/client/docs/ChangeTicketStateResponse1.md @@ -0,0 +1,21 @@ + + +# ChangeTicketStateResponse1 + + +## 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/CheckedCommentsForBlockedResponse.md b/client/docs/CheckedCommentsForBlockedResponse.md new file mode 100644 index 00000000..a3dcc604 --- /dev/null +++ b/client/docs/CheckedCommentsForBlockedResponse.md @@ -0,0 +1,21 @@ + + +# CheckedCommentsForBlockedResponse + + +## 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/CombineCommentsWithQuestionResultsResponse.md b/client/docs/CombineCommentsWithQuestionResultsResponse.md new file mode 100644 index 00000000..06e57086 --- /dev/null +++ b/client/docs/CombineCommentsWithQuestionResultsResponse.md @@ -0,0 +1,21 @@ + + +# CombineCommentsWithQuestionResultsResponse + + +## 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/CreateCommentPublicResponse.md b/client/docs/CreateCommentPublicResponse.md new file mode 100644 index 00000000..69962481 --- /dev/null +++ b/client/docs/CreateCommentPublicResponse.md @@ -0,0 +1,24 @@ + + +# CreateCommentPublicResponse + + +## 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/CreateEmailTemplateResponse1.md b/client/docs/CreateEmailTemplateResponse1.md new file mode 100644 index 00000000..6b264445 --- /dev/null +++ b/client/docs/CreateEmailTemplateResponse1.md @@ -0,0 +1,21 @@ + + +# CreateEmailTemplateResponse1 + + +## 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/CreateFeedPostPublicResponse.md b/client/docs/CreateFeedPostPublicResponse.md new file mode 100644 index 00000000..fc3a479b --- /dev/null +++ b/client/docs/CreateFeedPostPublicResponse.md @@ -0,0 +1,21 @@ + + +# CreateFeedPostPublicResponse + + +## 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/CreateFeedPostResponse1.md b/client/docs/CreateFeedPostResponse1.md new file mode 100644 index 00000000..f89455c8 --- /dev/null +++ b/client/docs/CreateFeedPostResponse1.md @@ -0,0 +1,21 @@ + + +# CreateFeedPostResponse1 + + +## 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/CreateModeratorResponse1.md b/client/docs/CreateModeratorResponse1.md new file mode 100644 index 00000000..141c4ca8 --- /dev/null +++ b/client/docs/CreateModeratorResponse1.md @@ -0,0 +1,21 @@ + + +# CreateModeratorResponse1 + + +## 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/CreateQuestionConfigResponse1.md b/client/docs/CreateQuestionConfigResponse1.md new file mode 100644 index 00000000..ed4763f9 --- /dev/null +++ b/client/docs/CreateQuestionConfigResponse1.md @@ -0,0 +1,21 @@ + + +# CreateQuestionConfigResponse1 + + +## 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/CreateQuestionResultResponse1.md b/client/docs/CreateQuestionResultResponse1.md new file mode 100644 index 00000000..13c4240e --- /dev/null +++ b/client/docs/CreateQuestionResultResponse1.md @@ -0,0 +1,21 @@ + + +# CreateQuestionResultResponse1 + + +## 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/CreateTenantPackageResponse1.md b/client/docs/CreateTenantPackageResponse1.md new file mode 100644 index 00000000..7d319c94 --- /dev/null +++ b/client/docs/CreateTenantPackageResponse1.md @@ -0,0 +1,21 @@ + + +# CreateTenantPackageResponse1 + + +## 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/CreateTenantResponse1.md b/client/docs/CreateTenantResponse1.md new file mode 100644 index 00000000..8e109502 --- /dev/null +++ b/client/docs/CreateTenantResponse1.md @@ -0,0 +1,21 @@ + + +# CreateTenantResponse1 + + +## 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/CreateTenantUserResponse1.md b/client/docs/CreateTenantUserResponse1.md new file mode 100644 index 00000000..1b306993 --- /dev/null +++ b/client/docs/CreateTenantUserResponse1.md @@ -0,0 +1,21 @@ + + +# CreateTenantUserResponse1 + + +## 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/CreateTicketResponse1.md b/client/docs/CreateTicketResponse1.md new file mode 100644 index 00000000..a760a3c3 --- /dev/null +++ b/client/docs/CreateTicketResponse1.md @@ -0,0 +1,21 @@ + + +# CreateTicketResponse1 + + +## 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/CreateUserBadgeResponse.md b/client/docs/CreateUserBadgeResponse.md new file mode 100644 index 00000000..7f40a044 --- /dev/null +++ b/client/docs/CreateUserBadgeResponse.md @@ -0,0 +1,22 @@ + + +# CreateUserBadgeResponse + + +## 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/CreateV1PageReactResponse.md b/client/docs/CreateV1PageReactResponse.md new file mode 100644 index 00000000..1ec94b6a --- /dev/null +++ b/client/docs/CreateV1PageReactResponse.md @@ -0,0 +1,20 @@ + + +# CreateV1PageReactResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **String** | | [optional] | +|**status** | **APIStatus** | | | +|**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/CreateV2PageReactResponse.md b/client/docs/CreateV2PageReactResponse.md new file mode 100644 index 00000000..55c32b8b --- /dev/null +++ b/client/docs/CreateV2PageReactResponse.md @@ -0,0 +1,20 @@ + + +# CreateV2PageReactResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **String** | | [optional] | +|**status** | **APIStatus** | | | +|**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/CreateVoteResponse.md b/client/docs/CreateVoteResponse.md new file mode 100644 index 00000000..8ecb5b62 --- /dev/null +++ b/client/docs/CreateVoteResponse.md @@ -0,0 +1,24 @@ + + +# CreateVoteResponse + + +## 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/docs/DefaultApi.md b/client/docs/DefaultApi.md index 066a52fe..07d0f87a 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -193,7 +193,7 @@ public class Example { # **addHashTag** -> CreateHashTagResponse addHashTag().tenantId(tenantId).createHashTagBody(createHashTagBody).execute(); +> AddHashTagResponse addHashTag().tenantId(tenantId).createHashTagBody(createHashTagBody).execute(); @@ -222,7 +222,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateHashTagBody createHashTagBody = new CreateHashTagBody(); // CreateHashTagBody | try { - CreateHashTagResponse result = apiInstance.addHashTag() + AddHashTagResponse result = apiInstance.addHashTag() .tenantId(tenantId) .createHashTagBody(createHashTagBody) .execute(); @@ -247,7 +247,7 @@ public class Example { ### Return type -[**CreateHashTagResponse**](CreateHashTagResponse.md) +[**AddHashTagResponse**](AddHashTagResponse.md) ### Authorization @@ -262,11 +262,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **addHashTagsBulk** -> BulkCreateHashTagsResponse addHashTagsBulk().tenantId(tenantId).bulkCreateHashTagsBody(bulkCreateHashTagsBody).execute(); +> AddHashTagsBulkResponse addHashTagsBulk().tenantId(tenantId).bulkCreateHashTagsBody(bulkCreateHashTagsBody).execute(); @@ -295,7 +294,7 @@ public class Example { String tenantId = "tenantId_example"; // String | BulkCreateHashTagsBody bulkCreateHashTagsBody = new BulkCreateHashTagsBody(); // BulkCreateHashTagsBody | try { - BulkCreateHashTagsResponse result = apiInstance.addHashTagsBulk() + AddHashTagsBulkResponse result = apiInstance.addHashTagsBulk() .tenantId(tenantId) .bulkCreateHashTagsBody(bulkCreateHashTagsBody) .execute(); @@ -320,7 +319,7 @@ public class Example { ### Return type -[**BulkCreateHashTagsResponse**](BulkCreateHashTagsResponse.md) +[**AddHashTagsBulkResponse**](AddHashTagsBulkResponse.md) ### Authorization @@ -335,7 +334,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **addPage** @@ -557,7 +555,7 @@ public class Example { # **aggregateQuestionResults** -> AggregateQuestionResultsResponse aggregateQuestionResults(tenantId).questionId(questionId).questionIds(questionIds).urlId(urlId).timeBucket(timeBucket).startDate(startDate).forceRecalculate(forceRecalculate).execute(); +> AggregateQuestionResultsResponse1 aggregateQuestionResults(tenantId).questionId(questionId).questionIds(questionIds).urlId(urlId).timeBucket(timeBucket).startDate(startDate).forceRecalculate(forceRecalculate).execute(); @@ -591,7 +589,7 @@ public class Example { OffsetDateTime startDate = OffsetDateTime.now(); // OffsetDateTime | Boolean forceRecalculate = true; // Boolean | try { - AggregateQuestionResultsResponse result = apiInstance.aggregateQuestionResults(tenantId) + AggregateQuestionResultsResponse1 result = apiInstance.aggregateQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -625,7 +623,7 @@ public class Example { ### Return type -[**AggregateQuestionResultsResponse**](AggregateQuestionResultsResponse.md) +[**AggregateQuestionResultsResponse1**](AggregateQuestionResultsResponse1.md) ### Authorization @@ -640,11 +638,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **blockUserFromComment** -> BlockSuccess blockUserFromComment(tenantId, id, blockFromCommentParams).userId(userId).anonUserId(anonUserId).execute(); +> BlockUserFromCommentResponse blockUserFromComment(tenantId, id, blockFromCommentParams).userId(userId).anonUserId(anonUserId).execute(); @@ -676,7 +673,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - BlockSuccess result = apiInstance.blockUserFromComment(tenantId, id, blockFromCommentParams) + BlockUserFromCommentResponse result = apiInstance.blockUserFromComment(tenantId, id, blockFromCommentParams) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -704,7 +701,7 @@ public class Example { ### Return type -[**BlockSuccess**](BlockSuccess.md) +[**BlockUserFromCommentResponse**](BlockUserFromCommentResponse.md) ### Authorization @@ -719,11 +716,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **bulkAggregateQuestionResults** -> BulkAggregateQuestionResultsResponse bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest).forceRecalculate(forceRecalculate).execute(); +> BulkAggregateQuestionResultsResponse1 bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest).forceRecalculate(forceRecalculate).execute(); @@ -753,7 +749,7 @@ public class Example { BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest = new BulkAggregateQuestionResultsRequest(); // BulkAggregateQuestionResultsRequest | Boolean forceRecalculate = true; // Boolean | try { - BulkAggregateQuestionResultsResponse result = apiInstance.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest) + BulkAggregateQuestionResultsResponse1 result = apiInstance.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest) .forceRecalculate(forceRecalculate) .execute(); System.out.println(result); @@ -778,7 +774,7 @@ public class Example { ### Return type -[**BulkAggregateQuestionResultsResponse**](BulkAggregateQuestionResultsResponse.md) +[**BulkAggregateQuestionResultsResponse1**](BulkAggregateQuestionResultsResponse1.md) ### Authorization @@ -793,11 +789,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **changeTicketState** -> ChangeTicketStateResponse changeTicketState(tenantId, userId, id, changeTicketStateBody).execute(); +> ChangeTicketStateResponse1 changeTicketState(tenantId, userId, id, changeTicketStateBody).execute(); @@ -828,7 +823,7 @@ public class Example { String id = "id_example"; // String | ChangeTicketStateBody changeTicketStateBody = new ChangeTicketStateBody(); // ChangeTicketStateBody | try { - ChangeTicketStateResponse result = apiInstance.changeTicketState(tenantId, userId, id, changeTicketStateBody) + ChangeTicketStateResponse1 result = apiInstance.changeTicketState(tenantId, userId, id, changeTicketStateBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -853,7 +848,7 @@ public class Example { ### Return type -[**ChangeTicketStateResponse**](ChangeTicketStateResponse.md) +[**ChangeTicketStateResponse1**](ChangeTicketStateResponse1.md) ### Authorization @@ -868,11 +863,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **combineCommentsWithQuestionResults** -> CombineQuestionResultsWithCommentsResponse combineCommentsWithQuestionResults(tenantId).questionId(questionId).questionIds(questionIds).urlId(urlId).startDate(startDate).forceRecalculate(forceRecalculate).minValue(minValue).maxValue(maxValue).limit(limit).execute(); +> CombineCommentsWithQuestionResultsResponse combineCommentsWithQuestionResults(tenantId).questionId(questionId).questionIds(questionIds).urlId(urlId).startDate(startDate).forceRecalculate(forceRecalculate).minValue(minValue).maxValue(maxValue).limit(limit).execute(); @@ -908,7 +902,7 @@ public class Example { Double maxValue = 3.4D; // Double | Double limit = 3.4D; // Double | try { - CombineQuestionResultsWithCommentsResponse result = apiInstance.combineCommentsWithQuestionResults(tenantId) + CombineCommentsWithQuestionResultsResponse result = apiInstance.combineCommentsWithQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -946,7 +940,7 @@ public class Example { ### Return type -[**CombineQuestionResultsWithCommentsResponse**](CombineQuestionResultsWithCommentsResponse.md) +[**CombineCommentsWithQuestionResultsResponse**](CombineCommentsWithQuestionResultsResponse.md) ### Authorization @@ -961,11 +955,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createEmailTemplate** -> CreateEmailTemplateResponse createEmailTemplate(tenantId, createEmailTemplateBody).execute(); +> CreateEmailTemplateResponse1 createEmailTemplate(tenantId, createEmailTemplateBody).execute(); @@ -994,7 +987,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateEmailTemplateBody createEmailTemplateBody = new CreateEmailTemplateBody(); // CreateEmailTemplateBody | try { - CreateEmailTemplateResponse result = apiInstance.createEmailTemplate(tenantId, createEmailTemplateBody) + CreateEmailTemplateResponse1 result = apiInstance.createEmailTemplate(tenantId, createEmailTemplateBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1017,7 +1010,7 @@ public class Example { ### Return type -[**CreateEmailTemplateResponse**](CreateEmailTemplateResponse.md) +[**CreateEmailTemplateResponse1**](CreateEmailTemplateResponse1.md) ### Authorization @@ -1032,11 +1025,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createFeedPost** -> CreateFeedPostsResponse createFeedPost(tenantId, createFeedPostParams).broadcastId(broadcastId).isLive(isLive).doSpamCheck(doSpamCheck).skipDupCheck(skipDupCheck).execute(); +> CreateFeedPostResponse1 createFeedPost(tenantId, createFeedPostParams).broadcastId(broadcastId).isLive(isLive).doSpamCheck(doSpamCheck).skipDupCheck(skipDupCheck).execute(); @@ -1069,7 +1061,7 @@ public class Example { Boolean doSpamCheck = true; // Boolean | Boolean skipDupCheck = true; // Boolean | try { - CreateFeedPostsResponse result = apiInstance.createFeedPost(tenantId, createFeedPostParams) + CreateFeedPostResponse1 result = apiInstance.createFeedPost(tenantId, createFeedPostParams) .broadcastId(broadcastId) .isLive(isLive) .doSpamCheck(doSpamCheck) @@ -1100,7 +1092,7 @@ public class Example { ### Return type -[**CreateFeedPostsResponse**](CreateFeedPostsResponse.md) +[**CreateFeedPostResponse1**](CreateFeedPostResponse1.md) ### Authorization @@ -1115,11 +1107,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createModerator** -> CreateModeratorResponse createModerator(tenantId, createModeratorBody).execute(); +> CreateModeratorResponse1 createModerator(tenantId, createModeratorBody).execute(); @@ -1148,7 +1139,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateModeratorBody createModeratorBody = new CreateModeratorBody(); // CreateModeratorBody | try { - CreateModeratorResponse result = apiInstance.createModerator(tenantId, createModeratorBody) + CreateModeratorResponse1 result = apiInstance.createModerator(tenantId, createModeratorBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1171,7 +1162,7 @@ public class Example { ### Return type -[**CreateModeratorResponse**](CreateModeratorResponse.md) +[**CreateModeratorResponse1**](CreateModeratorResponse1.md) ### Authorization @@ -1186,11 +1177,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createQuestionConfig** -> CreateQuestionConfigResponse createQuestionConfig(tenantId, createQuestionConfigBody).execute(); +> CreateQuestionConfigResponse1 createQuestionConfig(tenantId, createQuestionConfigBody).execute(); @@ -1219,7 +1209,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateQuestionConfigBody createQuestionConfigBody = new CreateQuestionConfigBody(); // CreateQuestionConfigBody | try { - CreateQuestionConfigResponse result = apiInstance.createQuestionConfig(tenantId, createQuestionConfigBody) + CreateQuestionConfigResponse1 result = apiInstance.createQuestionConfig(tenantId, createQuestionConfigBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1242,7 +1232,7 @@ public class Example { ### Return type -[**CreateQuestionConfigResponse**](CreateQuestionConfigResponse.md) +[**CreateQuestionConfigResponse1**](CreateQuestionConfigResponse1.md) ### Authorization @@ -1257,11 +1247,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createQuestionResult** -> CreateQuestionResultResponse createQuestionResult(tenantId, createQuestionResultBody).execute(); +> CreateQuestionResultResponse1 createQuestionResult(tenantId, createQuestionResultBody).execute(); @@ -1290,7 +1279,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateQuestionResultBody createQuestionResultBody = new CreateQuestionResultBody(); // CreateQuestionResultBody | try { - CreateQuestionResultResponse result = apiInstance.createQuestionResult(tenantId, createQuestionResultBody) + CreateQuestionResultResponse1 result = apiInstance.createQuestionResult(tenantId, createQuestionResultBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1313,7 +1302,7 @@ public class Example { ### Return type -[**CreateQuestionResultResponse**](CreateQuestionResultResponse.md) +[**CreateQuestionResultResponse1**](CreateQuestionResultResponse1.md) ### Authorization @@ -1328,7 +1317,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createSubscription** @@ -1402,7 +1390,7 @@ public class Example { # **createTenant** -> CreateTenantResponse createTenant(tenantId, createTenantBody).execute(); +> CreateTenantResponse1 createTenant(tenantId, createTenantBody).execute(); @@ -1431,7 +1419,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateTenantBody createTenantBody = new CreateTenantBody(); // CreateTenantBody | try { - CreateTenantResponse result = apiInstance.createTenant(tenantId, createTenantBody) + CreateTenantResponse1 result = apiInstance.createTenant(tenantId, createTenantBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1454,7 +1442,7 @@ public class Example { ### Return type -[**CreateTenantResponse**](CreateTenantResponse.md) +[**CreateTenantResponse1**](CreateTenantResponse1.md) ### Authorization @@ -1469,11 +1457,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createTenantPackage** -> CreateTenantPackageResponse createTenantPackage(tenantId, createTenantPackageBody).execute(); +> CreateTenantPackageResponse1 createTenantPackage(tenantId, createTenantPackageBody).execute(); @@ -1502,7 +1489,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateTenantPackageBody createTenantPackageBody = new CreateTenantPackageBody(); // CreateTenantPackageBody | try { - CreateTenantPackageResponse result = apiInstance.createTenantPackage(tenantId, createTenantPackageBody) + CreateTenantPackageResponse1 result = apiInstance.createTenantPackage(tenantId, createTenantPackageBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1525,7 +1512,7 @@ public class Example { ### Return type -[**CreateTenantPackageResponse**](CreateTenantPackageResponse.md) +[**CreateTenantPackageResponse1**](CreateTenantPackageResponse1.md) ### Authorization @@ -1540,11 +1527,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createTenantUser** -> CreateTenantUserResponse createTenantUser(tenantId, createTenantUserBody).execute(); +> CreateTenantUserResponse1 createTenantUser(tenantId, createTenantUserBody).execute(); @@ -1573,7 +1559,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateTenantUserBody createTenantUserBody = new CreateTenantUserBody(); // CreateTenantUserBody | try { - CreateTenantUserResponse result = apiInstance.createTenantUser(tenantId, createTenantUserBody) + CreateTenantUserResponse1 result = apiInstance.createTenantUser(tenantId, createTenantUserBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1596,7 +1582,7 @@ public class Example { ### Return type -[**CreateTenantUserResponse**](CreateTenantUserResponse.md) +[**CreateTenantUserResponse1**](CreateTenantUserResponse1.md) ### Authorization @@ -1611,11 +1597,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createTicket** -> CreateTicketResponse createTicket(tenantId, userId, createTicketBody).execute(); +> CreateTicketResponse1 createTicket(tenantId, userId, createTicketBody).execute(); @@ -1645,7 +1630,7 @@ public class Example { String userId = "userId_example"; // String | CreateTicketBody createTicketBody = new CreateTicketBody(); // CreateTicketBody | try { - CreateTicketResponse result = apiInstance.createTicket(tenantId, userId, createTicketBody) + CreateTicketResponse1 result = apiInstance.createTicket(tenantId, userId, createTicketBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1669,7 +1654,7 @@ public class Example { ### Return type -[**CreateTicketResponse**](CreateTicketResponse.md) +[**CreateTicketResponse1**](CreateTicketResponse1.md) ### Authorization @@ -1684,11 +1669,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createUserBadge** -> APICreateUserBadgeResponse createUserBadge(tenantId, createUserBadgeParams).execute(); +> CreateUserBadgeResponse createUserBadge(tenantId, createUserBadgeParams).execute(); @@ -1717,7 +1701,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateUserBadgeParams createUserBadgeParams = new CreateUserBadgeParams(); // CreateUserBadgeParams | try { - APICreateUserBadgeResponse result = apiInstance.createUserBadge(tenantId, createUserBadgeParams) + CreateUserBadgeResponse result = apiInstance.createUserBadge(tenantId, createUserBadgeParams) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1740,7 +1724,7 @@ public class Example { ### Return type -[**APICreateUserBadgeResponse**](APICreateUserBadgeResponse.md) +[**CreateUserBadgeResponse**](CreateUserBadgeResponse.md) ### Authorization @@ -1755,11 +1739,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createVote** -> VoteResponse createVote(tenantId, commentId, direction).userId(userId).anonUserId(anonUserId).execute(); +> CreateVoteResponse createVote(tenantId, commentId, direction).userId(userId).anonUserId(anonUserId).execute(); @@ -1791,7 +1774,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - VoteResponse result = apiInstance.createVote(tenantId, commentId, direction) + CreateVoteResponse result = apiInstance.createVote(tenantId, commentId, direction) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -1819,7 +1802,7 @@ public class Example { ### Return type -[**VoteResponse**](VoteResponse.md) +[**CreateVoteResponse**](CreateVoteResponse.md) ### Authorization @@ -1834,11 +1817,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteComment** -> DeleteCommentResult deleteComment(tenantId, id).contextUserId(contextUserId).isLive(isLive).execute(); +> DeleteCommentResponse deleteComment(tenantId, id).contextUserId(contextUserId).isLive(isLive).execute(); @@ -1869,7 +1851,7 @@ public class Example { String contextUserId = "contextUserId_example"; // String | Boolean isLive = true; // Boolean | try { - DeleteCommentResult result = apiInstance.deleteComment(tenantId, id) + DeleteCommentResponse result = apiInstance.deleteComment(tenantId, id) .contextUserId(contextUserId) .isLive(isLive) .execute(); @@ -1896,7 +1878,7 @@ public class Example { ### Return type -[**DeleteCommentResult**](DeleteCommentResult.md) +[**DeleteCommentResponse**](DeleteCommentResponse.md) ### Authorization @@ -1911,7 +1893,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteDomainConfig** @@ -1985,7 +1966,7 @@ public class Example { # **deleteEmailTemplate** -> APIEmptyResponse deleteEmailTemplate(tenantId, id).execute(); +> DeleteEmailTemplateResponse deleteEmailTemplate(tenantId, id).execute(); @@ -2014,7 +1995,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - APIEmptyResponse result = apiInstance.deleteEmailTemplate(tenantId, id) + DeleteEmailTemplateResponse result = apiInstance.deleteEmailTemplate(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2037,7 +2018,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteEmailTemplateResponse**](DeleteEmailTemplateResponse.md) ### Authorization @@ -2052,11 +2033,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteEmailTemplateRenderError** -> APIEmptyResponse deleteEmailTemplateRenderError(tenantId, id, errorId).execute(); +> DeleteEmailTemplateRenderErrorResponse deleteEmailTemplateRenderError(tenantId, id, errorId).execute(); @@ -2086,7 +2066,7 @@ public class Example { String id = "id_example"; // String | String errorId = "errorId_example"; // String | try { - APIEmptyResponse result = apiInstance.deleteEmailTemplateRenderError(tenantId, id, errorId) + DeleteEmailTemplateRenderErrorResponse result = apiInstance.deleteEmailTemplateRenderError(tenantId, id, errorId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2110,7 +2090,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteEmailTemplateRenderErrorResponse**](DeleteEmailTemplateRenderErrorResponse.md) ### Authorization @@ -2125,11 +2105,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteHashTag** -> APIEmptyResponse deleteHashTag(tag).tenantId(tenantId).deleteHashTagRequestBody(deleteHashTagRequestBody).execute(); +> DeleteHashTagResponse deleteHashTag(tag).tenantId(tenantId).deleteHashTagRequestBody(deleteHashTagRequestBody).execute(); @@ -2159,7 +2138,7 @@ public class Example { String tenantId = "tenantId_example"; // String | DeleteHashTagRequestBody deleteHashTagRequestBody = new DeleteHashTagRequestBody(); // DeleteHashTagRequestBody | try { - APIEmptyResponse result = apiInstance.deleteHashTag(tag) + DeleteHashTagResponse result = apiInstance.deleteHashTag(tag) .tenantId(tenantId) .deleteHashTagRequestBody(deleteHashTagRequestBody) .execute(); @@ -2185,7 +2164,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteHashTagResponse**](DeleteHashTagResponse.md) ### Authorization @@ -2200,11 +2179,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteModerator** -> APIEmptyResponse deleteModerator(tenantId, id).sendEmail(sendEmail).execute(); +> DeleteModeratorResponse deleteModerator(tenantId, id).sendEmail(sendEmail).execute(); @@ -2234,7 +2212,7 @@ public class Example { String id = "id_example"; // String | String sendEmail = "sendEmail_example"; // String | try { - APIEmptyResponse result = apiInstance.deleteModerator(tenantId, id) + DeleteModeratorResponse result = apiInstance.deleteModerator(tenantId, id) .sendEmail(sendEmail) .execute(); System.out.println(result); @@ -2259,7 +2237,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteModeratorResponse**](DeleteModeratorResponse.md) ### Authorization @@ -2274,11 +2252,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteNotificationCount** -> APIEmptyResponse deleteNotificationCount(tenantId, id).execute(); +> DeleteNotificationCountResponse deleteNotificationCount(tenantId, id).execute(); @@ -2307,7 +2284,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - APIEmptyResponse result = apiInstance.deleteNotificationCount(tenantId, id) + DeleteNotificationCountResponse result = apiInstance.deleteNotificationCount(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2330,7 +2307,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteNotificationCountResponse**](DeleteNotificationCountResponse.md) ### Authorization @@ -2345,7 +2322,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deletePage** @@ -2419,7 +2395,7 @@ public class Example { # **deletePendingWebhookEvent** -> APIEmptyResponse deletePendingWebhookEvent(tenantId, id).execute(); +> DeletePendingWebhookEventResponse deletePendingWebhookEvent(tenantId, id).execute(); @@ -2448,7 +2424,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - APIEmptyResponse result = apiInstance.deletePendingWebhookEvent(tenantId, id) + DeletePendingWebhookEventResponse result = apiInstance.deletePendingWebhookEvent(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2471,7 +2447,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeletePendingWebhookEventResponse**](DeletePendingWebhookEventResponse.md) ### Authorization @@ -2486,11 +2462,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteQuestionConfig** -> APIEmptyResponse deleteQuestionConfig(tenantId, id).execute(); +> DeleteQuestionConfigResponse deleteQuestionConfig(tenantId, id).execute(); @@ -2519,7 +2494,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - APIEmptyResponse result = apiInstance.deleteQuestionConfig(tenantId, id) + DeleteQuestionConfigResponse result = apiInstance.deleteQuestionConfig(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2542,7 +2517,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteQuestionConfigResponse**](DeleteQuestionConfigResponse.md) ### Authorization @@ -2557,11 +2532,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteQuestionResult** -> APIEmptyResponse deleteQuestionResult(tenantId, id).execute(); +> DeleteQuestionResultResponse deleteQuestionResult(tenantId, id).execute(); @@ -2590,7 +2564,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - APIEmptyResponse result = apiInstance.deleteQuestionResult(tenantId, id) + DeleteQuestionResultResponse result = apiInstance.deleteQuestionResult(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2613,7 +2587,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteQuestionResultResponse**](DeleteQuestionResultResponse.md) ### Authorization @@ -2628,7 +2602,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteSSOUser** @@ -2781,7 +2754,7 @@ public class Example { # **deleteTenant** -> APIEmptyResponse deleteTenant(tenantId, id).sure(sure).execute(); +> DeleteTenantResponse deleteTenant(tenantId, id).sure(sure).execute(); @@ -2811,7 +2784,7 @@ public class Example { String id = "id_example"; // String | String sure = "sure_example"; // String | try { - APIEmptyResponse result = apiInstance.deleteTenant(tenantId, id) + DeleteTenantResponse result = apiInstance.deleteTenant(tenantId, id) .sure(sure) .execute(); System.out.println(result); @@ -2836,7 +2809,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteTenantResponse**](DeleteTenantResponse.md) ### Authorization @@ -2851,11 +2824,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteTenantPackage** -> APIEmptyResponse deleteTenantPackage(tenantId, id).execute(); +> DeleteTenantPackageResponse deleteTenantPackage(tenantId, id).execute(); @@ -2884,7 +2856,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - APIEmptyResponse result = apiInstance.deleteTenantPackage(tenantId, id) + DeleteTenantPackageResponse result = apiInstance.deleteTenantPackage(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2907,7 +2879,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteTenantPackageResponse**](DeleteTenantPackageResponse.md) ### Authorization @@ -2922,11 +2894,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteTenantUser** -> APIEmptyResponse deleteTenantUser(tenantId, id).deleteComments(deleteComments).commentDeleteMode(commentDeleteMode).execute(); +> DeleteTenantUserResponse deleteTenantUser(tenantId, id).deleteComments(deleteComments).commentDeleteMode(commentDeleteMode).execute(); @@ -2957,7 +2928,7 @@ public class Example { String deleteComments = "deleteComments_example"; // String | String commentDeleteMode = "commentDeleteMode_example"; // String | try { - APIEmptyResponse result = apiInstance.deleteTenantUser(tenantId, id) + DeleteTenantUserResponse result = apiInstance.deleteTenantUser(tenantId, id) .deleteComments(deleteComments) .commentDeleteMode(commentDeleteMode) .execute(); @@ -2984,7 +2955,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**DeleteTenantUserResponse**](DeleteTenantUserResponse.md) ### Authorization @@ -2999,11 +2970,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteUserBadge** -> APIEmptySuccessResponse deleteUserBadge(tenantId, id).execute(); +> DeleteUserBadgeResponse deleteUserBadge(tenantId, id).execute(); @@ -3032,7 +3002,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - APIEmptySuccessResponse result = apiInstance.deleteUserBadge(tenantId, id) + DeleteUserBadgeResponse result = apiInstance.deleteUserBadge(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3055,7 +3025,7 @@ public class Example { ### Return type -[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) +[**DeleteUserBadgeResponse**](DeleteUserBadgeResponse.md) ### Authorization @@ -3070,11 +3040,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteVote** -> VoteDeleteResponse deleteVote(tenantId, id).editKey(editKey).execute(); +> DeleteVoteResponse deleteVote(tenantId, id).editKey(editKey).execute(); @@ -3104,7 +3073,7 @@ public class Example { String id = "id_example"; // String | String editKey = "editKey_example"; // String | try { - VoteDeleteResponse result = apiInstance.deleteVote(tenantId, id) + DeleteVoteResponse result = apiInstance.deleteVote(tenantId, id) .editKey(editKey) .execute(); System.out.println(result); @@ -3129,7 +3098,7 @@ public class Example { ### Return type -[**VoteDeleteResponse**](VoteDeleteResponse.md) +[**DeleteVoteResponse**](DeleteVoteResponse.md) ### Authorization @@ -3144,11 +3113,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **flagComment** -> FlagCommentResponse flagComment(tenantId, id).userId(userId).anonUserId(anonUserId).execute(); +> FlagCommentResponse1 flagComment(tenantId, id).userId(userId).anonUserId(anonUserId).execute(); @@ -3179,7 +3147,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - FlagCommentResponse result = apiInstance.flagComment(tenantId, id) + FlagCommentResponse1 result = apiInstance.flagComment(tenantId, id) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -3206,7 +3174,7 @@ public class Example { ### Return type -[**FlagCommentResponse**](FlagCommentResponse.md) +[**FlagCommentResponse1**](FlagCommentResponse1.md) ### Authorization @@ -3221,11 +3189,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getAuditLogs** -> GetAuditLogsResponse getAuditLogs(tenantId).limit(limit).skip(skip).order(order).after(after).before(before).execute(); +> GetAuditLogsResponse1 getAuditLogs(tenantId).limit(limit).skip(skip).order(order).after(after).before(before).execute(); @@ -3258,7 +3225,7 @@ public class Example { Double after = 3.4D; // Double | Double before = 3.4D; // Double | try { - GetAuditLogsResponse result = apiInstance.getAuditLogs(tenantId) + GetAuditLogsResponse1 result = apiInstance.getAuditLogs(tenantId) .limit(limit) .skip(skip) .order(order) @@ -3290,7 +3257,7 @@ public class Example { ### Return type -[**GetAuditLogsResponse**](GetAuditLogsResponse.md) +[**GetAuditLogsResponse1**](GetAuditLogsResponse1.md) ### Authorization @@ -3305,11 +3272,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getCachedNotificationCount** -> GetCachedNotificationCountResponse getCachedNotificationCount(tenantId, id).execute(); +> GetCachedNotificationCountResponse1 getCachedNotificationCount(tenantId, id).execute(); @@ -3338,7 +3304,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetCachedNotificationCountResponse result = apiInstance.getCachedNotificationCount(tenantId, id) + GetCachedNotificationCountResponse1 result = apiInstance.getCachedNotificationCount(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3361,7 +3327,7 @@ public class Example { ### Return type -[**GetCachedNotificationCountResponse**](GetCachedNotificationCountResponse.md) +[**GetCachedNotificationCountResponse1**](GetCachedNotificationCountResponse1.md) ### Authorization @@ -3376,11 +3342,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getComment** -> APIGetCommentResponse getComment(tenantId, id).execute(); +> GetCommentResponse getComment(tenantId, id).execute(); @@ -3409,7 +3374,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - APIGetCommentResponse result = apiInstance.getComment(tenantId, id) + GetCommentResponse result = apiInstance.getComment(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3432,7 +3397,7 @@ public class Example { ### Return type -[**APIGetCommentResponse**](APIGetCommentResponse.md) +[**GetCommentResponse**](GetCommentResponse.md) ### Authorization @@ -3447,11 +3412,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getComments** -> 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(); +> GetCommentsResponse 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(); @@ -3495,7 +3459,7 @@ public class Example { Long fromDate = 56L; // Long | Long toDate = 56L; // Long | try { - APIGetCommentsResponse result = apiInstance.getComments(tenantId) + GetCommentsResponse result = apiInstance.getComments(tenantId) .page(page) .limit(limit) .skip(skip) @@ -3549,7 +3513,7 @@ public class Example { ### Return type -[**APIGetCommentsResponse**](APIGetCommentsResponse.md) +[**GetCommentsResponse**](GetCommentsResponse.md) ### Authorization @@ -3564,7 +3528,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getDomainConfig** @@ -3706,7 +3669,7 @@ public class Example { # **getEmailTemplate** -> GetEmailTemplateResponse getEmailTemplate(tenantId, id).execute(); +> GetEmailTemplateResponse1 getEmailTemplate(tenantId, id).execute(); @@ -3735,7 +3698,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetEmailTemplateResponse result = apiInstance.getEmailTemplate(tenantId, id) + GetEmailTemplateResponse1 result = apiInstance.getEmailTemplate(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3758,7 +3721,7 @@ public class Example { ### Return type -[**GetEmailTemplateResponse**](GetEmailTemplateResponse.md) +[**GetEmailTemplateResponse1**](GetEmailTemplateResponse1.md) ### Authorization @@ -3773,11 +3736,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getEmailTemplateDefinitions** -> GetEmailTemplateDefinitionsResponse getEmailTemplateDefinitions(tenantId).execute(); +> GetEmailTemplateDefinitionsResponse1 getEmailTemplateDefinitions(tenantId).execute(); @@ -3805,7 +3767,7 @@ public class Example { DefaultApi apiInstance = new DefaultApi(defaultClient); String tenantId = "tenantId_example"; // String | try { - GetEmailTemplateDefinitionsResponse result = apiInstance.getEmailTemplateDefinitions(tenantId) + GetEmailTemplateDefinitionsResponse1 result = apiInstance.getEmailTemplateDefinitions(tenantId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3827,7 +3789,7 @@ public class Example { ### Return type -[**GetEmailTemplateDefinitionsResponse**](GetEmailTemplateDefinitionsResponse.md) +[**GetEmailTemplateDefinitionsResponse1**](GetEmailTemplateDefinitionsResponse1.md) ### Authorization @@ -3842,11 +3804,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getEmailTemplateRenderErrors** -> GetEmailTemplateRenderErrorsResponse getEmailTemplateRenderErrors(tenantId, id).skip(skip).execute(); +> GetEmailTemplateRenderErrorsResponse1 getEmailTemplateRenderErrors(tenantId, id).skip(skip).execute(); @@ -3876,7 +3837,7 @@ public class Example { String id = "id_example"; // String | Double skip = 3.4D; // Double | try { - GetEmailTemplateRenderErrorsResponse result = apiInstance.getEmailTemplateRenderErrors(tenantId, id) + GetEmailTemplateRenderErrorsResponse1 result = apiInstance.getEmailTemplateRenderErrors(tenantId, id) .skip(skip) .execute(); System.out.println(result); @@ -3901,7 +3862,7 @@ public class Example { ### Return type -[**GetEmailTemplateRenderErrorsResponse**](GetEmailTemplateRenderErrorsResponse.md) +[**GetEmailTemplateRenderErrorsResponse1**](GetEmailTemplateRenderErrorsResponse1.md) ### Authorization @@ -3916,11 +3877,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getEmailTemplates** -> GetEmailTemplatesResponse getEmailTemplates(tenantId).skip(skip).execute(); +> GetEmailTemplatesResponse1 getEmailTemplates(tenantId).skip(skip).execute(); @@ -3949,7 +3909,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetEmailTemplatesResponse result = apiInstance.getEmailTemplates(tenantId) + GetEmailTemplatesResponse1 result = apiInstance.getEmailTemplates(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -3973,7 +3933,7 @@ public class Example { ### Return type -[**GetEmailTemplatesResponse**](GetEmailTemplatesResponse.md) +[**GetEmailTemplatesResponse1**](GetEmailTemplatesResponse1.md) ### Authorization @@ -3988,11 +3948,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getFeedPosts** -> GetFeedPostsResponse getFeedPosts(tenantId).afterId(afterId).limit(limit).tags(tags).execute(); +> GetFeedPostsResponse1 getFeedPosts(tenantId).afterId(afterId).limit(limit).tags(tags).execute(); @@ -4025,7 +3984,7 @@ public class Example { Integer limit = 56; // Integer | List tags = Arrays.asList(); // List | try { - GetFeedPostsResponse result = apiInstance.getFeedPosts(tenantId) + GetFeedPostsResponse1 result = apiInstance.getFeedPosts(tenantId) .afterId(afterId) .limit(limit) .tags(tags) @@ -4053,7 +4012,7 @@ public class Example { ### Return type -[**GetFeedPostsResponse**](GetFeedPostsResponse.md) +[**GetFeedPostsResponse1**](GetFeedPostsResponse1.md) ### Authorization @@ -4068,11 +4027,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getHashTags** -> GetHashTagsResponse getHashTags(tenantId).page(page).execute(); +> GetHashTagsResponse1 getHashTags(tenantId).page(page).execute(); @@ -4101,7 +4059,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double page = 3.4D; // Double | try { - GetHashTagsResponse result = apiInstance.getHashTags(tenantId) + GetHashTagsResponse1 result = apiInstance.getHashTags(tenantId) .page(page) .execute(); System.out.println(result); @@ -4125,7 +4083,7 @@ public class Example { ### Return type -[**GetHashTagsResponse**](GetHashTagsResponse.md) +[**GetHashTagsResponse1**](GetHashTagsResponse1.md) ### Authorization @@ -4140,11 +4098,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getModerator** -> GetModeratorResponse getModerator(tenantId, id).execute(); +> GetModeratorResponse1 getModerator(tenantId, id).execute(); @@ -4173,7 +4130,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetModeratorResponse result = apiInstance.getModerator(tenantId, id) + GetModeratorResponse1 result = apiInstance.getModerator(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -4196,7 +4153,7 @@ public class Example { ### Return type -[**GetModeratorResponse**](GetModeratorResponse.md) +[**GetModeratorResponse1**](GetModeratorResponse1.md) ### Authorization @@ -4211,11 +4168,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getModerators** -> GetModeratorsResponse getModerators(tenantId).skip(skip).execute(); +> GetModeratorsResponse1 getModerators(tenantId).skip(skip).execute(); @@ -4244,7 +4200,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetModeratorsResponse result = apiInstance.getModerators(tenantId) + GetModeratorsResponse1 result = apiInstance.getModerators(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -4268,7 +4224,7 @@ public class Example { ### Return type -[**GetModeratorsResponse**](GetModeratorsResponse.md) +[**GetModeratorsResponse1**](GetModeratorsResponse1.md) ### Authorization @@ -4283,11 +4239,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getNotificationCount** -> GetNotificationCountResponse getNotificationCount(tenantId).userId(userId).urlId(urlId).fromCommentId(fromCommentId).viewed(viewed).type(type).execute(); +> GetNotificationCountResponse1 getNotificationCount(tenantId).userId(userId).urlId(urlId).fromCommentId(fromCommentId).viewed(viewed).type(type).execute(); @@ -4320,7 +4275,7 @@ public class Example { Boolean viewed = true; // Boolean | String type = "type_example"; // String | try { - GetNotificationCountResponse result = apiInstance.getNotificationCount(tenantId) + GetNotificationCountResponse1 result = apiInstance.getNotificationCount(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -4352,7 +4307,7 @@ public class Example { ### Return type -[**GetNotificationCountResponse**](GetNotificationCountResponse.md) +[**GetNotificationCountResponse1**](GetNotificationCountResponse1.md) ### Authorization @@ -4367,11 +4322,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getNotifications** -> GetNotificationsResponse getNotifications(tenantId).userId(userId).urlId(urlId).fromCommentId(fromCommentId).viewed(viewed).type(type).skip(skip).execute(); +> GetNotificationsResponse1 getNotifications(tenantId).userId(userId).urlId(urlId).fromCommentId(fromCommentId).viewed(viewed).type(type).skip(skip).execute(); @@ -4405,7 +4359,7 @@ public class Example { String type = "type_example"; // String | Double skip = 3.4D; // Double | try { - GetNotificationsResponse result = apiInstance.getNotifications(tenantId) + GetNotificationsResponse1 result = apiInstance.getNotifications(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -4439,7 +4393,7 @@ public class Example { ### Return type -[**GetNotificationsResponse**](GetNotificationsResponse.md) +[**GetNotificationsResponse1**](GetNotificationsResponse1.md) ### Authorization @@ -4454,7 +4408,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getPageByURLId** @@ -4596,7 +4549,7 @@ public class Example { # **getPendingWebhookEventCount** -> GetPendingWebhookEventCountResponse getPendingWebhookEventCount(tenantId).commentId(commentId).externalId(externalId).eventType(eventType).type(type).domain(domain).attemptCountGT(attemptCountGT).execute(); +> GetPendingWebhookEventCountResponse1 getPendingWebhookEventCount(tenantId).commentId(commentId).externalId(externalId).eventType(eventType).type(type).domain(domain).attemptCountGT(attemptCountGT).execute(); @@ -4630,7 +4583,7 @@ public class Example { String domain = "domain_example"; // String | Double attemptCountGT = 3.4D; // Double | try { - GetPendingWebhookEventCountResponse result = apiInstance.getPendingWebhookEventCount(tenantId) + GetPendingWebhookEventCountResponse1 result = apiInstance.getPendingWebhookEventCount(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -4664,7 +4617,7 @@ public class Example { ### Return type -[**GetPendingWebhookEventCountResponse**](GetPendingWebhookEventCountResponse.md) +[**GetPendingWebhookEventCountResponse1**](GetPendingWebhookEventCountResponse1.md) ### Authorization @@ -4679,11 +4632,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getPendingWebhookEvents** -> GetPendingWebhookEventsResponse getPendingWebhookEvents(tenantId).commentId(commentId).externalId(externalId).eventType(eventType).type(type).domain(domain).attemptCountGT(attemptCountGT).skip(skip).execute(); +> GetPendingWebhookEventsResponse1 getPendingWebhookEvents(tenantId).commentId(commentId).externalId(externalId).eventType(eventType).type(type).domain(domain).attemptCountGT(attemptCountGT).skip(skip).execute(); @@ -4718,7 +4670,7 @@ public class Example { Double attemptCountGT = 3.4D; // Double | Double skip = 3.4D; // Double | try { - GetPendingWebhookEventsResponse result = apiInstance.getPendingWebhookEvents(tenantId) + GetPendingWebhookEventsResponse1 result = apiInstance.getPendingWebhookEvents(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -4754,7 +4706,7 @@ public class Example { ### Return type -[**GetPendingWebhookEventsResponse**](GetPendingWebhookEventsResponse.md) +[**GetPendingWebhookEventsResponse1**](GetPendingWebhookEventsResponse1.md) ### Authorization @@ -4769,11 +4721,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getQuestionConfig** -> GetQuestionConfigResponse getQuestionConfig(tenantId, id).execute(); +> GetQuestionConfigResponse1 getQuestionConfig(tenantId, id).execute(); @@ -4802,7 +4753,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetQuestionConfigResponse result = apiInstance.getQuestionConfig(tenantId, id) + GetQuestionConfigResponse1 result = apiInstance.getQuestionConfig(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -4825,7 +4776,7 @@ public class Example { ### Return type -[**GetQuestionConfigResponse**](GetQuestionConfigResponse.md) +[**GetQuestionConfigResponse1**](GetQuestionConfigResponse1.md) ### Authorization @@ -4840,11 +4791,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getQuestionConfigs** -> GetQuestionConfigsResponse getQuestionConfigs(tenantId).skip(skip).execute(); +> GetQuestionConfigsResponse1 getQuestionConfigs(tenantId).skip(skip).execute(); @@ -4873,7 +4823,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetQuestionConfigsResponse result = apiInstance.getQuestionConfigs(tenantId) + GetQuestionConfigsResponse1 result = apiInstance.getQuestionConfigs(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -4897,7 +4847,7 @@ public class Example { ### Return type -[**GetQuestionConfigsResponse**](GetQuestionConfigsResponse.md) +[**GetQuestionConfigsResponse1**](GetQuestionConfigsResponse1.md) ### Authorization @@ -4912,11 +4862,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getQuestionResult** -> GetQuestionResultResponse getQuestionResult(tenantId, id).execute(); +> GetQuestionResultResponse1 getQuestionResult(tenantId, id).execute(); @@ -4945,7 +4894,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetQuestionResultResponse result = apiInstance.getQuestionResult(tenantId, id) + GetQuestionResultResponse1 result = apiInstance.getQuestionResult(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -4968,7 +4917,7 @@ public class Example { ### Return type -[**GetQuestionResultResponse**](GetQuestionResultResponse.md) +[**GetQuestionResultResponse1**](GetQuestionResultResponse1.md) ### Authorization @@ -4983,11 +4932,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getQuestionResults** -> GetQuestionResultsResponse getQuestionResults(tenantId).urlId(urlId).userId(userId).startDate(startDate).questionId(questionId).questionIds(questionIds).skip(skip).execute(); +> GetQuestionResultsResponse1 getQuestionResults(tenantId).urlId(urlId).userId(userId).startDate(startDate).questionId(questionId).questionIds(questionIds).skip(skip).execute(); @@ -5021,7 +4969,7 @@ public class Example { String questionIds = "questionIds_example"; // String | Double skip = 3.4D; // Double | try { - GetQuestionResultsResponse result = apiInstance.getQuestionResults(tenantId) + GetQuestionResultsResponse1 result = apiInstance.getQuestionResults(tenantId) .urlId(urlId) .userId(userId) .startDate(startDate) @@ -5055,7 +5003,7 @@ public class Example { ### Return type -[**GetQuestionResultsResponse**](GetQuestionResultsResponse.md) +[**GetQuestionResultsResponse1**](GetQuestionResultsResponse1.md) ### Authorization @@ -5070,7 +5018,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getSSOUserByEmail** @@ -5356,7 +5303,7 @@ public class Example { # **getTenant** -> GetTenantResponse getTenant(tenantId, id).execute(); +> GetTenantResponse1 getTenant(tenantId, id).execute(); @@ -5385,7 +5332,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetTenantResponse result = apiInstance.getTenant(tenantId, id) + GetTenantResponse1 result = apiInstance.getTenant(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -5408,7 +5355,7 @@ public class Example { ### Return type -[**GetTenantResponse**](GetTenantResponse.md) +[**GetTenantResponse1**](GetTenantResponse1.md) ### Authorization @@ -5423,11 +5370,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getTenantDailyUsages** -> GetTenantDailyUsagesResponse getTenantDailyUsages(tenantId).yearNumber(yearNumber).monthNumber(monthNumber).dayNumber(dayNumber).skip(skip).execute(); +> GetTenantDailyUsagesResponse1 getTenantDailyUsages(tenantId).yearNumber(yearNumber).monthNumber(monthNumber).dayNumber(dayNumber).skip(skip).execute(); @@ -5459,7 +5405,7 @@ public class Example { Double dayNumber = 3.4D; // Double | Double skip = 3.4D; // Double | try { - GetTenantDailyUsagesResponse result = apiInstance.getTenantDailyUsages(tenantId) + GetTenantDailyUsagesResponse1 result = apiInstance.getTenantDailyUsages(tenantId) .yearNumber(yearNumber) .monthNumber(monthNumber) .dayNumber(dayNumber) @@ -5489,7 +5435,7 @@ public class Example { ### Return type -[**GetTenantDailyUsagesResponse**](GetTenantDailyUsagesResponse.md) +[**GetTenantDailyUsagesResponse1**](GetTenantDailyUsagesResponse1.md) ### Authorization @@ -5504,11 +5450,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getTenantPackage** -> GetTenantPackageResponse getTenantPackage(tenantId, id).execute(); +> GetTenantPackageResponse1 getTenantPackage(tenantId, id).execute(); @@ -5537,7 +5482,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetTenantPackageResponse result = apiInstance.getTenantPackage(tenantId, id) + GetTenantPackageResponse1 result = apiInstance.getTenantPackage(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -5560,7 +5505,7 @@ public class Example { ### Return type -[**GetTenantPackageResponse**](GetTenantPackageResponse.md) +[**GetTenantPackageResponse1**](GetTenantPackageResponse1.md) ### Authorization @@ -5575,11 +5520,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getTenantPackages** -> GetTenantPackagesResponse getTenantPackages(tenantId).skip(skip).execute(); +> GetTenantPackagesResponse1 getTenantPackages(tenantId).skip(skip).execute(); @@ -5608,7 +5552,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetTenantPackagesResponse result = apiInstance.getTenantPackages(tenantId) + GetTenantPackagesResponse1 result = apiInstance.getTenantPackages(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -5632,7 +5576,7 @@ public class Example { ### Return type -[**GetTenantPackagesResponse**](GetTenantPackagesResponse.md) +[**GetTenantPackagesResponse1**](GetTenantPackagesResponse1.md) ### Authorization @@ -5647,11 +5591,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getTenantUser** -> GetTenantUserResponse getTenantUser(tenantId, id).execute(); +> GetTenantUserResponse1 getTenantUser(tenantId, id).execute(); @@ -5680,7 +5623,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetTenantUserResponse result = apiInstance.getTenantUser(tenantId, id) + GetTenantUserResponse1 result = apiInstance.getTenantUser(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -5703,7 +5646,7 @@ public class Example { ### Return type -[**GetTenantUserResponse**](GetTenantUserResponse.md) +[**GetTenantUserResponse1**](GetTenantUserResponse1.md) ### Authorization @@ -5718,11 +5661,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getTenantUsers** -> GetTenantUsersResponse getTenantUsers(tenantId).skip(skip).execute(); +> GetTenantUsersResponse1 getTenantUsers(tenantId).skip(skip).execute(); @@ -5751,7 +5693,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetTenantUsersResponse result = apiInstance.getTenantUsers(tenantId) + GetTenantUsersResponse1 result = apiInstance.getTenantUsers(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -5775,7 +5717,7 @@ public class Example { ### Return type -[**GetTenantUsersResponse**](GetTenantUsersResponse.md) +[**GetTenantUsersResponse1**](GetTenantUsersResponse1.md) ### Authorization @@ -5790,11 +5732,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getTenants** -> GetTenantsResponse getTenants(tenantId).meta(meta).skip(skip).execute(); +> GetTenantsResponse1 getTenants(tenantId).meta(meta).skip(skip).execute(); @@ -5824,7 +5765,7 @@ public class Example { String meta = "meta_example"; // String | Double skip = 3.4D; // Double | try { - GetTenantsResponse result = apiInstance.getTenants(tenantId) + GetTenantsResponse1 result = apiInstance.getTenants(tenantId) .meta(meta) .skip(skip) .execute(); @@ -5850,7 +5791,7 @@ public class Example { ### Return type -[**GetTenantsResponse**](GetTenantsResponse.md) +[**GetTenantsResponse1**](GetTenantsResponse1.md) ### Authorization @@ -5865,11 +5806,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getTicket** -> GetTicketResponse getTicket(tenantId, id).userId(userId).execute(); +> GetTicketResponse1 getTicket(tenantId, id).userId(userId).execute(); @@ -5899,7 +5839,7 @@ public class Example { String id = "id_example"; // String | String userId = "userId_example"; // String | try { - GetTicketResponse result = apiInstance.getTicket(tenantId, id) + GetTicketResponse1 result = apiInstance.getTicket(tenantId, id) .userId(userId) .execute(); System.out.println(result); @@ -5924,7 +5864,7 @@ public class Example { ### Return type -[**GetTicketResponse**](GetTicketResponse.md) +[**GetTicketResponse1**](GetTicketResponse1.md) ### Authorization @@ -5939,11 +5879,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getTickets** -> GetTicketsResponse getTickets(tenantId).userId(userId).state(state).skip(skip).limit(limit).execute(); +> GetTicketsResponse1 getTickets(tenantId).userId(userId).state(state).skip(skip).limit(limit).execute(); @@ -5975,7 +5914,7 @@ public class Example { Double skip = 3.4D; // Double | Double limit = 3.4D; // Double | try { - GetTicketsResponse result = apiInstance.getTickets(tenantId) + GetTicketsResponse1 result = apiInstance.getTickets(tenantId) .userId(userId) .state(state) .skip(skip) @@ -6005,7 +5944,7 @@ public class Example { ### Return type -[**GetTicketsResponse**](GetTicketsResponse.md) +[**GetTicketsResponse1**](GetTicketsResponse1.md) ### Authorization @@ -6020,11 +5959,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getUser** -> GetUserResponse getUser(tenantId, id).execute(); +> GetUserResponse1 getUser(tenantId, id).execute(); @@ -6053,7 +5991,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetUserResponse result = apiInstance.getUser(tenantId, id) + GetUserResponse1 result = apiInstance.getUser(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6076,7 +6014,7 @@ public class Example { ### Return type -[**GetUserResponse**](GetUserResponse.md) +[**GetUserResponse1**](GetUserResponse1.md) ### Authorization @@ -6091,11 +6029,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getUserBadge** -> APIGetUserBadgeResponse getUserBadge(tenantId, id).execute(); +> GetUserBadgeResponse getUserBadge(tenantId, id).execute(); @@ -6124,7 +6061,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - APIGetUserBadgeResponse result = apiInstance.getUserBadge(tenantId, id) + GetUserBadgeResponse result = apiInstance.getUserBadge(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6147,7 +6084,7 @@ public class Example { ### Return type -[**APIGetUserBadgeResponse**](APIGetUserBadgeResponse.md) +[**GetUserBadgeResponse**](GetUserBadgeResponse.md) ### Authorization @@ -6162,11 +6099,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getUserBadgeProgressById** -> APIGetUserBadgeProgressResponse getUserBadgeProgressById(tenantId, id).execute(); +> GetUserBadgeProgressByIdResponse getUserBadgeProgressById(tenantId, id).execute(); @@ -6195,7 +6131,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - APIGetUserBadgeProgressResponse result = apiInstance.getUserBadgeProgressById(tenantId, id) + GetUserBadgeProgressByIdResponse result = apiInstance.getUserBadgeProgressById(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6218,7 +6154,7 @@ public class Example { ### Return type -[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) +[**GetUserBadgeProgressByIdResponse**](GetUserBadgeProgressByIdResponse.md) ### Authorization @@ -6233,11 +6169,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getUserBadgeProgressByUserId** -> APIGetUserBadgeProgressResponse getUserBadgeProgressByUserId(tenantId, userId).execute(); +> GetUserBadgeProgressByUserIdResponse getUserBadgeProgressByUserId(tenantId, userId).execute(); @@ -6266,7 +6201,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String userId = "userId_example"; // String | try { - APIGetUserBadgeProgressResponse result = apiInstance.getUserBadgeProgressByUserId(tenantId, userId) + GetUserBadgeProgressByUserIdResponse result = apiInstance.getUserBadgeProgressByUserId(tenantId, userId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6289,7 +6224,7 @@ public class Example { ### Return type -[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) +[**GetUserBadgeProgressByUserIdResponse**](GetUserBadgeProgressByUserIdResponse.md) ### Authorization @@ -6304,11 +6239,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getUserBadgeProgressList** -> APIGetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId).userId(userId).limit(limit).skip(skip).execute(); +> GetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId).userId(userId).limit(limit).skip(skip).execute(); @@ -6339,7 +6273,7 @@ public class Example { Double limit = 3.4D; // Double | Double skip = 3.4D; // Double | try { - APIGetUserBadgeProgressListResponse result = apiInstance.getUserBadgeProgressList(tenantId) + GetUserBadgeProgressListResponse result = apiInstance.getUserBadgeProgressList(tenantId) .userId(userId) .limit(limit) .skip(skip) @@ -6367,7 +6301,7 @@ public class Example { ### Return type -[**APIGetUserBadgeProgressListResponse**](APIGetUserBadgeProgressListResponse.md) +[**GetUserBadgeProgressListResponse**](GetUserBadgeProgressListResponse.md) ### Authorization @@ -6382,11 +6316,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getUserBadges** -> APIGetUserBadgesResponse getUserBadges(tenantId).userId(userId).badgeId(badgeId).type(type).displayedOnComments(displayedOnComments).limit(limit).skip(skip).execute(); +> GetUserBadgesResponse getUserBadges(tenantId).userId(userId).badgeId(badgeId).type(type).displayedOnComments(displayedOnComments).limit(limit).skip(skip).execute(); @@ -6420,7 +6353,7 @@ public class Example { Double limit = 3.4D; // Double | Double skip = 3.4D; // Double | try { - APIGetUserBadgesResponse result = apiInstance.getUserBadges(tenantId) + GetUserBadgesResponse result = apiInstance.getUserBadges(tenantId) .userId(userId) .badgeId(badgeId) .type(type) @@ -6454,7 +6387,7 @@ public class Example { ### Return type -[**APIGetUserBadgesResponse**](APIGetUserBadgesResponse.md) +[**GetUserBadgesResponse**](GetUserBadgesResponse.md) ### Authorization @@ -6469,11 +6402,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getVotes** -> GetVotesResponse getVotes(tenantId, urlId).execute(); +> GetVotesResponse1 getVotes(tenantId, urlId).execute(); @@ -6502,7 +6434,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | try { - GetVotesResponse result = apiInstance.getVotes(tenantId, urlId) + GetVotesResponse1 result = apiInstance.getVotes(tenantId, urlId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6525,7 +6457,7 @@ public class Example { ### Return type -[**GetVotesResponse**](GetVotesResponse.md) +[**GetVotesResponse1**](GetVotesResponse1.md) ### Authorization @@ -6540,11 +6472,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getVotesForUser** -> GetVotesForUserResponse getVotesForUser(tenantId, urlId).userId(userId).anonUserId(anonUserId).execute(); +> GetVotesForUserResponse1 getVotesForUser(tenantId, urlId).userId(userId).anonUserId(anonUserId).execute(); @@ -6575,7 +6506,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - GetVotesForUserResponse result = apiInstance.getVotesForUser(tenantId, urlId) + GetVotesForUserResponse1 result = apiInstance.getVotesForUser(tenantId, urlId) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -6602,7 +6533,7 @@ public class Example { ### Return type -[**GetVotesForUserResponse**](GetVotesForUserResponse.md) +[**GetVotesForUserResponse1**](GetVotesForUserResponse1.md) ### Authorization @@ -6617,7 +6548,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **patchDomainConfig** @@ -6693,7 +6623,7 @@ public class Example { # **patchHashTag** -> UpdateHashTagResponse patchHashTag(tag).tenantId(tenantId).updateHashTagBody(updateHashTagBody).execute(); +> PatchHashTagResponse patchHashTag(tag).tenantId(tenantId).updateHashTagBody(updateHashTagBody).execute(); @@ -6723,7 +6653,7 @@ public class Example { String tenantId = "tenantId_example"; // String | UpdateHashTagBody updateHashTagBody = new UpdateHashTagBody(); // UpdateHashTagBody | try { - UpdateHashTagResponse result = apiInstance.patchHashTag(tag) + PatchHashTagResponse result = apiInstance.patchHashTag(tag) .tenantId(tenantId) .updateHashTagBody(updateHashTagBody) .execute(); @@ -6749,7 +6679,7 @@ public class Example { ### Return type -[**UpdateHashTagResponse**](UpdateHashTagResponse.md) +[**PatchHashTagResponse**](PatchHashTagResponse.md) ### Authorization @@ -6764,7 +6694,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **patchPage** @@ -7062,7 +6991,7 @@ public class Example { # **renderEmailTemplate** -> RenderEmailTemplateResponse renderEmailTemplate(tenantId, renderEmailTemplateBody).locale(locale).execute(); +> RenderEmailTemplateResponse1 renderEmailTemplate(tenantId, renderEmailTemplateBody).locale(locale).execute(); @@ -7092,7 +7021,7 @@ public class Example { RenderEmailTemplateBody renderEmailTemplateBody = new RenderEmailTemplateBody(); // RenderEmailTemplateBody | String locale = "locale_example"; // String | try { - RenderEmailTemplateResponse result = apiInstance.renderEmailTemplate(tenantId, renderEmailTemplateBody) + RenderEmailTemplateResponse1 result = apiInstance.renderEmailTemplate(tenantId, renderEmailTemplateBody) .locale(locale) .execute(); System.out.println(result); @@ -7117,7 +7046,7 @@ public class Example { ### Return type -[**RenderEmailTemplateResponse**](RenderEmailTemplateResponse.md) +[**RenderEmailTemplateResponse1**](RenderEmailTemplateResponse1.md) ### Authorization @@ -7132,11 +7061,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **replaceTenantPackage** -> APIEmptyResponse replaceTenantPackage(tenantId, id, replaceTenantPackageBody).execute(); +> ReplaceTenantPackageResponse replaceTenantPackage(tenantId, id, replaceTenantPackageBody).execute(); @@ -7166,7 +7094,7 @@ public class Example { String id = "id_example"; // String | ReplaceTenantPackageBody replaceTenantPackageBody = new ReplaceTenantPackageBody(); // ReplaceTenantPackageBody | try { - APIEmptyResponse result = apiInstance.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) + ReplaceTenantPackageResponse result = apiInstance.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7190,7 +7118,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**ReplaceTenantPackageResponse**](ReplaceTenantPackageResponse.md) ### Authorization @@ -7205,11 +7133,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **replaceTenantUser** -> APIEmptyResponse replaceTenantUser(tenantId, id, replaceTenantUserBody).updateComments(updateComments).execute(); +> ReplaceTenantUserResponse replaceTenantUser(tenantId, id, replaceTenantUserBody).updateComments(updateComments).execute(); @@ -7240,7 +7167,7 @@ public class Example { ReplaceTenantUserBody replaceTenantUserBody = new ReplaceTenantUserBody(); // ReplaceTenantUserBody | String updateComments = "updateComments_example"; // String | try { - APIEmptyResponse result = apiInstance.replaceTenantUser(tenantId, id, replaceTenantUserBody) + ReplaceTenantUserResponse result = apiInstance.replaceTenantUser(tenantId, id, replaceTenantUserBody) .updateComments(updateComments) .execute(); System.out.println(result); @@ -7266,7 +7193,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**ReplaceTenantUserResponse**](ReplaceTenantUserResponse.md) ### Authorization @@ -7281,11 +7208,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **saveComment** -> APISaveCommentResponse saveComment(tenantId, createCommentParams).isLive(isLive).doSpamCheck(doSpamCheck).sendEmails(sendEmails).populateNotifications(populateNotifications).execute(); +> SaveCommentResponse saveComment(tenantId, createCommentParams).isLive(isLive).doSpamCheck(doSpamCheck).sendEmails(sendEmails).populateNotifications(populateNotifications).execute(); @@ -7318,7 +7244,7 @@ public class Example { Boolean sendEmails = true; // Boolean | Boolean populateNotifications = true; // Boolean | try { - APISaveCommentResponse result = apiInstance.saveComment(tenantId, createCommentParams) + SaveCommentResponse result = apiInstance.saveComment(tenantId, createCommentParams) .isLive(isLive) .doSpamCheck(doSpamCheck) .sendEmails(sendEmails) @@ -7349,7 +7275,7 @@ public class Example { ### Return type -[**APISaveCommentResponse**](APISaveCommentResponse.md) +[**SaveCommentResponse**](SaveCommentResponse.md) ### Authorization @@ -7364,7 +7290,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **saveCommentsBulk** @@ -7450,7 +7375,7 @@ public class Example { # **sendInvite** -> APIEmptyResponse sendInvite(tenantId, id, fromName).execute(); +> SendInviteResponse sendInvite(tenantId, id, fromName).execute(); @@ -7480,7 +7405,7 @@ public class Example { String id = "id_example"; // String | String fromName = "fromName_example"; // String | try { - APIEmptyResponse result = apiInstance.sendInvite(tenantId, id, fromName) + SendInviteResponse result = apiInstance.sendInvite(tenantId, id, fromName) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7504,7 +7429,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**SendInviteResponse**](SendInviteResponse.md) ### Authorization @@ -7519,11 +7444,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **sendLoginLink** -> APIEmptyResponse sendLoginLink(tenantId, id).redirectURL(redirectURL).execute(); +> SendLoginLinkResponse sendLoginLink(tenantId, id).redirectURL(redirectURL).execute(); @@ -7553,7 +7477,7 @@ public class Example { String id = "id_example"; // String | String redirectURL = "redirectURL_example"; // String | try { - APIEmptyResponse result = apiInstance.sendLoginLink(tenantId, id) + SendLoginLinkResponse result = apiInstance.sendLoginLink(tenantId, id) .redirectURL(redirectURL) .execute(); System.out.println(result); @@ -7578,7 +7502,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**SendLoginLinkResponse**](SendLoginLinkResponse.md) ### Authorization @@ -7593,11 +7517,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **unBlockUserFromComment** -> UnblockSuccess unBlockUserFromComment(tenantId, id, unBlockFromCommentParams).userId(userId).anonUserId(anonUserId).execute(); +> UnBlockUserFromCommentResponse unBlockUserFromComment(tenantId, id, unBlockFromCommentParams).userId(userId).anonUserId(anonUserId).execute(); @@ -7629,7 +7552,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - UnblockSuccess result = apiInstance.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) + UnBlockUserFromCommentResponse result = apiInstance.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -7657,7 +7580,7 @@ public class Example { ### Return type -[**UnblockSuccess**](UnblockSuccess.md) +[**UnBlockUserFromCommentResponse**](UnBlockUserFromCommentResponse.md) ### Authorization @@ -7672,11 +7595,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **unFlagComment** -> FlagCommentResponse unFlagComment(tenantId, id).userId(userId).anonUserId(anonUserId).execute(); +> UnFlagCommentResponse unFlagComment(tenantId, id).userId(userId).anonUserId(anonUserId).execute(); @@ -7707,7 +7629,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - FlagCommentResponse result = apiInstance.unFlagComment(tenantId, id) + UnFlagCommentResponse result = apiInstance.unFlagComment(tenantId, id) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -7734,7 +7656,7 @@ public class Example { ### Return type -[**FlagCommentResponse**](FlagCommentResponse.md) +[**UnFlagCommentResponse**](UnFlagCommentResponse.md) ### Authorization @@ -7749,11 +7671,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateComment** -> APIEmptyResponse updateComment(tenantId, id, updatableCommentParams).contextUserId(contextUserId).doSpamCheck(doSpamCheck).isLive(isLive).execute(); +> UpdateCommentResponse updateComment(tenantId, id, updatableCommentParams).contextUserId(contextUserId).doSpamCheck(doSpamCheck).isLive(isLive).execute(); @@ -7786,7 +7707,7 @@ public class Example { Boolean doSpamCheck = true; // Boolean | Boolean isLive = true; // Boolean | try { - APIEmptyResponse result = apiInstance.updateComment(tenantId, id, updatableCommentParams) + UpdateCommentResponse result = apiInstance.updateComment(tenantId, id, updatableCommentParams) .contextUserId(contextUserId) .doSpamCheck(doSpamCheck) .isLive(isLive) @@ -7816,7 +7737,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateCommentResponse**](UpdateCommentResponse.md) ### Authorization @@ -7831,11 +7752,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateEmailTemplate** -> APIEmptyResponse updateEmailTemplate(tenantId, id, updateEmailTemplateBody).execute(); +> UpdateEmailTemplateResponse updateEmailTemplate(tenantId, id, updateEmailTemplateBody).execute(); @@ -7865,7 +7785,7 @@ public class Example { String id = "id_example"; // String | UpdateEmailTemplateBody updateEmailTemplateBody = new UpdateEmailTemplateBody(); // UpdateEmailTemplateBody | try { - APIEmptyResponse result = apiInstance.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) + UpdateEmailTemplateResponse result = apiInstance.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7889,7 +7809,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateEmailTemplateResponse**](UpdateEmailTemplateResponse.md) ### Authorization @@ -7904,11 +7824,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateFeedPost** -> APIEmptyResponse updateFeedPost(tenantId, id, feedPost).execute(); +> UpdateFeedPostResponse updateFeedPost(tenantId, id, feedPost).execute(); @@ -7938,7 +7857,7 @@ public class Example { String id = "id_example"; // String | FeedPost feedPost = new FeedPost(); // FeedPost | try { - APIEmptyResponse result = apiInstance.updateFeedPost(tenantId, id, feedPost) + UpdateFeedPostResponse result = apiInstance.updateFeedPost(tenantId, id, feedPost) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7962,7 +7881,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateFeedPostResponse**](UpdateFeedPostResponse.md) ### Authorization @@ -7977,11 +7896,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateModerator** -> APIEmptyResponse updateModerator(tenantId, id, updateModeratorBody).execute(); +> UpdateModeratorResponse updateModerator(tenantId, id, updateModeratorBody).execute(); @@ -8011,7 +7929,7 @@ public class Example { String id = "id_example"; // String | UpdateModeratorBody updateModeratorBody = new UpdateModeratorBody(); // UpdateModeratorBody | try { - APIEmptyResponse result = apiInstance.updateModerator(tenantId, id, updateModeratorBody) + UpdateModeratorResponse result = apiInstance.updateModerator(tenantId, id, updateModeratorBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8035,7 +7953,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateModeratorResponse**](UpdateModeratorResponse.md) ### Authorization @@ -8050,11 +7968,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateNotification** -> APIEmptyResponse updateNotification(tenantId, id, updateNotificationBody).userId(userId).execute(); +> UpdateNotificationResponse updateNotification(tenantId, id, updateNotificationBody).userId(userId).execute(); @@ -8085,7 +8002,7 @@ public class Example { UpdateNotificationBody updateNotificationBody = new UpdateNotificationBody(); // UpdateNotificationBody | String userId = "userId_example"; // String | try { - APIEmptyResponse result = apiInstance.updateNotification(tenantId, id, updateNotificationBody) + UpdateNotificationResponse result = apiInstance.updateNotification(tenantId, id, updateNotificationBody) .userId(userId) .execute(); System.out.println(result); @@ -8111,7 +8028,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateNotificationResponse**](UpdateNotificationResponse.md) ### Authorization @@ -8126,11 +8043,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateQuestionConfig** -> APIEmptyResponse updateQuestionConfig(tenantId, id, updateQuestionConfigBody).execute(); +> UpdateQuestionConfigResponse updateQuestionConfig(tenantId, id, updateQuestionConfigBody).execute(); @@ -8160,7 +8076,7 @@ public class Example { String id = "id_example"; // String | UpdateQuestionConfigBody updateQuestionConfigBody = new UpdateQuestionConfigBody(); // UpdateQuestionConfigBody | try { - APIEmptyResponse result = apiInstance.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) + UpdateQuestionConfigResponse result = apiInstance.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8184,7 +8100,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateQuestionConfigResponse**](UpdateQuestionConfigResponse.md) ### Authorization @@ -8199,11 +8115,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateQuestionResult** -> APIEmptyResponse updateQuestionResult(tenantId, id, updateQuestionResultBody).execute(); +> UpdateQuestionResultResponse updateQuestionResult(tenantId, id, updateQuestionResultBody).execute(); @@ -8233,7 +8148,7 @@ public class Example { String id = "id_example"; // String | UpdateQuestionResultBody updateQuestionResultBody = new UpdateQuestionResultBody(); // UpdateQuestionResultBody | try { - APIEmptyResponse result = apiInstance.updateQuestionResult(tenantId, id, updateQuestionResultBody) + UpdateQuestionResultResponse result = apiInstance.updateQuestionResult(tenantId, id, updateQuestionResultBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8257,7 +8172,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateQuestionResultResponse**](UpdateQuestionResultResponse.md) ### Authorization @@ -8272,7 +8187,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateSubscription** @@ -8351,7 +8265,7 @@ public class Example { # **updateTenant** -> APIEmptyResponse updateTenant(tenantId, id, updateTenantBody).execute(); +> UpdateTenantResponse updateTenant(tenantId, id, updateTenantBody).execute(); @@ -8381,7 +8295,7 @@ public class Example { String id = "id_example"; // String | UpdateTenantBody updateTenantBody = new UpdateTenantBody(); // UpdateTenantBody | try { - APIEmptyResponse result = apiInstance.updateTenant(tenantId, id, updateTenantBody) + UpdateTenantResponse result = apiInstance.updateTenant(tenantId, id, updateTenantBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8405,7 +8319,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateTenantResponse**](UpdateTenantResponse.md) ### Authorization @@ -8420,11 +8334,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateTenantPackage** -> APIEmptyResponse updateTenantPackage(tenantId, id, updateTenantPackageBody).execute(); +> UpdateTenantPackageResponse updateTenantPackage(tenantId, id, updateTenantPackageBody).execute(); @@ -8454,7 +8367,7 @@ public class Example { String id = "id_example"; // String | UpdateTenantPackageBody updateTenantPackageBody = new UpdateTenantPackageBody(); // UpdateTenantPackageBody | try { - APIEmptyResponse result = apiInstance.updateTenantPackage(tenantId, id, updateTenantPackageBody) + UpdateTenantPackageResponse result = apiInstance.updateTenantPackage(tenantId, id, updateTenantPackageBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8478,7 +8391,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateTenantPackageResponse**](UpdateTenantPackageResponse.md) ### Authorization @@ -8493,11 +8406,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateTenantUser** -> APIEmptyResponse updateTenantUser(tenantId, id, updateTenantUserBody).updateComments(updateComments).execute(); +> UpdateTenantUserResponse updateTenantUser(tenantId, id, updateTenantUserBody).updateComments(updateComments).execute(); @@ -8528,7 +8440,7 @@ public class Example { UpdateTenantUserBody updateTenantUserBody = new UpdateTenantUserBody(); // UpdateTenantUserBody | String updateComments = "updateComments_example"; // String | try { - APIEmptyResponse result = apiInstance.updateTenantUser(tenantId, id, updateTenantUserBody) + UpdateTenantUserResponse result = apiInstance.updateTenantUser(tenantId, id, updateTenantUserBody) .updateComments(updateComments) .execute(); System.out.println(result); @@ -8554,7 +8466,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UpdateTenantUserResponse**](UpdateTenantUserResponse.md) ### Authorization @@ -8569,11 +8481,10 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateUserBadge** -> APIEmptySuccessResponse updateUserBadge(tenantId, id, updateUserBadgeParams).execute(); +> UpdateUserBadgeResponse updateUserBadge(tenantId, id, updateUserBadgeParams).execute(); @@ -8603,7 +8514,7 @@ public class Example { String id = "id_example"; // String | UpdateUserBadgeParams updateUserBadgeParams = new UpdateUserBadgeParams(); // UpdateUserBadgeParams | try { - APIEmptySuccessResponse result = apiInstance.updateUserBadge(tenantId, id, updateUserBadgeParams) + UpdateUserBadgeResponse result = apiInstance.updateUserBadge(tenantId, id, updateUserBadgeParams) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8627,7 +8538,7 @@ public class Example { ### Return type -[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) +[**UpdateUserBadgeResponse**](UpdateUserBadgeResponse.md) ### Authorization @@ -8642,5 +8553,4 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | diff --git a/client/docs/DeleteCommentPublicResponse.md b/client/docs/DeleteCommentPublicResponse.md new file mode 100644 index 00000000..6a2dca83 --- /dev/null +++ b/client/docs/DeleteCommentPublicResponse.md @@ -0,0 +1,22 @@ + + +# DeleteCommentPublicResponse + + +## 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/DeleteCommentResponse.md b/client/docs/DeleteCommentResponse.md new file mode 100644 index 00000000..3cbd8b32 --- /dev/null +++ b/client/docs/DeleteCommentResponse.md @@ -0,0 +1,21 @@ + + +# DeleteCommentResponse + + +## 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/DeleteCommentVoteResponse.md b/client/docs/DeleteCommentVoteResponse.md new file mode 100644 index 00000000..fb6797e2 --- /dev/null +++ b/client/docs/DeleteCommentVoteResponse.md @@ -0,0 +1,21 @@ + + +# DeleteCommentVoteResponse + + +## 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/DeleteEmailTemplateRenderErrorResponse.md b/client/docs/DeleteEmailTemplateRenderErrorResponse.md new file mode 100644 index 00000000..dc9e39ec --- /dev/null +++ b/client/docs/DeleteEmailTemplateRenderErrorResponse.md @@ -0,0 +1,20 @@ + + +# DeleteEmailTemplateRenderErrorResponse + + +## 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/DeleteEmailTemplateResponse.md b/client/docs/DeleteEmailTemplateResponse.md new file mode 100644 index 00000000..32e8a9f7 --- /dev/null +++ b/client/docs/DeleteEmailTemplateResponse.md @@ -0,0 +1,20 @@ + + +# DeleteEmailTemplateResponse + + +## 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/DeleteFeedPostPublicResponse.md b/client/docs/DeleteFeedPostPublicResponse.md index e2c37493..0064c4b8 100644 --- a/client/docs/DeleteFeedPostPublicResponse.md +++ b/client/docs/DeleteFeedPostPublicResponse.md @@ -8,6 +8,13 @@ | 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/DeleteFeedPostPublicResponseAnyOf.md b/client/docs/DeleteFeedPostPublicResponseAnyOf.md new file mode 100644 index 00000000..571e8c85 --- /dev/null +++ b/client/docs/DeleteFeedPostPublicResponseAnyOf.md @@ -0,0 +1,13 @@ + + +# DeleteFeedPostPublicResponseAnyOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | + + + diff --git a/client/docs/DeleteHashTagResponse.md b/client/docs/DeleteHashTagResponse.md new file mode 100644 index 00000000..a47050eb --- /dev/null +++ b/client/docs/DeleteHashTagResponse.md @@ -0,0 +1,20 @@ + + +# DeleteHashTagResponse + + +## 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/DeleteModerationVoteResponse.md b/client/docs/DeleteModerationVoteResponse.md new file mode 100644 index 00000000..a25d3287 --- /dev/null +++ b/client/docs/DeleteModerationVoteResponse.md @@ -0,0 +1,21 @@ + + +# DeleteModerationVoteResponse + + +## 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/DeleteModeratorResponse.md b/client/docs/DeleteModeratorResponse.md new file mode 100644 index 00000000..46ffe81d --- /dev/null +++ b/client/docs/DeleteModeratorResponse.md @@ -0,0 +1,20 @@ + + +# DeleteModeratorResponse + + +## 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/DeleteNotificationCountResponse.md b/client/docs/DeleteNotificationCountResponse.md new file mode 100644 index 00000000..9153b221 --- /dev/null +++ b/client/docs/DeleteNotificationCountResponse.md @@ -0,0 +1,20 @@ + + +# DeleteNotificationCountResponse + + +## 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/DeletePendingWebhookEventResponse.md b/client/docs/DeletePendingWebhookEventResponse.md new file mode 100644 index 00000000..e0a45221 --- /dev/null +++ b/client/docs/DeletePendingWebhookEventResponse.md @@ -0,0 +1,20 @@ + + +# DeletePendingWebhookEventResponse + + +## 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/DeleteQuestionConfigResponse.md b/client/docs/DeleteQuestionConfigResponse.md new file mode 100644 index 00000000..58b9cb8f --- /dev/null +++ b/client/docs/DeleteQuestionConfigResponse.md @@ -0,0 +1,20 @@ + + +# DeleteQuestionConfigResponse + + +## 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/DeleteQuestionResultResponse.md b/client/docs/DeleteQuestionResultResponse.md new file mode 100644 index 00000000..12ae9e1f --- /dev/null +++ b/client/docs/DeleteQuestionResultResponse.md @@ -0,0 +1,20 @@ + + +# DeleteQuestionResultResponse + + +## 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/DeleteTenantPackageResponse.md b/client/docs/DeleteTenantPackageResponse.md new file mode 100644 index 00000000..44b435d4 --- /dev/null +++ b/client/docs/DeleteTenantPackageResponse.md @@ -0,0 +1,20 @@ + + +# DeleteTenantPackageResponse + + +## 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/DeleteTenantResponse.md b/client/docs/DeleteTenantResponse.md new file mode 100644 index 00000000..2ac0a372 --- /dev/null +++ b/client/docs/DeleteTenantResponse.md @@ -0,0 +1,20 @@ + + +# DeleteTenantResponse + + +## 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/DeleteTenantUserResponse.md b/client/docs/DeleteTenantUserResponse.md new file mode 100644 index 00000000..8ce29b77 --- /dev/null +++ b/client/docs/DeleteTenantUserResponse.md @@ -0,0 +1,20 @@ + + +# DeleteTenantUserResponse + + +## 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/DeleteUserBadgeResponse.md b/client/docs/DeleteUserBadgeResponse.md new file mode 100644 index 00000000..304ab358 --- /dev/null +++ b/client/docs/DeleteUserBadgeResponse.md @@ -0,0 +1,20 @@ + + +# DeleteUserBadgeResponse + + +## 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/DeleteV1PageReactResponse.md b/client/docs/DeleteV1PageReactResponse.md new file mode 100644 index 00000000..ff6c11e9 --- /dev/null +++ b/client/docs/DeleteV1PageReactResponse.md @@ -0,0 +1,20 @@ + + +# DeleteV1PageReactResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **String** | | [optional] | +|**status** | **APIStatus** | | | +|**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/DeleteV2PageReactResponse.md b/client/docs/DeleteV2PageReactResponse.md new file mode 100644 index 00000000..a4cd130f --- /dev/null +++ b/client/docs/DeleteV2PageReactResponse.md @@ -0,0 +1,20 @@ + + +# DeleteV2PageReactResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **String** | | [optional] | +|**status** | **APIStatus** | | | +|**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/DeleteVoteResponse.md b/client/docs/DeleteVoteResponse.md new file mode 100644 index 00000000..d58c5430 --- /dev/null +++ b/client/docs/DeleteVoteResponse.md @@ -0,0 +1,21 @@ + + +# DeleteVoteResponse + + +## 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/FlagCommentPublicResponse.md b/client/docs/FlagCommentPublicResponse.md new file mode 100644 index 00000000..8860d008 --- /dev/null +++ b/client/docs/FlagCommentPublicResponse.md @@ -0,0 +1,20 @@ + + +# FlagCommentPublicResponse + + +## 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/FlagCommentResponse1.md b/client/docs/FlagCommentResponse1.md new file mode 100644 index 00000000..5abf2b6b --- /dev/null +++ b/client/docs/FlagCommentResponse1.md @@ -0,0 +1,22 @@ + + +# FlagCommentResponse1 + + +## 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/GetApiCommentsResponse.md b/client/docs/GetApiCommentsResponse.md new file mode 100644 index 00000000..533a95e5 --- /dev/null +++ b/client/docs/GetApiCommentsResponse.md @@ -0,0 +1,23 @@ + + +# GetApiCommentsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**translations** | **Object** | | [optional] | +|**comments** | [**List<ModerationAPIComment>**](ModerationAPIComment.md) | | [optional] | +|**moderationFilter** | [**ModerationFilter**](ModerationFilter.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/GetApiExportStatusResponse.md b/client/docs/GetApiExportStatusResponse.md new file mode 100644 index 00000000..e506761c --- /dev/null +++ b/client/docs/GetApiExportStatusResponse.md @@ -0,0 +1,23 @@ + + +# GetApiExportStatusResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**jobStatus** | **String** | | [optional] | +|**recordCount** | **Integer** | | [optional] | +|**downloadUrl** | **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/GetApiIdsResponse.md b/client/docs/GetApiIdsResponse.md new file mode 100644 index 00000000..c64b0d68 --- /dev/null +++ b/client/docs/GetApiIdsResponse.md @@ -0,0 +1,22 @@ + + +# GetApiIdsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ids** | **List<String>** | | [optional] | +|**hasMore** | **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/GetAuditLogsResponse1.md b/client/docs/GetAuditLogsResponse1.md new file mode 100644 index 00000000..5fada3bc --- /dev/null +++ b/client/docs/GetAuditLogsResponse1.md @@ -0,0 +1,21 @@ + + +# GetAuditLogsResponse1 + + +## 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/GetBanUsersFromCommentResponse.md b/client/docs/GetBanUsersFromCommentResponse.md new file mode 100644 index 00000000..6b96c20e --- /dev/null +++ b/client/docs/GetBanUsersFromCommentResponse.md @@ -0,0 +1,21 @@ + + +# GetBanUsersFromCommentResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bannedUsers** | [**List<APIBannedUserWithMultiMatchInfo>**](APIBannedUserWithMultiMatchInfo.md) | | [optional] | +|**code** | **String** | | [optional] | +|**status** | **APIStatus** | | | +|**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/GetCachedNotificationCountResponse1.md b/client/docs/GetCachedNotificationCountResponse1.md new file mode 100644 index 00000000..0824b6fa --- /dev/null +++ b/client/docs/GetCachedNotificationCountResponse1.md @@ -0,0 +1,21 @@ + + +# GetCachedNotificationCountResponse1 + + +## 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/GetCommentBanStatusResponse1.md b/client/docs/GetCommentBanStatusResponse1.md new file mode 100644 index 00000000..9a57ff2f --- /dev/null +++ b/client/docs/GetCommentBanStatusResponse1.md @@ -0,0 +1,22 @@ + + +# GetCommentBanStatusResponse1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**emailDomain** | **String** | | [optional] | +|**canIPBan** | **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/GetCommentChildrenResponse.md b/client/docs/GetCommentChildrenResponse.md new file mode 100644 index 00000000..5fe411db --- /dev/null +++ b/client/docs/GetCommentChildrenResponse.md @@ -0,0 +1,21 @@ + + +# GetCommentChildrenResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**comments** | [**List<ModerationAPIComment>**](ModerationAPIComment.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/GetCommentResponse.md b/client/docs/GetCommentResponse.md new file mode 100644 index 00000000..46264060 --- /dev/null +++ b/client/docs/GetCommentResponse.md @@ -0,0 +1,21 @@ + + +# GetCommentResponse + + +## 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/GetCommentTextResponse1.md b/client/docs/GetCommentTextResponse1.md new file mode 100644 index 00000000..2eda87c3 --- /dev/null +++ b/client/docs/GetCommentTextResponse1.md @@ -0,0 +1,22 @@ + + +# GetCommentTextResponse1 + + +## 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/GetCommentVoteUserNamesResponse.md b/client/docs/GetCommentVoteUserNamesResponse.md new file mode 100644 index 00000000..647c567b --- /dev/null +++ b/client/docs/GetCommentVoteUserNamesResponse.md @@ -0,0 +1,22 @@ + + +# GetCommentVoteUserNamesResponse + + +## 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/GetCommentsForUserResponse1.md b/client/docs/GetCommentsForUserResponse1.md new file mode 100644 index 00000000..103df2f1 --- /dev/null +++ b/client/docs/GetCommentsForUserResponse1.md @@ -0,0 +1,21 @@ + + +# GetCommentsForUserResponse1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**moderatingTenantIds** | **List<String>** | | [optional] | +|**status** | **APIStatus** | | [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/GetCommentsPublicResponse.md b/client/docs/GetCommentsPublicResponse.md new file mode 100644 index 00000000..fa35fa39 --- /dev/null +++ b/client/docs/GetCommentsPublicResponse.md @@ -0,0 +1,43 @@ + + +# GetCommentsPublicResponse + + +## 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/GetCommentsResponse.md b/client/docs/GetCommentsResponse.md new file mode 100644 index 00000000..5956aea7 --- /dev/null +++ b/client/docs/GetCommentsResponse.md @@ -0,0 +1,21 @@ + + +# GetCommentsResponse + + +## 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/GetCountResponse.md b/client/docs/GetCountResponse.md new file mode 100644 index 00000000..6dd60c63 --- /dev/null +++ b/client/docs/GetCountResponse.md @@ -0,0 +1,21 @@ + + +# GetCountResponse + + +## 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/GetCountsResponse.md b/client/docs/GetCountsResponse.md new file mode 100644 index 00000000..5df77518 --- /dev/null +++ b/client/docs/GetCountsResponse.md @@ -0,0 +1,21 @@ + + +# GetCountsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalCount** | **Double** | | [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/GetEmailTemplateDefinitionsResponse1.md b/client/docs/GetEmailTemplateDefinitionsResponse1.md new file mode 100644 index 00000000..1830298e --- /dev/null +++ b/client/docs/GetEmailTemplateDefinitionsResponse1.md @@ -0,0 +1,21 @@ + + +# GetEmailTemplateDefinitionsResponse1 + + +## 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/GetEmailTemplateRenderErrorsResponse1.md b/client/docs/GetEmailTemplateRenderErrorsResponse1.md new file mode 100644 index 00000000..d0cc5c8c --- /dev/null +++ b/client/docs/GetEmailTemplateRenderErrorsResponse1.md @@ -0,0 +1,21 @@ + + +# GetEmailTemplateRenderErrorsResponse1 + + +## 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/GetEmailTemplateResponse1.md b/client/docs/GetEmailTemplateResponse1.md new file mode 100644 index 00000000..c0eb3e38 --- /dev/null +++ b/client/docs/GetEmailTemplateResponse1.md @@ -0,0 +1,21 @@ + + +# GetEmailTemplateResponse1 + + +## 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/GetEmailTemplatesResponse1.md b/client/docs/GetEmailTemplatesResponse1.md new file mode 100644 index 00000000..008bbbb5 --- /dev/null +++ b/client/docs/GetEmailTemplatesResponse1.md @@ -0,0 +1,21 @@ + + +# GetEmailTemplatesResponse1 + + +## 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/GetEventLogResponse1.md b/client/docs/GetEventLogResponse1.md new file mode 100644 index 00000000..7832cef0 --- /dev/null +++ b/client/docs/GetEventLogResponse1.md @@ -0,0 +1,21 @@ + + +# GetEventLogResponse1 + + +## 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/GetFeedPostsPublicResponse.md b/client/docs/GetFeedPostsPublicResponse.md new file mode 100644 index 00000000..2cf2a41b --- /dev/null +++ b/client/docs/GetFeedPostsPublicResponse.md @@ -0,0 +1,26 @@ + + +# GetFeedPostsPublicResponse + + +## 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/GetFeedPostsResponse1.md b/client/docs/GetFeedPostsResponse1.md new file mode 100644 index 00000000..d949f200 --- /dev/null +++ b/client/docs/GetFeedPostsResponse1.md @@ -0,0 +1,21 @@ + + +# GetFeedPostsResponse1 + + +## 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/GetFeedPostsStatsResponse.md b/client/docs/GetFeedPostsStatsResponse.md new file mode 100644 index 00000000..ce353590 --- /dev/null +++ b/client/docs/GetFeedPostsStatsResponse.md @@ -0,0 +1,21 @@ + + +# GetFeedPostsStatsResponse + + +## 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/GetGifLargeResponse.md b/client/docs/GetGifLargeResponse.md new file mode 100644 index 00000000..a01fc4e4 --- /dev/null +++ b/client/docs/GetGifLargeResponse.md @@ -0,0 +1,21 @@ + + +# GetGifLargeResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**src** | **String** | | [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/GetGifsSearchResponse.md b/client/docs/GetGifsSearchResponse.md index fce3ff89..77d1a79b 100644 --- a/client/docs/GetGifsSearchResponse.md +++ b/client/docs/GetGifsSearchResponse.md @@ -10,6 +10,12 @@ |**images** | **List<List<GifSearchResponseImagesInnerInner>>** | | [optional] | |**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/GetGlobalEventLogResponse.md b/client/docs/GetGlobalEventLogResponse.md new file mode 100644 index 00000000..86487d99 --- /dev/null +++ b/client/docs/GetGlobalEventLogResponse.md @@ -0,0 +1,21 @@ + + +# GetGlobalEventLogResponse + + +## 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/GetHashTagsResponse1.md b/client/docs/GetHashTagsResponse1.md new file mode 100644 index 00000000..d1979dcf --- /dev/null +++ b/client/docs/GetHashTagsResponse1.md @@ -0,0 +1,21 @@ + + +# GetHashTagsResponse1 + + +## 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/GetLogsResponse.md b/client/docs/GetLogsResponse.md new file mode 100644 index 00000000..ec1927f4 --- /dev/null +++ b/client/docs/GetLogsResponse.md @@ -0,0 +1,21 @@ + + +# GetLogsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**logs** | [**List<ModerationAPICommentLog>**](ModerationAPICommentLog.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/GetManualBadgesForUserResponse.md b/client/docs/GetManualBadgesForUserResponse.md new file mode 100644 index 00000000..a8cff748 --- /dev/null +++ b/client/docs/GetManualBadgesForUserResponse.md @@ -0,0 +1,21 @@ + + +# GetManualBadgesForUserResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**badges** | [**List<UserBadge>**](UserBadge.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/GetManualBadgesResponse.md b/client/docs/GetManualBadgesResponse.md new file mode 100644 index 00000000..84f98b12 --- /dev/null +++ b/client/docs/GetManualBadgesResponse.md @@ -0,0 +1,21 @@ + + +# GetManualBadgesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**badges** | [**List<TenantBadge>**](TenantBadge.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/GetModerationCommentResponse.md b/client/docs/GetModerationCommentResponse.md new file mode 100644 index 00000000..15aa4714 --- /dev/null +++ b/client/docs/GetModerationCommentResponse.md @@ -0,0 +1,21 @@ + + +# GetModerationCommentResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**comment** | [**ModerationAPIComment**](ModerationAPIComment.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/GetModerationCommentTextResponse.md b/client/docs/GetModerationCommentTextResponse.md new file mode 100644 index 00000000..c0092d0b --- /dev/null +++ b/client/docs/GetModerationCommentTextResponse.md @@ -0,0 +1,21 @@ + + +# GetModerationCommentTextResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**comment** | **String** | | [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/GetModeratorResponse1.md b/client/docs/GetModeratorResponse1.md new file mode 100644 index 00000000..b74e1cd4 --- /dev/null +++ b/client/docs/GetModeratorResponse1.md @@ -0,0 +1,21 @@ + + +# GetModeratorResponse1 + + +## 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/GetModeratorsResponse1.md b/client/docs/GetModeratorsResponse1.md new file mode 100644 index 00000000..660c11c1 --- /dev/null +++ b/client/docs/GetModeratorsResponse1.md @@ -0,0 +1,21 @@ + + +# GetModeratorsResponse1 + + +## 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/GetNotificationCountResponse1.md b/client/docs/GetNotificationCountResponse1.md new file mode 100644 index 00000000..1c72f6eb --- /dev/null +++ b/client/docs/GetNotificationCountResponse1.md @@ -0,0 +1,21 @@ + + +# GetNotificationCountResponse1 + + +## 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/GetNotificationsResponse1.md b/client/docs/GetNotificationsResponse1.md new file mode 100644 index 00000000..e785dc52 --- /dev/null +++ b/client/docs/GetNotificationsResponse1.md @@ -0,0 +1,21 @@ + + +# GetNotificationsResponse1 + + +## 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/GetOfflineUsersResponse.md b/client/docs/GetOfflineUsersResponse.md new file mode 100644 index 00000000..0dc1daef --- /dev/null +++ b/client/docs/GetOfflineUsersResponse.md @@ -0,0 +1,23 @@ + + +# GetOfflineUsersResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nextAfterUserId** | **String** | | [optional] | +|**nextAfterName** | **String** | | [optional] | +|**users** | [**List<PageUserEntry>**](PageUserEntry.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/GetOnlineUsersResponse.md b/client/docs/GetOnlineUsersResponse.md new file mode 100644 index 00000000..d4e6fee0 --- /dev/null +++ b/client/docs/GetOnlineUsersResponse.md @@ -0,0 +1,25 @@ + + +# GetOnlineUsersResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nextAfterUserId** | **String** | | [optional] | +|**nextAfterName** | **String** | | [optional] | +|**totalCount** | **Double** | | [optional] | +|**anonCount** | **Double** | | [optional] | +|**users** | [**List<PageUserEntry>**](PageUserEntry.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/GetPagesPublicResponse.md b/client/docs/GetPagesPublicResponse.md new file mode 100644 index 00000000..9721877f --- /dev/null +++ b/client/docs/GetPagesPublicResponse.md @@ -0,0 +1,22 @@ + + +# GetPagesPublicResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nextCursor** | **String** | | [optional] | +|**pages** | [**List<PublicPage>**](PublicPage.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/GetPendingWebhookEventCountResponse1.md b/client/docs/GetPendingWebhookEventCountResponse1.md new file mode 100644 index 00000000..10e54ebd --- /dev/null +++ b/client/docs/GetPendingWebhookEventCountResponse1.md @@ -0,0 +1,21 @@ + + +# GetPendingWebhookEventCountResponse1 + + +## 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/GetPendingWebhookEventsResponse1.md b/client/docs/GetPendingWebhookEventsResponse1.md new file mode 100644 index 00000000..0839acdf --- /dev/null +++ b/client/docs/GetPendingWebhookEventsResponse1.md @@ -0,0 +1,21 @@ + + +# GetPendingWebhookEventsResponse1 + + +## 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/GetPreBanSummaryResponse.md b/client/docs/GetPreBanSummaryResponse.md new file mode 100644 index 00000000..42f20840 --- /dev/null +++ b/client/docs/GetPreBanSummaryResponse.md @@ -0,0 +1,22 @@ + + +# GetPreBanSummaryResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**usernames** | **List<String>** | | [optional] | +|**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/GetQuestionConfigResponse1.md b/client/docs/GetQuestionConfigResponse1.md new file mode 100644 index 00000000..21231975 --- /dev/null +++ b/client/docs/GetQuestionConfigResponse1.md @@ -0,0 +1,21 @@ + + +# GetQuestionConfigResponse1 + + +## 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/GetQuestionConfigsResponse1.md b/client/docs/GetQuestionConfigsResponse1.md new file mode 100644 index 00000000..9def87be --- /dev/null +++ b/client/docs/GetQuestionConfigsResponse1.md @@ -0,0 +1,21 @@ + + +# GetQuestionConfigsResponse1 + + +## 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/GetQuestionResultResponse1.md b/client/docs/GetQuestionResultResponse1.md new file mode 100644 index 00000000..7aa94cc8 --- /dev/null +++ b/client/docs/GetQuestionResultResponse1.md @@ -0,0 +1,21 @@ + + +# GetQuestionResultResponse1 + + +## 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/GetQuestionResultsResponse1.md b/client/docs/GetQuestionResultsResponse1.md new file mode 100644 index 00000000..8e56dcb4 --- /dev/null +++ b/client/docs/GetQuestionResultsResponse1.md @@ -0,0 +1,21 @@ + + +# GetQuestionResultsResponse1 + + +## 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/GetSearchCommentsSummaryResponse.md b/client/docs/GetSearchCommentsSummaryResponse.md new file mode 100644 index 00000000..2ad7cb27 --- /dev/null +++ b/client/docs/GetSearchCommentsSummaryResponse.md @@ -0,0 +1,21 @@ + + +# GetSearchCommentsSummaryResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**commentCount** | **Integer** | | [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/GetSearchPagesResponse.md b/client/docs/GetSearchPagesResponse.md new file mode 100644 index 00000000..c4a0b0f7 --- /dev/null +++ b/client/docs/GetSearchPagesResponse.md @@ -0,0 +1,21 @@ + + +# GetSearchPagesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pages** | [**List<ModerationPageSearchProjected>**](ModerationPageSearchProjected.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/GetSearchSitesResponse.md b/client/docs/GetSearchSitesResponse.md new file mode 100644 index 00000000..1442c10a --- /dev/null +++ b/client/docs/GetSearchSitesResponse.md @@ -0,0 +1,21 @@ + + +# GetSearchSitesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sites** | [**List<ModerationSiteSearchProjected>**](ModerationSiteSearchProjected.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/GetSearchSuggestResponse.md b/client/docs/GetSearchSuggestResponse.md new file mode 100644 index 00000000..ac03ece7 --- /dev/null +++ b/client/docs/GetSearchSuggestResponse.md @@ -0,0 +1,22 @@ + + +# GetSearchSuggestResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**pages** | [**List<ModerationPageSearchProjected>**](ModerationPageSearchProjected.md) | | [optional] | +|**users** | [**List<ModerationUserSearchProjected>**](ModerationUserSearchProjected.md) | | [optional] | +|**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/GetSearchUsersResponse.md b/client/docs/GetSearchUsersResponse.md new file mode 100644 index 00000000..d7a91977 --- /dev/null +++ b/client/docs/GetSearchUsersResponse.md @@ -0,0 +1,21 @@ + + +# GetSearchUsersResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**users** | [**List<ModerationUserSearchProjected>**](ModerationUserSearchProjected.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/GetTenantDailyUsagesResponse1.md b/client/docs/GetTenantDailyUsagesResponse1.md new file mode 100644 index 00000000..842ecce6 --- /dev/null +++ b/client/docs/GetTenantDailyUsagesResponse1.md @@ -0,0 +1,21 @@ + + +# GetTenantDailyUsagesResponse1 + + +## 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/GetTenantPackageResponse1.md b/client/docs/GetTenantPackageResponse1.md new file mode 100644 index 00000000..01b9308b --- /dev/null +++ b/client/docs/GetTenantPackageResponse1.md @@ -0,0 +1,21 @@ + + +# GetTenantPackageResponse1 + + +## 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/GetTenantPackagesResponse1.md b/client/docs/GetTenantPackagesResponse1.md new file mode 100644 index 00000000..30fedd5a --- /dev/null +++ b/client/docs/GetTenantPackagesResponse1.md @@ -0,0 +1,21 @@ + + +# GetTenantPackagesResponse1 + + +## 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/GetTenantResponse1.md b/client/docs/GetTenantResponse1.md new file mode 100644 index 00000000..e285927a --- /dev/null +++ b/client/docs/GetTenantResponse1.md @@ -0,0 +1,21 @@ + + +# GetTenantResponse1 + + +## 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/GetTenantUserResponse1.md b/client/docs/GetTenantUserResponse1.md new file mode 100644 index 00000000..51da5b62 --- /dev/null +++ b/client/docs/GetTenantUserResponse1.md @@ -0,0 +1,21 @@ + + +# GetTenantUserResponse1 + + +## 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/GetTenantUsersResponse1.md b/client/docs/GetTenantUsersResponse1.md new file mode 100644 index 00000000..c85be036 --- /dev/null +++ b/client/docs/GetTenantUsersResponse1.md @@ -0,0 +1,21 @@ + + +# GetTenantUsersResponse1 + + +## 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/GetTenantsResponse1.md b/client/docs/GetTenantsResponse1.md new file mode 100644 index 00000000..50a04379 --- /dev/null +++ b/client/docs/GetTenantsResponse1.md @@ -0,0 +1,21 @@ + + +# GetTenantsResponse1 + + +## 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/GetTicketResponse1.md b/client/docs/GetTicketResponse1.md new file mode 100644 index 00000000..ee46f7a4 --- /dev/null +++ b/client/docs/GetTicketResponse1.md @@ -0,0 +1,22 @@ + + +# GetTicketResponse1 + + +## 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/GetTicketsResponse1.md b/client/docs/GetTicketsResponse1.md new file mode 100644 index 00000000..d2b63a54 --- /dev/null +++ b/client/docs/GetTicketsResponse1.md @@ -0,0 +1,21 @@ + + +# GetTicketsResponse1 + + +## 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/GetTranslationsResponse1.md b/client/docs/GetTranslationsResponse1.md new file mode 100644 index 00000000..166dd243 --- /dev/null +++ b/client/docs/GetTranslationsResponse1.md @@ -0,0 +1,21 @@ + + +# GetTranslationsResponse1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**translations** | **Map<String, String>** | 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/GetTrustFactorResponse.md b/client/docs/GetTrustFactorResponse.md new file mode 100644 index 00000000..211883b9 --- /dev/null +++ b/client/docs/GetTrustFactorResponse.md @@ -0,0 +1,22 @@ + + +# GetTrustFactorResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**manualTrustFactor** | **Double** | | [optional] | +|**autoTrustFactor** | **Double** | | [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/GetUserBadgeProgressByIdResponse.md b/client/docs/GetUserBadgeProgressByIdResponse.md new file mode 100644 index 00000000..10c0b00c --- /dev/null +++ b/client/docs/GetUserBadgeProgressByIdResponse.md @@ -0,0 +1,21 @@ + + +# GetUserBadgeProgressByIdResponse + + +## 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/GetUserBadgeProgressByUserIdResponse.md b/client/docs/GetUserBadgeProgressByUserIdResponse.md new file mode 100644 index 00000000..71c854f7 --- /dev/null +++ b/client/docs/GetUserBadgeProgressByUserIdResponse.md @@ -0,0 +1,21 @@ + + +# GetUserBadgeProgressByUserIdResponse + + +## 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/GetUserBadgeProgressListResponse.md b/client/docs/GetUserBadgeProgressListResponse.md new file mode 100644 index 00000000..30d62421 --- /dev/null +++ b/client/docs/GetUserBadgeProgressListResponse.md @@ -0,0 +1,21 @@ + + +# GetUserBadgeProgressListResponse + + +## 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/GetUserBadgeResponse.md b/client/docs/GetUserBadgeResponse.md new file mode 100644 index 00000000..fa8d4cea --- /dev/null +++ b/client/docs/GetUserBadgeResponse.md @@ -0,0 +1,21 @@ + + +# GetUserBadgeResponse + + +## 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/GetUserBadgesResponse.md b/client/docs/GetUserBadgesResponse.md new file mode 100644 index 00000000..0cfcf3d7 --- /dev/null +++ b/client/docs/GetUserBadgesResponse.md @@ -0,0 +1,21 @@ + + +# GetUserBadgesResponse + + +## 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/GetUserBanPreferenceResponse.md b/client/docs/GetUserBanPreferenceResponse.md new file mode 100644 index 00000000..70df7eca --- /dev/null +++ b/client/docs/GetUserBanPreferenceResponse.md @@ -0,0 +1,21 @@ + + +# GetUserBanPreferenceResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**preferences** | [**APIModerateUserBanPreferences**](APIModerateUserBanPreferences.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/GetUserInternalProfileResponse1.md b/client/docs/GetUserInternalProfileResponse1.md new file mode 100644 index 00000000..71ccfa71 --- /dev/null +++ b/client/docs/GetUserInternalProfileResponse1.md @@ -0,0 +1,21 @@ + + +# GetUserInternalProfileResponse1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**profile** | [**GetUserInternalProfileResponseProfile**](GetUserInternalProfileResponseProfile.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/GetUserNotificationCountResponse1.md b/client/docs/GetUserNotificationCountResponse1.md new file mode 100644 index 00000000..a91ceca5 --- /dev/null +++ b/client/docs/GetUserNotificationCountResponse1.md @@ -0,0 +1,21 @@ + + +# GetUserNotificationCountResponse1 + + +## 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/GetUserNotificationsResponse.md b/client/docs/GetUserNotificationsResponse.md new file mode 100644 index 00000000..9ebb20bd --- /dev/null +++ b/client/docs/GetUserNotificationsResponse.md @@ -0,0 +1,24 @@ + + +# GetUserNotificationsResponse + + +## 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/GetUserPresenceStatusesResponse1.md b/client/docs/GetUserPresenceStatusesResponse1.md new file mode 100644 index 00000000..55dbce3d --- /dev/null +++ b/client/docs/GetUserPresenceStatusesResponse1.md @@ -0,0 +1,21 @@ + + +# GetUserPresenceStatusesResponse1 + + +## 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/GetUserReactsPublicResponse.md b/client/docs/GetUserReactsPublicResponse.md new file mode 100644 index 00000000..8dc5c79c --- /dev/null +++ b/client/docs/GetUserReactsPublicResponse.md @@ -0,0 +1,21 @@ + + +# GetUserReactsPublicResponse + + +## 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/GetUserResponse1.md b/client/docs/GetUserResponse1.md new file mode 100644 index 00000000..ae8f3099 --- /dev/null +++ b/client/docs/GetUserResponse1.md @@ -0,0 +1,21 @@ + + +# GetUserResponse1 + + +## 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/GetUsersInfoResponse.md b/client/docs/GetUsersInfoResponse.md new file mode 100644 index 00000000..117d4bf9 --- /dev/null +++ b/client/docs/GetUsersInfoResponse.md @@ -0,0 +1,21 @@ + + +# GetUsersInfoResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**users** | [**List<PageUserEntry>**](PageUserEntry.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/GetV1PageLikesResponse.md b/client/docs/GetV1PageLikesResponse.md new file mode 100644 index 00000000..588eac13 --- /dev/null +++ b/client/docs/GetV1PageLikesResponse.md @@ -0,0 +1,24 @@ + + +# GetV1PageLikesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**urlIdWS** | **String** | | [optional] | +|**didLike** | **Boolean** | | [optional] | +|**commentCount** | **Integer** | | [optional] | +|**likeCount** | **Integer** | | [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/GetV2PageReactUsersResponse1.md b/client/docs/GetV2PageReactUsersResponse1.md new file mode 100644 index 00000000..19d4eedd --- /dev/null +++ b/client/docs/GetV2PageReactUsersResponse1.md @@ -0,0 +1,21 @@ + + +# GetV2PageReactUsersResponse1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userNames** | **List<String>** | | [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/GetV2PageReactsResponse.md b/client/docs/GetV2PageReactsResponse.md new file mode 100644 index 00000000..553b21eb --- /dev/null +++ b/client/docs/GetV2PageReactsResponse.md @@ -0,0 +1,22 @@ + + +# GetV2PageReactsResponse + + +## 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** | | | +|**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/GetVotesForUserResponse1.md b/client/docs/GetVotesForUserResponse1.md new file mode 100644 index 00000000..c5127692 --- /dev/null +++ b/client/docs/GetVotesForUserResponse1.md @@ -0,0 +1,23 @@ + + +# GetVotesForUserResponse1 + + +## 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/GetVotesResponse1.md b/client/docs/GetVotesResponse1.md new file mode 100644 index 00000000..e170e0fc --- /dev/null +++ b/client/docs/GetVotesResponse1.md @@ -0,0 +1,23 @@ + + +# GetVotesResponse1 + + +## 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/LockCommentResponse.md b/client/docs/LockCommentResponse.md new file mode 100644 index 00000000..81bf4a56 --- /dev/null +++ b/client/docs/LockCommentResponse.md @@ -0,0 +1,20 @@ + + +# LockCommentResponse + + +## 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/ModerationApi.md b/client/docs/ModerationApi.md index 9e1561f0..911eefb0 100644 --- a/client/docs/ModerationApi.md +++ b/client/docs/ModerationApi.md @@ -52,7 +52,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteModerationVote** -> VoteDeleteResponse deleteModerationVote(commentId, voteId).sso(sso).execute(); +> DeleteModerationVoteResponse deleteModerationVote(commentId, voteId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -73,9 +73,13 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | String voteId = "voteId_example"; // String | + String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - VoteDeleteResponse result = apiInstance.deleteModerationVote(commentId, voteId) + DeleteModerationVoteResponse result = apiInstance.deleteModerationVote(commentId, voteId) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -96,11 +100,13 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | | **voteId** | **String**| | | +| **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**VoteDeleteResponse**](VoteDeleteResponse.md) +[**DeleteModerationVoteResponse**](DeleteModerationVoteResponse.md) ### Authorization @@ -115,11 +121,10 @@ No authorization required | 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(); +> GetApiCommentsResponse getApiComments().page(page).count(count).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).demo(demo).tenantId(tenantId).sso(sso).execute(); @@ -146,9 +151,10 @@ public class Example { String searchFilters = "searchFilters_example"; // String | String sorts = "sorts_example"; // String | Boolean demo = true; // Boolean | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPIGetCommentsResponse result = apiInstance.getApiComments() + GetApiCommentsResponse result = apiInstance.getApiComments() .page(page) .count(count) .textSearch(textSearch) @@ -157,6 +163,7 @@ public class Example { .searchFilters(searchFilters) .sorts(sorts) .demo(demo) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -183,11 +190,12 @@ public class Example { | **searchFilters** | **String**| | [optional] | | **sorts** | **String**| | [optional] | | **demo** | **Boolean**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationAPIGetCommentsResponse**](ModerationAPIGetCommentsResponse.md) +[**GetApiCommentsResponse**](GetApiCommentsResponse.md) ### Authorization @@ -202,11 +210,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getApiExportStatus** -> ModerationExportStatusResponse getApiExportStatus().batchJobId(batchJobId).sso(sso).execute(); +> GetApiExportStatusResponse getApiExportStatus().batchJobId(batchJobId).tenantId(tenantId).sso(sso).execute(); @@ -226,10 +233,12 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String batchJobId = "batchJobId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationExportStatusResponse result = apiInstance.getApiExportStatus() + GetApiExportStatusResponse result = apiInstance.getApiExportStatus() .batchJobId(batchJobId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -249,11 +258,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **batchJobId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationExportStatusResponse**](ModerationExportStatusResponse.md) +[**GetApiExportStatusResponse**](GetApiExportStatusResponse.md) ### Authorization @@ -268,11 +278,10 @@ No authorization required | 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(); +> GetApiIdsResponse getApiIds().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).afterId(afterId).demo(demo).tenantId(tenantId).sso(sso).execute(); @@ -297,15 +306,17 @@ public class Example { String searchFilters = "searchFilters_example"; // String | String afterId = "afterId_example"; // String | Boolean demo = true; // Boolean | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPIGetCommentIdsResponse result = apiInstance.getApiIds() + GetApiIdsResponse result = apiInstance.getApiIds() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) .searchFilters(searchFilters) .afterId(afterId) .demo(demo) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -330,11 +341,12 @@ public class Example { | **searchFilters** | **String**| | [optional] | | **afterId** | **String**| | [optional] | | **demo** | **Boolean**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationAPIGetCommentIdsResponse**](ModerationAPIGetCommentIdsResponse.md) +[**GetApiIdsResponse**](GetApiIdsResponse.md) ### Authorization @@ -349,11 +361,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getBanUsersFromComment** -> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId).sso(sso).execute(); +> GetBanUsersFromCommentResponse getBanUsersFromComment(commentId).tenantId(tenantId).sso(sso).execute(); @@ -373,9 +384,11 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetBannedUsersFromCommentResponse result = apiInstance.getBanUsersFromComment(commentId) + GetBanUsersFromCommentResponse result = apiInstance.getBanUsersFromComment(commentId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -395,11 +408,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**GetBannedUsersFromCommentResponse**](GetBannedUsersFromCommentResponse.md) +[**GetBanUsersFromCommentResponse**](GetBanUsersFromCommentResponse.md) ### Authorization @@ -414,11 +428,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getCommentBanStatus** -> GetCommentBanStatusResponse getCommentBanStatus(commentId).sso(sso).execute(); +> GetCommentBanStatusResponse1 getCommentBanStatus(commentId).tenantId(tenantId).sso(sso).execute(); @@ -438,9 +451,11 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetCommentBanStatusResponse result = apiInstance.getCommentBanStatus(commentId) + GetCommentBanStatusResponse1 result = apiInstance.getCommentBanStatus(commentId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -460,11 +475,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**GetCommentBanStatusResponse**](GetCommentBanStatusResponse.md) +[**GetCommentBanStatusResponse1**](GetCommentBanStatusResponse1.md) ### Authorization @@ -479,11 +495,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getCommentChildren** -> ModerationAPIChildCommentsResponse getCommentChildren(commentId).sso(sso).execute(); +> GetCommentChildrenResponse getCommentChildren(commentId).tenantId(tenantId).sso(sso).execute(); @@ -503,9 +518,11 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPIChildCommentsResponse result = apiInstance.getCommentChildren(commentId) + GetCommentChildrenResponse result = apiInstance.getCommentChildren(commentId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -525,11 +542,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) +[**GetCommentChildrenResponse**](GetCommentChildrenResponse.md) ### Authorization @@ -544,11 +562,10 @@ No authorization required | 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(); +> GetCountResponse getCount().textSearch(textSearch).byIPFromComment(byIPFromComment).filter(filter).searchFilters(searchFilters).demo(demo).tenantId(tenantId).sso(sso).execute(); @@ -572,14 +589,16 @@ public class Example { String filter = "filter_example"; // String | String searchFilters = "searchFilters_example"; // String | Boolean demo = true; // Boolean | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPICountCommentsResponse result = apiInstance.getCount() + GetCountResponse result = apiInstance.getCount() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filter(filter) .searchFilters(searchFilters) .demo(demo) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -603,11 +622,12 @@ public class Example { | **filter** | **String**| | [optional] | | **searchFilters** | **String**| | [optional] | | **demo** | **Boolean**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationAPICountCommentsResponse**](ModerationAPICountCommentsResponse.md) +[**GetCountResponse**](GetCountResponse.md) ### Authorization @@ -622,11 +642,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getCounts** -> GetBannedUsersCountResponse getCounts().sso(sso).execute(); +> GetCountsResponse getCounts().tenantId(tenantId).sso(sso).execute(); @@ -645,9 +664,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetBannedUsersCountResponse result = apiInstance.getCounts() + GetCountsResponse result = apiInstance.getCounts() + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -666,11 +687,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**GetBannedUsersCountResponse**](GetBannedUsersCountResponse.md) +[**GetCountsResponse**](GetCountsResponse.md) ### Authorization @@ -685,11 +707,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getLogs** -> ModerationAPIGetLogsResponse getLogs(commentId).sso(sso).execute(); +> GetLogsResponse getLogs(commentId).tenantId(tenantId).sso(sso).execute(); @@ -709,9 +730,11 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPIGetLogsResponse result = apiInstance.getLogs(commentId) + GetLogsResponse result = apiInstance.getLogs(commentId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -731,11 +754,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationAPIGetLogsResponse**](ModerationAPIGetLogsResponse.md) +[**GetLogsResponse**](GetLogsResponse.md) ### Authorization @@ -750,11 +774,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getManualBadges** -> GetTenantManualBadgesResponse getManualBadges().sso(sso).execute(); +> GetManualBadgesResponse getManualBadges().tenantId(tenantId).sso(sso).execute(); @@ -773,9 +796,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetTenantManualBadgesResponse result = apiInstance.getManualBadges() + GetManualBadgesResponse result = apiInstance.getManualBadges() + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -794,11 +819,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**GetTenantManualBadgesResponse**](GetTenantManualBadgesResponse.md) +[**GetManualBadgesResponse**](GetManualBadgesResponse.md) ### Authorization @@ -813,11 +839,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getManualBadgesForUser** -> GetUserManualBadgesResponse getManualBadgesForUser().badgesUserId(badgesUserId).commentId(commentId).sso(sso).execute(); +> GetManualBadgesForUserResponse getManualBadgesForUser().badgesUserId(badgesUserId).commentId(commentId).tenantId(tenantId).sso(sso).execute(); @@ -838,11 +863,13 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String badgesUserId = "badgesUserId_example"; // String | String commentId = "commentId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetUserManualBadgesResponse result = apiInstance.getManualBadgesForUser() + GetManualBadgesForUserResponse result = apiInstance.getManualBadgesForUser() .badgesUserId(badgesUserId) .commentId(commentId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -863,11 +890,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **badgesUserId** | **String**| | [optional] | | **commentId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**GetUserManualBadgesResponse**](GetUserManualBadgesResponse.md) +[**GetManualBadgesForUserResponse**](GetManualBadgesForUserResponse.md) ### Authorization @@ -882,11 +910,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getModerationComment** -> ModerationAPICommentResponse getModerationComment(commentId).includeEmail(includeEmail).includeIP(includeIP).sso(sso).execute(); +> GetModerationCommentResponse getModerationComment(commentId).includeEmail(includeEmail).includeIP(includeIP).tenantId(tenantId).sso(sso).execute(); @@ -908,11 +935,13 @@ public class Example { String commentId = "commentId_example"; // String | Boolean includeEmail = true; // Boolean | Boolean includeIP = true; // Boolean | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPICommentResponse result = apiInstance.getModerationComment(commentId) + GetModerationCommentResponse result = apiInstance.getModerationComment(commentId) .includeEmail(includeEmail) .includeIP(includeIP) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -934,11 +963,12 @@ public class Example { | **commentId** | **String**| | | | **includeEmail** | **Boolean**| | [optional] | | **includeIP** | **Boolean**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationAPICommentResponse**](ModerationAPICommentResponse.md) +[**GetModerationCommentResponse**](GetModerationCommentResponse.md) ### Authorization @@ -953,11 +983,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getModerationCommentText** -> GetCommentTextResponse getModerationCommentText(commentId).sso(sso).execute(); +> GetModerationCommentTextResponse getModerationCommentText(commentId).tenantId(tenantId).sso(sso).execute(); @@ -977,9 +1006,11 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetCommentTextResponse result = apiInstance.getModerationCommentText(commentId) + GetModerationCommentTextResponse result = apiInstance.getModerationCommentText(commentId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -999,11 +1030,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**GetCommentTextResponse**](GetCommentTextResponse.md) +[**GetModerationCommentTextResponse**](GetModerationCommentTextResponse.md) ### Authorization @@ -1018,11 +1050,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getPreBanSummary** -> PreBanSummary getPreBanSummary(commentId).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).sso(sso).execute(); +> GetPreBanSummaryResponse getPreBanSummary(commentId).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).tenantId(tenantId).sso(sso).execute(); @@ -1045,12 +1076,14 @@ public class Example { Boolean includeByUserIdAndEmail = true; // Boolean | Boolean includeByIP = true; // Boolean | Boolean includeByEmailDomain = true; // Boolean | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PreBanSummary result = apiInstance.getPreBanSummary(commentId) + GetPreBanSummaryResponse result = apiInstance.getPreBanSummary(commentId) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1073,11 +1106,12 @@ public class Example { | **includeByUserIdAndEmail** | **Boolean**| | [optional] | | **includeByIP** | **Boolean**| | [optional] | | **includeByEmailDomain** | **Boolean**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**PreBanSummary**](PreBanSummary.md) +[**GetPreBanSummaryResponse**](GetPreBanSummaryResponse.md) ### Authorization @@ -1092,11 +1126,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getSearchCommentsSummary** -> ModerationCommentSearchResponse getSearchCommentsSummary().value(value).filters(filters).searchFilters(searchFilters).sso(sso).execute(); +> GetSearchCommentsSummaryResponse getSearchCommentsSummary().value(value).filters(filters).searchFilters(searchFilters).tenantId(tenantId).sso(sso).execute(); @@ -1118,12 +1151,14 @@ public class Example { String value = "value_example"; // String | String filters = "filters_example"; // String | String searchFilters = "searchFilters_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationCommentSearchResponse result = apiInstance.getSearchCommentsSummary() + GetSearchCommentsSummaryResponse result = apiInstance.getSearchCommentsSummary() .value(value) .filters(filters) .searchFilters(searchFilters) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1145,11 +1180,12 @@ public class Example { | **value** | **String**| | [optional] | | **filters** | **String**| | [optional] | | **searchFilters** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationCommentSearchResponse**](ModerationCommentSearchResponse.md) +[**GetSearchCommentsSummaryResponse**](GetSearchCommentsSummaryResponse.md) ### Authorization @@ -1164,11 +1200,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getSearchPages** -> ModerationPageSearchResponse getSearchPages().value(value).sso(sso).execute(); +> GetSearchPagesResponse getSearchPages().value(value).tenantId(tenantId).sso(sso).execute(); @@ -1188,10 +1223,12 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String value = "value_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationPageSearchResponse result = apiInstance.getSearchPages() + GetSearchPagesResponse result = apiInstance.getSearchPages() .value(value) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1211,11 +1248,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **value** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationPageSearchResponse**](ModerationPageSearchResponse.md) +[**GetSearchPagesResponse**](GetSearchPagesResponse.md) ### Authorization @@ -1230,11 +1268,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getSearchSites** -> ModerationSiteSearchResponse getSearchSites().value(value).sso(sso).execute(); +> GetSearchSitesResponse getSearchSites().value(value).tenantId(tenantId).sso(sso).execute(); @@ -1254,10 +1291,12 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String value = "value_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationSiteSearchResponse result = apiInstance.getSearchSites() + GetSearchSitesResponse result = apiInstance.getSearchSites() .value(value) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1277,11 +1316,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **value** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationSiteSearchResponse**](ModerationSiteSearchResponse.md) +[**GetSearchSitesResponse**](GetSearchSitesResponse.md) ### Authorization @@ -1296,11 +1336,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getSearchSuggest** -> ModerationSuggestResponse getSearchSuggest().textSearch(textSearch).sso(sso).execute(); +> GetSearchSuggestResponse getSearchSuggest().textSearch(textSearch).tenantId(tenantId).sso(sso).execute(); @@ -1320,10 +1359,12 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String textSearch = "textSearch_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationSuggestResponse result = apiInstance.getSearchSuggest() + GetSearchSuggestResponse result = apiInstance.getSearchSuggest() .textSearch(textSearch) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1343,11 +1384,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **textSearch** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationSuggestResponse**](ModerationSuggestResponse.md) +[**GetSearchSuggestResponse**](GetSearchSuggestResponse.md) ### Authorization @@ -1362,11 +1404,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getSearchUsers** -> ModerationUserSearchResponse getSearchUsers().value(value).sso(sso).execute(); +> GetSearchUsersResponse getSearchUsers().value(value).tenantId(tenantId).sso(sso).execute(); @@ -1386,10 +1427,12 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String value = "value_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationUserSearchResponse result = apiInstance.getSearchUsers() + GetSearchUsersResponse result = apiInstance.getSearchUsers() .value(value) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1409,11 +1452,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **value** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationUserSearchResponse**](ModerationUserSearchResponse.md) +[**GetSearchUsersResponse**](GetSearchUsersResponse.md) ### Authorization @@ -1428,11 +1472,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getTrustFactor** -> GetUserTrustFactorResponse getTrustFactor().userId(userId).sso(sso).execute(); +> GetTrustFactorResponse getTrustFactor().userId(userId).tenantId(tenantId).sso(sso).execute(); @@ -1452,10 +1495,12 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String userId = "userId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetUserTrustFactorResponse result = apiInstance.getTrustFactor() + GetTrustFactorResponse result = apiInstance.getTrustFactor() .userId(userId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1475,11 +1520,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **userId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**GetUserTrustFactorResponse**](GetUserTrustFactorResponse.md) +[**GetTrustFactorResponse**](GetTrustFactorResponse.md) ### Authorization @@ -1494,11 +1540,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getUserBanPreference** -> APIModerateGetUserBanPreferencesResponse getUserBanPreference().sso(sso).execute(); +> GetUserBanPreferenceResponse getUserBanPreference().tenantId(tenantId).sso(sso).execute(); @@ -1517,9 +1562,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIModerateGetUserBanPreferencesResponse result = apiInstance.getUserBanPreference() + GetUserBanPreferenceResponse result = apiInstance.getUserBanPreference() + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1538,11 +1585,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**APIModerateGetUserBanPreferencesResponse**](APIModerateGetUserBanPreferencesResponse.md) +[**GetUserBanPreferenceResponse**](GetUserBanPreferenceResponse.md) ### Authorization @@ -1557,11 +1605,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getUserInternalProfile** -> GetUserInternalProfileResponse getUserInternalProfile().commentId(commentId).sso(sso).execute(); +> GetUserInternalProfileResponse1 getUserInternalProfile().commentId(commentId).tenantId(tenantId).sso(sso).execute(); @@ -1581,10 +1628,12 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetUserInternalProfileResponse result = apiInstance.getUserInternalProfile() + GetUserInternalProfileResponse1 result = apiInstance.getUserInternalProfile() .commentId(commentId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1604,11 +1653,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**GetUserInternalProfileResponse**](GetUserInternalProfileResponse.md) +[**GetUserInternalProfileResponse1**](GetUserInternalProfileResponse1.md) ### Authorization @@ -1623,11 +1673,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postAdjustCommentVotes** -> AdjustVotesResponse postAdjustCommentVotes(commentId, adjustCommentVotesParams).sso(sso).execute(); +> PostAdjustCommentVotesResponse postAdjustCommentVotes(commentId, adjustCommentVotesParams).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -1648,9 +1697,13 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | AdjustCommentVotesParams adjustCommentVotesParams = new AdjustCommentVotesParams(); // AdjustCommentVotesParams | + String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - AdjustVotesResponse result = apiInstance.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + PostAdjustCommentVotesResponse result = apiInstance.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1671,11 +1724,13 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | | **adjustCommentVotesParams** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md)| | | +| **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**AdjustVotesResponse**](AdjustVotesResponse.md) +[**PostAdjustCommentVotesResponse**](PostAdjustCommentVotesResponse.md) ### Authorization @@ -1690,11 +1745,10 @@ No authorization required | 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(); +> PostApiExportResponse postApiExport().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).tenantId(tenantId).sso(sso).execute(); @@ -1718,14 +1772,16 @@ public class Example { String filters = "filters_example"; // String | String searchFilters = "searchFilters_example"; // String | String sorts = "sorts_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationExportResponse result = apiInstance.postApiExport() + PostApiExportResponse result = apiInstance.postApiExport() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) .searchFilters(searchFilters) .sorts(sorts) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1749,11 +1805,12 @@ public class Example { | **filters** | **String**| | [optional] | | **searchFilters** | **String**| | [optional] | | **sorts** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationExportResponse**](ModerationExportResponse.md) +[**PostApiExportResponse**](PostApiExportResponse.md) ### Authorization @@ -1768,11 +1825,10 @@ No authorization required | 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(); +> PostBanUserFromCommentResponse postBanUserFromComment(commentId).banEmail(banEmail).banEmailDomain(banEmailDomain).banIP(banIP).deleteAllUsersComments(deleteAllUsersComments).bannedUntil(bannedUntil).isShadowBan(isShadowBan).updateId(updateId).banReason(banReason).tenantId(tenantId).sso(sso).execute(); @@ -1800,9 +1856,10 @@ public class Example { Boolean isShadowBan = true; // Boolean | String updateId = "updateId_example"; // String | String banReason = "banReason_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - BanUserFromCommentResult result = apiInstance.postBanUserFromComment(commentId) + PostBanUserFromCommentResponse result = apiInstance.postBanUserFromComment(commentId) .banEmail(banEmail) .banEmailDomain(banEmailDomain) .banIP(banIP) @@ -1811,6 +1868,7 @@ public class Example { .isShadowBan(isShadowBan) .updateId(updateId) .banReason(banReason) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1838,11 +1896,12 @@ public class Example { | **isShadowBan** | **Boolean**| | [optional] | | **updateId** | **String**| | [optional] | | **banReason** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**BanUserFromCommentResult**](BanUserFromCommentResult.md) +[**PostBanUserFromCommentResponse**](PostBanUserFromCommentResponse.md) ### Authorization @@ -1857,11 +1916,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postBanUserUndo** -> APIEmptyResponse postBanUserUndo(banUserUndoParams).sso(sso).execute(); +> PostBanUserUndoResponse postBanUserUndo(banUserUndoParams).tenantId(tenantId).sso(sso).execute(); @@ -1881,9 +1939,11 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); BanUserUndoParams banUserUndoParams = new BanUserUndoParams(); // BanUserUndoParams | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postBanUserUndo(banUserUndoParams) + PostBanUserUndoResponse result = apiInstance.postBanUserUndo(banUserUndoParams) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1903,11 +1963,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **banUserUndoParams** | [**BanUserUndoParams**](BanUserUndoParams.md)| | | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostBanUserUndoResponse**](PostBanUserUndoResponse.md) ### Authorization @@ -1922,11 +1983,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postBulkPreBanSummary** -> BulkPreBanSummary postBulkPreBanSummary(bulkPreBanParams).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).sso(sso).execute(); +> PostBulkPreBanSummaryResponse postBulkPreBanSummary(bulkPreBanParams).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).tenantId(tenantId).sso(sso).execute(); @@ -1949,12 +2009,14 @@ public class Example { Boolean includeByUserIdAndEmail = true; // Boolean | Boolean includeByIP = true; // Boolean | Boolean includeByEmailDomain = true; // Boolean | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - BulkPreBanSummary result = apiInstance.postBulkPreBanSummary(bulkPreBanParams) + PostBulkPreBanSummaryResponse result = apiInstance.postBulkPreBanSummary(bulkPreBanParams) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1977,11 +2039,12 @@ public class Example { | **includeByUserIdAndEmail** | **Boolean**| | [optional] | | **includeByIP** | **Boolean**| | [optional] | | **includeByEmailDomain** | **Boolean**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**BulkPreBanSummary**](BulkPreBanSummary.md) +[**PostBulkPreBanSummaryResponse**](PostBulkPreBanSummaryResponse.md) ### Authorization @@ -1996,11 +2059,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postCommentsByIds** -> ModerationAPIChildCommentsResponse postCommentsByIds(commentsByIdsParams).sso(sso).execute(); +> PostCommentsByIdsResponse postCommentsByIds(commentsByIdsParams).tenantId(tenantId).sso(sso).execute(); @@ -2020,9 +2082,11 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); CommentsByIdsParams commentsByIdsParams = new CommentsByIdsParams(); // CommentsByIdsParams | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPIChildCommentsResponse result = apiInstance.postCommentsByIds(commentsByIdsParams) + PostCommentsByIdsResponse result = apiInstance.postCommentsByIds(commentsByIdsParams) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2042,11 +2106,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentsByIdsParams** | [**CommentsByIdsParams**](CommentsByIdsParams.md)| | | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) +[**PostCommentsByIdsResponse**](PostCommentsByIdsResponse.md) ### Authorization @@ -2061,11 +2126,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postFlagComment** -> APIEmptyResponse postFlagComment(commentId).sso(sso).execute(); +> PostFlagCommentResponse postFlagComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2085,9 +2149,13 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | + String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postFlagComment(commentId) + PostFlagCommentResponse result = apiInstance.postFlagComment(commentId) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2107,11 +2175,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | +| **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostFlagCommentResponse**](PostFlagCommentResponse.md) ### Authorization @@ -2126,11 +2196,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postRemoveComment** -> PostRemoveCommentResponse postRemoveComment(commentId).sso(sso).execute(); +> PostRemoveCommentResponse postRemoveComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2150,9 +2219,13 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | + String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { PostRemoveCommentResponse result = apiInstance.postRemoveComment(commentId) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2172,6 +2245,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | +| **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2191,11 +2266,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postRestoreDeletedComment** -> APIEmptyResponse postRestoreDeletedComment(commentId).sso(sso).execute(); +> PostRestoreDeletedCommentResponse postRestoreDeletedComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2215,9 +2289,13 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | + String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postRestoreDeletedComment(commentId) + PostRestoreDeletedCommentResponse result = apiInstance.postRestoreDeletedComment(commentId) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2237,11 +2315,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | +| **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostRestoreDeletedCommentResponse**](PostRestoreDeletedCommentResponse.md) ### Authorization @@ -2256,11 +2336,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postSetCommentApprovalStatus** -> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId).approved(approved).sso(sso).execute(); +> PostSetCommentApprovalStatusResponse postSetCommentApprovalStatus(commentId).approved(approved).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2281,10 +2360,14 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | Boolean approved = true; // Boolean | + String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - SetCommentApprovedResponse result = apiInstance.postSetCommentApprovalStatus(commentId) + PostSetCommentApprovalStatusResponse result = apiInstance.postSetCommentApprovalStatus(commentId) .approved(approved) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2305,11 +2388,13 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | | **approved** | **Boolean**| | [optional] | +| **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**SetCommentApprovedResponse**](SetCommentApprovedResponse.md) +[**PostSetCommentApprovalStatusResponse**](PostSetCommentApprovalStatusResponse.md) ### Authorization @@ -2324,11 +2409,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postSetCommentReviewStatus** -> APIEmptyResponse postSetCommentReviewStatus(commentId).reviewed(reviewed).sso(sso).execute(); +> PostSetCommentReviewStatusResponse postSetCommentReviewStatus(commentId).reviewed(reviewed).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2349,10 +2433,14 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | Boolean reviewed = true; // Boolean | + String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postSetCommentReviewStatus(commentId) + PostSetCommentReviewStatusResponse result = apiInstance.postSetCommentReviewStatus(commentId) .reviewed(reviewed) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2373,11 +2461,13 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | | **reviewed** | **Boolean**| | [optional] | +| **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostSetCommentReviewStatusResponse**](PostSetCommentReviewStatusResponse.md) ### Authorization @@ -2392,11 +2482,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postSetCommentSpamStatus** -> APIEmptyResponse postSetCommentSpamStatus(commentId).spam(spam).permNotSpam(permNotSpam).sso(sso).execute(); +> PostSetCommentSpamStatusResponse postSetCommentSpamStatus(commentId).spam(spam).permNotSpam(permNotSpam).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2418,11 +2507,15 @@ public class Example { String commentId = "commentId_example"; // String | Boolean spam = true; // Boolean | Boolean permNotSpam = true; // Boolean | + String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postSetCommentSpamStatus(commentId) + PostSetCommentSpamStatusResponse result = apiInstance.postSetCommentSpamStatus(commentId) .spam(spam) .permNotSpam(permNotSpam) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2444,11 +2537,13 @@ public class Example { | **commentId** | **String**| | | | **spam** | **Boolean**| | [optional] | | **permNotSpam** | **Boolean**| | [optional] | +| **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostSetCommentSpamStatusResponse**](PostSetCommentSpamStatusResponse.md) ### Authorization @@ -2463,11 +2558,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postSetCommentText** -> SetCommentTextResponse postSetCommentText(commentId, setCommentTextParams).sso(sso).execute(); +> PostSetCommentTextResponse postSetCommentText(commentId, setCommentTextParams).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2488,9 +2582,13 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | SetCommentTextParams setCommentTextParams = new SetCommentTextParams(); // SetCommentTextParams | + String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - SetCommentTextResponse result = apiInstance.postSetCommentText(commentId, setCommentTextParams) + PostSetCommentTextResponse result = apiInstance.postSetCommentText(commentId, setCommentTextParams) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2511,11 +2609,13 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | | **setCommentTextParams** | [**SetCommentTextParams**](SetCommentTextParams.md)| | | +| **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**SetCommentTextResponse**](SetCommentTextResponse.md) +[**PostSetCommentTextResponse**](PostSetCommentTextResponse.md) ### Authorization @@ -2530,11 +2630,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postUnFlagComment** -> APIEmptyResponse postUnFlagComment(commentId).sso(sso).execute(); +> PostUnFlagCommentResponse postUnFlagComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2554,9 +2653,13 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | + String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postUnFlagComment(commentId) + PostUnFlagCommentResponse result = apiInstance.postUnFlagComment(commentId) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2576,11 +2679,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | +| **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PostUnFlagCommentResponse**](PostUnFlagCommentResponse.md) ### Authorization @@ -2595,11 +2700,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **postVote** -> VoteResponse postVote(commentId).direction(direction).sso(sso).execute(); +> PostVoteResponse postVote(commentId).direction(direction).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2620,10 +2724,14 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String commentId = "commentId_example"; // String | String direction = "direction_example"; // String | + String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - VoteResponse result = apiInstance.postVote(commentId) + PostVoteResponse result = apiInstance.postVote(commentId) .direction(direction) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2644,11 +2752,13 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | | | **direction** | **String**| | [optional] | +| **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**VoteResponse**](VoteResponse.md) +[**PostVoteResponse**](PostVoteResponse.md) ### Authorization @@ -2663,11 +2773,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **putAwardBadge** -> AwardUserBadgeResponse putAwardBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).sso(sso).execute(); +> PutAwardBadgeResponse putAwardBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2690,12 +2799,14 @@ public class Example { String userId = "userId_example"; // String | String commentId = "commentId_example"; // String | String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - AwardUserBadgeResponse result = apiInstance.putAwardBadge(badgeId) + PutAwardBadgeResponse result = apiInstance.putAwardBadge(badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2718,11 +2829,12 @@ public class Example { | **userId** | **String**| | [optional] | | **commentId** | **String**| | [optional] | | **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**AwardUserBadgeResponse**](AwardUserBadgeResponse.md) +[**PutAwardBadgeResponse**](PutAwardBadgeResponse.md) ### Authorization @@ -2737,11 +2849,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **putCloseThread** -> APIEmptyResponse putCloseThread(urlId).sso(sso).execute(); +> PutCloseThreadResponse putCloseThread(urlId).tenantId(tenantId).sso(sso).execute(); @@ -2761,9 +2872,11 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String urlId = "urlId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.putCloseThread(urlId) + PutCloseThreadResponse result = apiInstance.putCloseThread(urlId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2783,11 +2896,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **urlId** | **String**| | | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PutCloseThreadResponse**](PutCloseThreadResponse.md) ### Authorization @@ -2802,11 +2916,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **putRemoveBadge** -> RemoveUserBadgeResponse putRemoveBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).sso(sso).execute(); +> PutRemoveBadgeResponse putRemoveBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2829,12 +2942,14 @@ public class Example { String userId = "userId_example"; // String | String commentId = "commentId_example"; // String | String broadcastId = "broadcastId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - RemoveUserBadgeResponse result = apiInstance.putRemoveBadge(badgeId) + PutRemoveBadgeResponse result = apiInstance.putRemoveBadge(badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2857,11 +2972,12 @@ public class Example { | **userId** | **String**| | [optional] | | **commentId** | **String**| | [optional] | | **broadcastId** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**RemoveUserBadgeResponse**](RemoveUserBadgeResponse.md) +[**PutRemoveBadgeResponse**](PutRemoveBadgeResponse.md) ### Authorization @@ -2876,11 +2992,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **putReopenThread** -> APIEmptyResponse putReopenThread(urlId).sso(sso).execute(); +> PutReopenThreadResponse putReopenThread(urlId).tenantId(tenantId).sso(sso).execute(); @@ -2900,9 +3015,11 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String urlId = "urlId_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.putReopenThread(urlId) + PutReopenThreadResponse result = apiInstance.putReopenThread(urlId) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2922,11 +3039,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **urlId** | **String**| | | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**PutReopenThreadResponse**](PutReopenThreadResponse.md) ### Authorization @@ -2941,11 +3059,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **setTrustFactor** -> SetUserTrustFactorResponse setTrustFactor().userId(userId).trustFactor(trustFactor).sso(sso).execute(); +> SetTrustFactorResponse setTrustFactor().userId(userId).trustFactor(trustFactor).tenantId(tenantId).sso(sso).execute(); @@ -2966,11 +3083,13 @@ public class Example { ModerationApi apiInstance = new ModerationApi(defaultClient); String userId = "userId_example"; // String | String trustFactor = "trustFactor_example"; // String | + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - SetUserTrustFactorResponse result = apiInstance.setTrustFactor() + SetTrustFactorResponse result = apiInstance.setTrustFactor() .userId(userId) .trustFactor(trustFactor) + .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2991,11 +3110,12 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **userId** | **String**| | [optional] | | **trustFactor** | **String**| | [optional] | +| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**SetUserTrustFactorResponse**](SetUserTrustFactorResponse.md) +[**SetTrustFactorResponse**](SetTrustFactorResponse.md) ### Authorization @@ -3010,5 +3130,4 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | diff --git a/client/docs/PatchHashTagResponse.md b/client/docs/PatchHashTagResponse.md new file mode 100644 index 00000000..2f602153 --- /dev/null +++ b/client/docs/PatchHashTagResponse.md @@ -0,0 +1,21 @@ + + +# PatchHashTagResponse + + +## 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/PinCommentResponse.md b/client/docs/PinCommentResponse.md new file mode 100644 index 00000000..e817b817 --- /dev/null +++ b/client/docs/PinCommentResponse.md @@ -0,0 +1,21 @@ + + +# PinCommentResponse + + +## 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/PostAdjustCommentVotesResponse.md b/client/docs/PostAdjustCommentVotesResponse.md new file mode 100644 index 00000000..2aa1c5b0 --- /dev/null +++ b/client/docs/PostAdjustCommentVotesResponse.md @@ -0,0 +1,21 @@ + + +# PostAdjustCommentVotesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**newCommentVotes** | **Integer** | | [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/PostApiExportResponse.md b/client/docs/PostApiExportResponse.md new file mode 100644 index 00000000..6339d3bc --- /dev/null +++ b/client/docs/PostApiExportResponse.md @@ -0,0 +1,21 @@ + + +# PostApiExportResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**batchJobId** | **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/PostBanUserFromCommentResponse.md b/client/docs/PostBanUserFromCommentResponse.md new file mode 100644 index 00000000..a77b92ce --- /dev/null +++ b/client/docs/PostBanUserFromCommentResponse.md @@ -0,0 +1,21 @@ + + +# PostBanUserFromCommentResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] | +|**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/PostBanUserUndoResponse.md b/client/docs/PostBanUserUndoResponse.md new file mode 100644 index 00000000..7336f30d --- /dev/null +++ b/client/docs/PostBanUserUndoResponse.md @@ -0,0 +1,20 @@ + + +# PostBanUserUndoResponse + + +## 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/PostBulkPreBanSummaryResponse.md b/client/docs/PostBulkPreBanSummaryResponse.md new file mode 100644 index 00000000..9ae5c32b --- /dev/null +++ b/client/docs/PostBulkPreBanSummaryResponse.md @@ -0,0 +1,25 @@ + + +# PostBulkPreBanSummaryResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**totalRelatedCommentCount** | **Integer** | | [optional] | +|**emailDomains** | **List<String>** | | [optional] | +|**emails** | **List<String>** | | [optional] | +|**userIds** | **List<String>** | | [optional] | +|**ipHashes** | **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/PostCommentsByIdsResponse.md b/client/docs/PostCommentsByIdsResponse.md new file mode 100644 index 00000000..439efeb0 --- /dev/null +++ b/client/docs/PostCommentsByIdsResponse.md @@ -0,0 +1,21 @@ + + +# PostCommentsByIdsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**comments** | [**List<ModerationAPIComment>**](ModerationAPIComment.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/PostFlagCommentResponse.md b/client/docs/PostFlagCommentResponse.md new file mode 100644 index 00000000..7c407905 --- /dev/null +++ b/client/docs/PostFlagCommentResponse.md @@ -0,0 +1,20 @@ + + +# PostFlagCommentResponse + + +## 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/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentResponse.md index ad9d1d96..594f9985 100644 --- a/client/docs/PostRemoveCommentResponse.md +++ b/client/docs/PostRemoveCommentResponse.md @@ -7,8 +7,15 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**action** | **String** | | | -|**status** | **String** | | | +|**action** | **String** | | [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/PostRestoreDeletedCommentResponse.md b/client/docs/PostRestoreDeletedCommentResponse.md new file mode 100644 index 00000000..cd38f850 --- /dev/null +++ b/client/docs/PostRestoreDeletedCommentResponse.md @@ -0,0 +1,20 @@ + + +# PostRestoreDeletedCommentResponse + + +## 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/PostSetCommentApprovalStatusResponse.md b/client/docs/PostSetCommentApprovalStatusResponse.md new file mode 100644 index 00000000..89089d9f --- /dev/null +++ b/client/docs/PostSetCommentApprovalStatusResponse.md @@ -0,0 +1,21 @@ + + +# PostSetCommentApprovalStatusResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**didResetFlaggedCount** | **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/PostSetCommentReviewStatusResponse.md b/client/docs/PostSetCommentReviewStatusResponse.md new file mode 100644 index 00000000..6fdef38a --- /dev/null +++ b/client/docs/PostSetCommentReviewStatusResponse.md @@ -0,0 +1,20 @@ + + +# PostSetCommentReviewStatusResponse + + +## 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/PostSetCommentSpamStatusResponse.md b/client/docs/PostSetCommentSpamStatusResponse.md new file mode 100644 index 00000000..0d6a901d --- /dev/null +++ b/client/docs/PostSetCommentSpamStatusResponse.md @@ -0,0 +1,20 @@ + + +# PostSetCommentSpamStatusResponse + + +## 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/PostSetCommentTextResponse.md b/client/docs/PostSetCommentTextResponse.md new file mode 100644 index 00000000..57c7d872 --- /dev/null +++ b/client/docs/PostSetCommentTextResponse.md @@ -0,0 +1,21 @@ + + +# PostSetCommentTextResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**newCommentTextHTML** | **String** | | [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/PostUnFlagCommentResponse.md b/client/docs/PostUnFlagCommentResponse.md new file mode 100644 index 00000000..bf4c35c4 --- /dev/null +++ b/client/docs/PostUnFlagCommentResponse.md @@ -0,0 +1,20 @@ + + +# PostUnFlagCommentResponse + + +## 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/PostVoteResponse.md b/client/docs/PostVoteResponse.md new file mode 100644 index 00000000..c1bce1fd --- /dev/null +++ b/client/docs/PostVoteResponse.md @@ -0,0 +1,24 @@ + + +# PostVoteResponse + + +## 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/docs/PublicApi.md b/client/docs/PublicApi.md index fc189e61..004f5345 100644 --- a/client/docs/PublicApi.md +++ b/client/docs/PublicApi.md @@ -61,7 +61,7 @@ All URIs are relative to *https://fastcomments.com* # **blockFromCommentPublic** -> BlockSuccess blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); +> BlockFromCommentPublicResponse blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); @@ -85,7 +85,7 @@ public class Example { PublicBlockFromCommentParams publicBlockFromCommentParams = new PublicBlockFromCommentParams(); // PublicBlockFromCommentParams | String sso = "sso_example"; // String | try { - BlockSuccess result = apiInstance.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + BlockFromCommentPublicResponse result = apiInstance.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); System.out.println(result); @@ -111,7 +111,7 @@ public class Example { ### Return type -[**BlockSuccess**](BlockSuccess.md) +[**BlockFromCommentPublicResponse**](BlockFromCommentPublicResponse.md) ### Authorization @@ -126,11 +126,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **checkedCommentsForBlocked** -> CheckBlockedCommentsResponse checkedCommentsForBlocked(tenantId, commentIds).sso(sso).execute(); +> CheckedCommentsForBlockedResponse checkedCommentsForBlocked(tenantId, commentIds).sso(sso).execute(); @@ -153,7 +152,7 @@ public class Example { String commentIds = "commentIds_example"; // String | A comma separated list of comment ids. String sso = "sso_example"; // String | try { - CheckBlockedCommentsResponse result = apiInstance.checkedCommentsForBlocked(tenantId, commentIds) + CheckedCommentsForBlockedResponse result = apiInstance.checkedCommentsForBlocked(tenantId, commentIds) .sso(sso) .execute(); System.out.println(result); @@ -178,7 +177,7 @@ public class Example { ### Return type -[**CheckBlockedCommentsResponse**](CheckBlockedCommentsResponse.md) +[**CheckedCommentsForBlockedResponse**](CheckedCommentsForBlockedResponse.md) ### Authorization @@ -193,11 +192,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createCommentPublic** -> SaveCommentsResponseWithPresence createCommentPublic(tenantId, urlId, broadcastId, commentData).sessionId(sessionId).sso(sso).execute(); +> CreateCommentPublicResponse createCommentPublic(tenantId, urlId, broadcastId, commentData).sessionId(sessionId).sso(sso).execute(); @@ -223,7 +221,7 @@ public class Example { String sessionId = "sessionId_example"; // String | String sso = "sso_example"; // String | try { - SaveCommentsResponseWithPresence result = apiInstance.createCommentPublic(tenantId, urlId, broadcastId, commentData) + CreateCommentPublicResponse result = apiInstance.createCommentPublic(tenantId, urlId, broadcastId, commentData) .sessionId(sessionId) .sso(sso) .execute(); @@ -252,7 +250,7 @@ public class Example { ### Return type -[**SaveCommentsResponseWithPresence**](SaveCommentsResponseWithPresence.md) +[**CreateCommentPublicResponse**](CreateCommentPublicResponse.md) ### Authorization @@ -267,11 +265,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createFeedPostPublic** -> CreateFeedPostResponse createFeedPostPublic(tenantId, createFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); +> CreateFeedPostPublicResponse createFeedPostPublic(tenantId, createFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); @@ -295,7 +292,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - CreateFeedPostResponse result = apiInstance.createFeedPostPublic(tenantId, createFeedPostParams) + CreateFeedPostPublicResponse result = apiInstance.createFeedPostPublic(tenantId, createFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); @@ -322,7 +319,7 @@ public class Example { ### Return type -[**CreateFeedPostResponse**](CreateFeedPostResponse.md) +[**CreateFeedPostPublicResponse**](CreateFeedPostPublicResponse.md) ### Authorization @@ -337,11 +334,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createV1PageReact** -> CreateV1PageReact createV1PageReact(tenantId, urlId).title(title).execute(); +> CreateV1PageReactResponse createV1PageReact(tenantId, urlId).title(title).execute(); @@ -364,7 +360,7 @@ public class Example { String urlId = "urlId_example"; // String | String title = "title_example"; // String | try { - CreateV1PageReact result = apiInstance.createV1PageReact(tenantId, urlId) + CreateV1PageReactResponse result = apiInstance.createV1PageReact(tenantId, urlId) .title(title) .execute(); System.out.println(result); @@ -389,7 +385,7 @@ public class Example { ### Return type -[**CreateV1PageReact**](CreateV1PageReact.md) +[**CreateV1PageReactResponse**](CreateV1PageReactResponse.md) ### Authorization @@ -404,11 +400,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **createV2PageReact** -> CreateV1PageReact createV2PageReact(tenantId, urlId, id).title(title).execute(); +> CreateV2PageReactResponse createV2PageReact(tenantId, urlId, id).title(title).execute(); @@ -432,7 +427,7 @@ public class Example { String id = "id_example"; // String | String title = "title_example"; // String | try { - CreateV1PageReact result = apiInstance.createV2PageReact(tenantId, urlId, id) + CreateV2PageReactResponse result = apiInstance.createV2PageReact(tenantId, urlId, id) .title(title) .execute(); System.out.println(result); @@ -458,7 +453,7 @@ public class Example { ### Return type -[**CreateV1PageReact**](CreateV1PageReact.md) +[**CreateV2PageReactResponse**](CreateV2PageReactResponse.md) ### Authorization @@ -473,11 +468,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteCommentPublic** -> PublicAPIDeleteCommentResponse deleteCommentPublic(tenantId, commentId, broadcastId).editKey(editKey).sso(sso).execute(); +> DeleteCommentPublicResponse deleteCommentPublic(tenantId, commentId, broadcastId).editKey(editKey).sso(sso).execute(); @@ -502,7 +496,7 @@ public class Example { String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | try { - PublicAPIDeleteCommentResponse result = apiInstance.deleteCommentPublic(tenantId, commentId, broadcastId) + DeleteCommentPublicResponse result = apiInstance.deleteCommentPublic(tenantId, commentId, broadcastId) .editKey(editKey) .sso(sso) .execute(); @@ -530,7 +524,7 @@ public class Example { ### Return type -[**PublicAPIDeleteCommentResponse**](PublicAPIDeleteCommentResponse.md) +[**DeleteCommentPublicResponse**](DeleteCommentPublicResponse.md) ### Authorization @@ -545,11 +539,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteCommentVote** -> VoteDeleteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId).editKey(editKey).sso(sso).execute(); +> DeleteCommentVoteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId).editKey(editKey).sso(sso).execute(); @@ -576,7 +569,7 @@ public class Example { String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | try { - VoteDeleteResponse result = apiInstance.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) + DeleteCommentVoteResponse result = apiInstance.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) .editKey(editKey) .sso(sso) .execute(); @@ -606,7 +599,7 @@ public class Example { ### Return type -[**VoteDeleteResponse**](VoteDeleteResponse.md) +[**DeleteCommentVoteResponse**](DeleteCommentVoteResponse.md) ### Authorization @@ -621,7 +614,6 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteFeedPostPublic** @@ -691,11 +683,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteV1PageReact** -> CreateV1PageReact deleteV1PageReact(tenantId, urlId).execute(); +> DeleteV1PageReactResponse deleteV1PageReact(tenantId, urlId).execute(); @@ -717,7 +708,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | try { - CreateV1PageReact result = apiInstance.deleteV1PageReact(tenantId, urlId) + DeleteV1PageReactResponse result = apiInstance.deleteV1PageReact(tenantId, urlId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -740,7 +731,7 @@ public class Example { ### Return type -[**CreateV1PageReact**](CreateV1PageReact.md) +[**DeleteV1PageReactResponse**](DeleteV1PageReactResponse.md) ### Authorization @@ -755,11 +746,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **deleteV2PageReact** -> CreateV1PageReact deleteV2PageReact(tenantId, urlId, id).execute(); +> DeleteV2PageReactResponse deleteV2PageReact(tenantId, urlId, id).execute(); @@ -782,7 +772,7 @@ public class Example { String urlId = "urlId_example"; // String | String id = "id_example"; // String | try { - CreateV1PageReact result = apiInstance.deleteV2PageReact(tenantId, urlId, id) + DeleteV2PageReactResponse result = apiInstance.deleteV2PageReact(tenantId, urlId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -806,7 +796,7 @@ public class Example { ### Return type -[**CreateV1PageReact**](CreateV1PageReact.md) +[**DeleteV2PageReactResponse**](DeleteV2PageReactResponse.md) ### Authorization @@ -821,11 +811,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **flagCommentPublic** -> APIEmptyResponse flagCommentPublic(tenantId, commentId, isFlagged).sso(sso).execute(); +> FlagCommentPublicResponse flagCommentPublic(tenantId, commentId, isFlagged).sso(sso).execute(); @@ -849,7 +838,7 @@ public class Example { Boolean isFlagged = true; // Boolean | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.flagCommentPublic(tenantId, commentId, isFlagged) + FlagCommentPublicResponse result = apiInstance.flagCommentPublic(tenantId, commentId, isFlagged) .sso(sso) .execute(); System.out.println(result); @@ -875,7 +864,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**FlagCommentPublicResponse**](FlagCommentPublicResponse.md) ### Authorization @@ -890,11 +879,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getCommentText** -> PublicAPIGetCommentTextResponse getCommentText(tenantId, commentId).editKey(editKey).sso(sso).execute(); +> GetCommentTextResponse1 getCommentText(tenantId, commentId).editKey(editKey).sso(sso).execute(); @@ -918,7 +906,7 @@ public class Example { String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | try { - PublicAPIGetCommentTextResponse result = apiInstance.getCommentText(tenantId, commentId) + GetCommentTextResponse1 result = apiInstance.getCommentText(tenantId, commentId) .editKey(editKey) .sso(sso) .execute(); @@ -945,7 +933,7 @@ public class Example { ### Return type -[**PublicAPIGetCommentTextResponse**](PublicAPIGetCommentTextResponse.md) +[**GetCommentTextResponse1**](GetCommentTextResponse1.md) ### Authorization @@ -960,11 +948,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getCommentVoteUserNames** -> GetCommentVoteUserNamesSuccessResponse getCommentVoteUserNames(tenantId, commentId, dir).sso(sso).execute(); +> GetCommentVoteUserNamesResponse getCommentVoteUserNames(tenantId, commentId, dir).sso(sso).execute(); @@ -988,7 +975,7 @@ public class Example { Integer dir = 56; // Integer | String sso = "sso_example"; // String | try { - GetCommentVoteUserNamesSuccessResponse result = apiInstance.getCommentVoteUserNames(tenantId, commentId, dir) + GetCommentVoteUserNamesResponse result = apiInstance.getCommentVoteUserNames(tenantId, commentId, dir) .sso(sso) .execute(); System.out.println(result); @@ -1014,7 +1001,7 @@ public class Example { ### Return type -[**GetCommentVoteUserNamesSuccessResponse**](GetCommentVoteUserNamesSuccessResponse.md) +[**GetCommentVoteUserNamesResponse**](GetCommentVoteUserNamesResponse.md) ### Authorization @@ -1029,11 +1016,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getCommentsForUser** -> GetCommentsForUserResponse getCommentsForUser().userId(userId).direction(direction).repliesToUserId(repliesToUserId).page(page).includei10n(includei10n).locale(locale).isCrawler(isCrawler).execute(); +> GetCommentsForUserResponse1 getCommentsForUser().userId(userId).direction(direction).repliesToUserId(repliesToUserId).page(page).includei10n(includei10n).locale(locale).isCrawler(isCrawler).execute(); @@ -1060,7 +1046,7 @@ public class Example { String locale = "locale_example"; // String | Boolean isCrawler = true; // Boolean | try { - GetCommentsForUserResponse result = apiInstance.getCommentsForUser() + GetCommentsForUserResponse1 result = apiInstance.getCommentsForUser() .userId(userId) .direction(direction) .repliesToUserId(repliesToUserId) @@ -1095,7 +1081,7 @@ public class Example { ### Return type -[**GetCommentsForUserResponse**](GetCommentsForUserResponse.md) +[**GetCommentsForUserResponse1**](GetCommentsForUserResponse1.md) ### Authorization @@ -1110,11 +1096,10 @@ No authorization required | 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(); +> GetCommentsPublicResponse 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(); @@ -1164,7 +1149,7 @@ public class Example { String afterCommentId = "afterCommentId_example"; // String | String beforeCommentId = "beforeCommentId_example"; // String | try { - GetCommentsResponseWithPresencePublicComment result = apiInstance.getCommentsPublic(tenantId, urlId) + GetCommentsPublicResponse result = apiInstance.getCommentsPublic(tenantId, urlId) .page(page) .direction(direction) .sso(sso) @@ -1239,7 +1224,7 @@ public class Example { ### Return type -[**GetCommentsResponseWithPresencePublicComment**](GetCommentsResponseWithPresencePublicComment.md) +[**GetCommentsPublicResponse**](GetCommentsPublicResponse.md) ### Authorization @@ -1254,11 +1239,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getEventLog** -> GetEventLogResponse getEventLog(tenantId, urlId, userIdWS, startTime).endTime(endTime).execute(); +> GetEventLogResponse1 getEventLog(tenantId, urlId, userIdWS, startTime).endTime(endTime).execute(); @@ -1285,7 +1269,7 @@ public class Example { Long startTime = 56L; // Long | Long endTime = 56L; // Long | try { - GetEventLogResponse result = apiInstance.getEventLog(tenantId, urlId, userIdWS, startTime) + GetEventLogResponse1 result = apiInstance.getEventLog(tenantId, urlId, userIdWS, startTime) .endTime(endTime) .execute(); System.out.println(result); @@ -1312,7 +1296,7 @@ public class Example { ### Return type -[**GetEventLogResponse**](GetEventLogResponse.md) +[**GetEventLogResponse1**](GetEventLogResponse1.md) ### Authorization @@ -1327,11 +1311,10 @@ No authorization required | 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(); +> GetFeedPostsPublicResponse getFeedPostsPublic(tenantId).afterId(afterId).limit(limit).tags(tags).sso(sso).isCrawler(isCrawler).includeUserInfo(includeUserInfo).execute(); @@ -1360,7 +1343,7 @@ public class Example { Boolean isCrawler = true; // Boolean | Boolean includeUserInfo = true; // Boolean | try { - PublicFeedPostsResponse result = apiInstance.getFeedPostsPublic(tenantId) + GetFeedPostsPublicResponse result = apiInstance.getFeedPostsPublic(tenantId) .afterId(afterId) .limit(limit) .tags(tags) @@ -1394,7 +1377,7 @@ public class Example { ### Return type -[**PublicFeedPostsResponse**](PublicFeedPostsResponse.md) +[**GetFeedPostsPublicResponse**](GetFeedPostsPublicResponse.md) ### Authorization @@ -1409,11 +1392,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getFeedPostsStats** -> FeedPostsStatsResponse getFeedPostsStats(tenantId, postIds).sso(sso).execute(); +> GetFeedPostsStatsResponse getFeedPostsStats(tenantId, postIds).sso(sso).execute(); @@ -1436,7 +1418,7 @@ public class Example { List postIds = Arrays.asList(); // List | String sso = "sso_example"; // String | try { - FeedPostsStatsResponse result = apiInstance.getFeedPostsStats(tenantId, postIds) + GetFeedPostsStatsResponse result = apiInstance.getFeedPostsStats(tenantId, postIds) .sso(sso) .execute(); System.out.println(result); @@ -1461,7 +1443,7 @@ public class Example { ### Return type -[**FeedPostsStatsResponse**](FeedPostsStatsResponse.md) +[**GetFeedPostsStatsResponse**](GetFeedPostsStatsResponse.md) ### Authorization @@ -1476,11 +1458,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getGifLarge** -> GifGetLargeResponse getGifLarge(tenantId, largeInternalURLSanitized).execute(); +> GetGifLargeResponse getGifLarge(tenantId, largeInternalURLSanitized).execute(); @@ -1502,7 +1483,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String largeInternalURLSanitized = "largeInternalURLSanitized_example"; // String | try { - GifGetLargeResponse result = apiInstance.getGifLarge(tenantId, largeInternalURLSanitized) + GetGifLargeResponse result = apiInstance.getGifLarge(tenantId, largeInternalURLSanitized) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1525,7 +1506,7 @@ public class Example { ### Return type -[**GifGetLargeResponse**](GifGetLargeResponse.md) +[**GetGifLargeResponse**](GetGifLargeResponse.md) ### Authorization @@ -1541,7 +1522,6 @@ No authorization required |-------------|-------------|------------------| | **200** | Ok | - | | **422** | Validation Failed | - | -| **0** | Error | - | # **getGifsSearch** @@ -1615,7 +1595,6 @@ No authorization required |-------------|-------------|------------------| | **200** | Ok | - | | **422** | Validation Failed | - | -| **0** | Error | - | # **getGifsTrending** @@ -1689,7 +1668,7 @@ No authorization required # **getGlobalEventLog** -> GetEventLogResponse getGlobalEventLog(tenantId, urlId, userIdWS, startTime).endTime(endTime).execute(); +> GetGlobalEventLogResponse getGlobalEventLog(tenantId, urlId, userIdWS, startTime).endTime(endTime).execute(); @@ -1716,7 +1695,7 @@ public class Example { Long startTime = 56L; // Long | Long endTime = 56L; // Long | try { - GetEventLogResponse result = apiInstance.getGlobalEventLog(tenantId, urlId, userIdWS, startTime) + GetGlobalEventLogResponse result = apiInstance.getGlobalEventLog(tenantId, urlId, userIdWS, startTime) .endTime(endTime) .execute(); System.out.println(result); @@ -1743,7 +1722,7 @@ public class Example { ### Return type -[**GetEventLogResponse**](GetEventLogResponse.md) +[**GetGlobalEventLogResponse**](GetGlobalEventLogResponse.md) ### Authorization @@ -1758,11 +1737,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getOfflineUsers** -> PageUsersOfflineResponse getOfflineUsers(tenantId, urlId).afterName(afterName).afterUserId(afterUserId).execute(); +> GetOfflineUsersResponse getOfflineUsers(tenantId, urlId).afterName(afterName).afterUserId(afterUserId).execute(); @@ -1788,7 +1766,7 @@ public class Example { 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) + GetOfflineUsersResponse result = apiInstance.getOfflineUsers(tenantId, urlId) .afterName(afterName) .afterUserId(afterUserId) .execute(); @@ -1815,7 +1793,7 @@ public class Example { ### Return type -[**PageUsersOfflineResponse**](PageUsersOfflineResponse.md) +[**GetOfflineUsersResponse**](GetOfflineUsersResponse.md) ### Authorization @@ -1832,11 +1810,10 @@ No authorization required | **200** | Ok | - | | **403** | Forbidden | - | | **422** | Validation Failed | - | -| **0** | Error | - | # **getOnlineUsers** -> PageUsersOnlineResponse getOnlineUsers(tenantId, urlId).afterName(afterName).afterUserId(afterUserId).execute(); +> GetOnlineUsersResponse getOnlineUsers(tenantId, urlId).afterName(afterName).afterUserId(afterUserId).execute(); @@ -1862,7 +1839,7 @@ public class Example { 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) + GetOnlineUsersResponse result = apiInstance.getOnlineUsers(tenantId, urlId) .afterName(afterName) .afterUserId(afterUserId) .execute(); @@ -1889,7 +1866,7 @@ public class Example { ### Return type -[**PageUsersOnlineResponse**](PageUsersOnlineResponse.md) +[**GetOnlineUsersResponse**](GetOnlineUsersResponse.md) ### Authorization @@ -1906,11 +1883,10 @@ No authorization required | **200** | Ok | - | | **403** | Forbidden | - | | **422** | Validation Failed | - | -| **0** | Error | - | # **getPagesPublic** -> GetPublicPagesResponse getPagesPublic(tenantId).cursor(cursor).limit(limit).q(q).sortBy(sortBy).hasComments(hasComments).execute(); +> GetPagesPublicResponse getPagesPublic(tenantId).cursor(cursor).limit(limit).q(q).sortBy(sortBy).hasComments(hasComments).execute(); @@ -1938,7 +1914,7 @@ public class Example { 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) + GetPagesPublicResponse result = apiInstance.getPagesPublic(tenantId) .cursor(cursor) .limit(limit) .q(q) @@ -1970,7 +1946,7 @@ public class Example { ### Return type -[**GetPublicPagesResponse**](GetPublicPagesResponse.md) +[**GetPagesPublicResponse**](GetPagesPublicResponse.md) ### Authorization @@ -1985,11 +1961,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getTranslations** -> GetTranslationsResponse getTranslations(namespace, component).locale(locale).useFullTranslationIds(useFullTranslationIds).execute(); +> GetTranslationsResponse1 getTranslations(namespace, component).locale(locale).useFullTranslationIds(useFullTranslationIds).execute(); @@ -2013,7 +1988,7 @@ public class Example { String locale = "locale_example"; // String | Boolean useFullTranslationIds = true; // Boolean | try { - GetTranslationsResponse result = apiInstance.getTranslations(namespace, component) + GetTranslationsResponse1 result = apiInstance.getTranslations(namespace, component) .locale(locale) .useFullTranslationIds(useFullTranslationIds) .execute(); @@ -2040,7 +2015,7 @@ public class Example { ### Return type -[**GetTranslationsResponse**](GetTranslationsResponse.md) +[**GetTranslationsResponse1**](GetTranslationsResponse1.md) ### Authorization @@ -2057,11 +2032,10 @@ No authorization required | **200** | Ok | - | | **422** | Validation Failed | - | | **500** | Internal | - | -| **0** | Error | - | # **getUserNotificationCount** -> GetUserNotificationCountResponse getUserNotificationCount(tenantId).sso(sso).execute(); +> GetUserNotificationCountResponse1 getUserNotificationCount(tenantId).sso(sso).execute(); @@ -2083,7 +2057,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetUserNotificationCountResponse result = apiInstance.getUserNotificationCount(tenantId) + GetUserNotificationCountResponse1 result = apiInstance.getUserNotificationCount(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2107,7 +2081,7 @@ public class Example { ### Return type -[**GetUserNotificationCountResponse**](GetUserNotificationCountResponse.md) +[**GetUserNotificationCountResponse1**](GetUserNotificationCountResponse1.md) ### Authorization @@ -2122,11 +2096,10 @@ No authorization required | 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(); +> GetUserNotificationsResponse 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(); @@ -2158,7 +2131,7 @@ public class Example { Boolean includeTenantNotifications = true; // Boolean | String sso = "sso_example"; // String | try { - GetMyNotificationsResponse result = apiInstance.getUserNotifications(tenantId) + GetUserNotificationsResponse result = apiInstance.getUserNotifications(tenantId) .urlId(urlId) .pageSize(pageSize) .afterId(afterId) @@ -2202,7 +2175,7 @@ public class Example { ### Return type -[**GetMyNotificationsResponse**](GetMyNotificationsResponse.md) +[**GetUserNotificationsResponse**](GetUserNotificationsResponse.md) ### Authorization @@ -2217,11 +2190,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getUserPresenceStatuses** -> GetUserPresenceStatusesResponse getUserPresenceStatuses(tenantId, urlIdWS, userIds).execute(); +> GetUserPresenceStatusesResponse1 getUserPresenceStatuses(tenantId, urlIdWS, userIds).execute(); @@ -2244,7 +2216,7 @@ public class Example { String urlIdWS = "urlIdWS_example"; // String | String userIds = "userIds_example"; // String | try { - GetUserPresenceStatusesResponse result = apiInstance.getUserPresenceStatuses(tenantId, urlIdWS, userIds) + GetUserPresenceStatusesResponse1 result = apiInstance.getUserPresenceStatuses(tenantId, urlIdWS, userIds) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2268,7 +2240,7 @@ public class Example { ### Return type -[**GetUserPresenceStatusesResponse**](GetUserPresenceStatusesResponse.md) +[**GetUserPresenceStatusesResponse1**](GetUserPresenceStatusesResponse1.md) ### Authorization @@ -2284,11 +2256,10 @@ No authorization required |-------------|-------------|------------------| | **200** | Ok | - | | **422** | Validation Failed | - | -| **0** | Error | - | # **getUserReactsPublic** -> UserReactsResponse getUserReactsPublic(tenantId).postIds(postIds).sso(sso).execute(); +> GetUserReactsPublicResponse getUserReactsPublic(tenantId).postIds(postIds).sso(sso).execute(); @@ -2311,7 +2282,7 @@ public class Example { List postIds = Arrays.asList(); // List | String sso = "sso_example"; // String | try { - UserReactsResponse result = apiInstance.getUserReactsPublic(tenantId) + GetUserReactsPublicResponse result = apiInstance.getUserReactsPublic(tenantId) .postIds(postIds) .sso(sso) .execute(); @@ -2337,7 +2308,7 @@ public class Example { ### Return type -[**UserReactsResponse**](UserReactsResponse.md) +[**GetUserReactsPublicResponse**](GetUserReactsPublicResponse.md) ### Authorization @@ -2352,11 +2323,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getUsersInfo** -> PageUsersInfoResponse getUsersInfo(tenantId, ids).execute(); +> GetUsersInfoResponse getUsersInfo(tenantId, ids).execute(); @@ -2380,7 +2350,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String ids = "ids_example"; // String | Comma-delimited userIds. try { - PageUsersInfoResponse result = apiInstance.getUsersInfo(tenantId, ids) + GetUsersInfoResponse result = apiInstance.getUsersInfo(tenantId, ids) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2403,7 +2373,7 @@ public class Example { ### Return type -[**PageUsersInfoResponse**](PageUsersInfoResponse.md) +[**GetUsersInfoResponse**](GetUsersInfoResponse.md) ### Authorization @@ -2419,11 +2389,10 @@ No authorization required |-------------|-------------|------------------| | **200** | Ok | - | | **422** | Validation Failed | - | -| **0** | Error | - | # **getV1PageLikes** -> GetV1PageLikes getV1PageLikes(tenantId, urlId).execute(); +> GetV1PageLikesResponse getV1PageLikes(tenantId, urlId).execute(); @@ -2445,7 +2414,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | try { - GetV1PageLikes result = apiInstance.getV1PageLikes(tenantId, urlId) + GetV1PageLikesResponse result = apiInstance.getV1PageLikes(tenantId, urlId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2468,7 +2437,7 @@ public class Example { ### Return type -[**GetV1PageLikes**](GetV1PageLikes.md) +[**GetV1PageLikesResponse**](GetV1PageLikesResponse.md) ### Authorization @@ -2483,11 +2452,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getV2PageReactUsers** -> GetV2PageReactUsersResponse getV2PageReactUsers(tenantId, urlId, id).execute(); +> GetV2PageReactUsersResponse1 getV2PageReactUsers(tenantId, urlId, id).execute(); @@ -2510,7 +2478,7 @@ public class Example { String urlId = "urlId_example"; // String | String id = "id_example"; // String | try { - GetV2PageReactUsersResponse result = apiInstance.getV2PageReactUsers(tenantId, urlId, id) + GetV2PageReactUsersResponse1 result = apiInstance.getV2PageReactUsers(tenantId, urlId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2534,7 +2502,7 @@ public class Example { ### Return type -[**GetV2PageReactUsersResponse**](GetV2PageReactUsersResponse.md) +[**GetV2PageReactUsersResponse1**](GetV2PageReactUsersResponse1.md) ### Authorization @@ -2549,11 +2517,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **getV2PageReacts** -> GetV2PageReacts getV2PageReacts(tenantId, urlId).execute(); +> GetV2PageReactsResponse getV2PageReacts(tenantId, urlId).execute(); @@ -2575,7 +2542,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | try { - GetV2PageReacts result = apiInstance.getV2PageReacts(tenantId, urlId) + GetV2PageReactsResponse result = apiInstance.getV2PageReacts(tenantId, urlId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2598,7 +2565,7 @@ public class Example { ### Return type -[**GetV2PageReacts**](GetV2PageReacts.md) +[**GetV2PageReactsResponse**](GetV2PageReactsResponse.md) ### Authorization @@ -2613,11 +2580,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **lockComment** -> APIEmptyResponse lockComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> LockCommentResponse lockComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -2641,7 +2607,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.lockComment(tenantId, commentId, broadcastId) + LockCommentResponse result = apiInstance.lockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2667,7 +2633,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**LockCommentResponse**](LockCommentResponse.md) ### Authorization @@ -2682,7 +2648,6 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **logoutPublic** @@ -2743,7 +2708,7 @@ No authorization required # **pinComment** -> ChangeCommentPinStatusResponse pinComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> PinCommentResponse pinComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -2767,7 +2732,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - ChangeCommentPinStatusResponse result = apiInstance.pinComment(tenantId, commentId, broadcastId) + PinCommentResponse result = apiInstance.pinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2793,7 +2758,7 @@ public class Example { ### Return type -[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) +[**PinCommentResponse**](PinCommentResponse.md) ### Authorization @@ -2808,11 +2773,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **reactFeedPostPublic** -> ReactFeedPostResponse reactFeedPostPublic(tenantId, postId, reactBodyParams).isUndo(isUndo).broadcastId(broadcastId).sso(sso).execute(); +> ReactFeedPostPublicResponse reactFeedPostPublic(tenantId, postId, reactBodyParams).isUndo(isUndo).broadcastId(broadcastId).sso(sso).execute(); @@ -2838,7 +2802,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - ReactFeedPostResponse result = apiInstance.reactFeedPostPublic(tenantId, postId, reactBodyParams) + ReactFeedPostPublicResponse result = apiInstance.reactFeedPostPublic(tenantId, postId, reactBodyParams) .isUndo(isUndo) .broadcastId(broadcastId) .sso(sso) @@ -2868,7 +2832,7 @@ public class Example { ### Return type -[**ReactFeedPostResponse**](ReactFeedPostResponse.md) +[**ReactFeedPostPublicResponse**](ReactFeedPostPublicResponse.md) ### Authorization @@ -2883,11 +2847,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **resetUserNotificationCount** -> ResetUserNotificationsResponse resetUserNotificationCount(tenantId).sso(sso).execute(); +> ResetUserNotificationCountResponse resetUserNotificationCount(tenantId).sso(sso).execute(); @@ -2909,7 +2872,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ResetUserNotificationsResponse result = apiInstance.resetUserNotificationCount(tenantId) + ResetUserNotificationCountResponse result = apiInstance.resetUserNotificationCount(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2933,7 +2896,7 @@ public class Example { ### Return type -[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) +[**ResetUserNotificationCountResponse**](ResetUserNotificationCountResponse.md) ### Authorization @@ -2948,11 +2911,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **resetUserNotifications** -> ResetUserNotificationsResponse resetUserNotifications(tenantId).afterId(afterId).afterCreatedAt(afterCreatedAt).unreadOnly(unreadOnly).dmOnly(dmOnly).noDm(noDm).sso(sso).execute(); +> ResetUserNotificationsResponse1 resetUserNotifications(tenantId).afterId(afterId).afterCreatedAt(afterCreatedAt).unreadOnly(unreadOnly).dmOnly(dmOnly).noDm(noDm).sso(sso).execute(); @@ -2979,7 +2941,7 @@ public class Example { Boolean noDm = true; // Boolean | String sso = "sso_example"; // String | try { - ResetUserNotificationsResponse result = apiInstance.resetUserNotifications(tenantId) + ResetUserNotificationsResponse1 result = apiInstance.resetUserNotifications(tenantId) .afterId(afterId) .afterCreatedAt(afterCreatedAt) .unreadOnly(unreadOnly) @@ -3013,7 +2975,7 @@ public class Example { ### Return type -[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) +[**ResetUserNotificationsResponse1**](ResetUserNotificationsResponse1.md) ### Authorization @@ -3028,11 +2990,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **searchUsers** -> SearchUsersResult searchUsers(tenantId, urlId).usernameStartsWith(usernameStartsWith).mentionGroupIds(mentionGroupIds).sso(sso).searchSection(searchSection).execute(); +> SearchUsersResponse1 searchUsers(tenantId, urlId).usernameStartsWith(usernameStartsWith).mentionGroupIds(mentionGroupIds).sso(sso).searchSection(searchSection).execute(); @@ -3058,7 +3019,7 @@ public class Example { String sso = "sso_example"; // String | String searchSection = "fast"; // String | try { - SearchUsersResult result = apiInstance.searchUsers(tenantId, urlId) + SearchUsersResponse1 result = apiInstance.searchUsers(tenantId, urlId) .usernameStartsWith(usernameStartsWith) .mentionGroupIds(mentionGroupIds) .sso(sso) @@ -3089,7 +3050,7 @@ public class Example { ### Return type -[**SearchUsersResult**](SearchUsersResult.md) +[**SearchUsersResponse1**](SearchUsersResponse1.md) ### Authorization @@ -3104,11 +3065,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **setCommentText** -> PublicAPISetCommentTextResponse setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest).editKey(editKey).sso(sso).execute(); +> SetCommentTextResponse1 setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest).editKey(editKey).sso(sso).execute(); @@ -3134,7 +3094,7 @@ public class Example { String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | try { - PublicAPISetCommentTextResponse result = apiInstance.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) + SetCommentTextResponse1 result = apiInstance.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) .editKey(editKey) .sso(sso) .execute(); @@ -3163,7 +3123,7 @@ public class Example { ### Return type -[**PublicAPISetCommentTextResponse**](PublicAPISetCommentTextResponse.md) +[**SetCommentTextResponse1**](SetCommentTextResponse1.md) ### Authorization @@ -3178,11 +3138,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **unBlockCommentPublic** -> UnblockSuccess unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); +> UnBlockCommentPublicResponse unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); @@ -3206,7 +3165,7 @@ public class Example { PublicBlockFromCommentParams publicBlockFromCommentParams = new PublicBlockFromCommentParams(); // PublicBlockFromCommentParams | String sso = "sso_example"; // String | try { - UnblockSuccess result = apiInstance.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + UnBlockCommentPublicResponse result = apiInstance.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); System.out.println(result); @@ -3232,7 +3191,7 @@ public class Example { ### Return type -[**UnblockSuccess**](UnblockSuccess.md) +[**UnBlockCommentPublicResponse**](UnBlockCommentPublicResponse.md) ### Authorization @@ -3247,11 +3206,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **unLockComment** -> APIEmptyResponse unLockComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> UnLockCommentResponse unLockComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -3275,7 +3233,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.unLockComment(tenantId, commentId, broadcastId) + UnLockCommentResponse result = apiInstance.unLockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -3301,7 +3259,7 @@ public class Example { ### Return type -[**APIEmptyResponse**](APIEmptyResponse.md) +[**UnLockCommentResponse**](UnLockCommentResponse.md) ### Authorization @@ -3316,11 +3274,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **unPinComment** -> ChangeCommentPinStatusResponse unPinComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> UnPinCommentResponse unPinComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -3344,7 +3301,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - ChangeCommentPinStatusResponse result = apiInstance.unPinComment(tenantId, commentId, broadcastId) + UnPinCommentResponse result = apiInstance.unPinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -3370,7 +3327,7 @@ public class Example { ### Return type -[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) +[**UnPinCommentResponse**](UnPinCommentResponse.md) ### Authorization @@ -3385,11 +3342,10 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateFeedPostPublic** -> CreateFeedPostResponse updateFeedPostPublic(tenantId, postId, updateFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); +> UpdateFeedPostPublicResponse updateFeedPostPublic(tenantId, postId, updateFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); @@ -3414,7 +3370,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - CreateFeedPostResponse result = apiInstance.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) + UpdateFeedPostPublicResponse result = apiInstance.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); @@ -3442,7 +3398,7 @@ public class Example { ### Return type -[**CreateFeedPostResponse**](CreateFeedPostResponse.md) +[**UpdateFeedPostPublicResponse**](UpdateFeedPostPublicResponse.md) ### Authorization @@ -3457,7 +3413,6 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateUserNotificationCommentSubscriptionStatus** @@ -3530,7 +3485,6 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateUserNotificationPageSubscriptionStatus** @@ -3605,7 +3559,6 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **updateUserNotificationStatus** @@ -3674,7 +3627,6 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | # **uploadImage** @@ -3749,7 +3701,7 @@ No authorization required # **voteComment** -> VoteResponse voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams).sessionId(sessionId).sso(sso).execute(); +> VoteCommentResponse voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams).sessionId(sessionId).sso(sso).execute(); @@ -3776,7 +3728,7 @@ public class Example { String sessionId = "sessionId_example"; // String | String sso = "sso_example"; // String | try { - VoteResponse result = apiInstance.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams) + VoteCommentResponse result = apiInstance.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams) .sessionId(sessionId) .sso(sso) .execute(); @@ -3806,7 +3758,7 @@ public class Example { ### Return type -[**VoteResponse**](VoteResponse.md) +[**VoteCommentResponse**](VoteCommentResponse.md) ### Authorization @@ -3821,5 +3773,4 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | -| **0** | Error | - | diff --git a/client/docs/PutAwardBadgeResponse.md b/client/docs/PutAwardBadgeResponse.md new file mode 100644 index 00000000..b9461336 --- /dev/null +++ b/client/docs/PutAwardBadgeResponse.md @@ -0,0 +1,22 @@ + + +# PutAwardBadgeResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**notes** | **List<String>** | | [optional] | +|**badges** | [**List<CommentUserBadgeInfo>**](CommentUserBadgeInfo.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/PutCloseThreadResponse.md b/client/docs/PutCloseThreadResponse.md new file mode 100644 index 00000000..ecc485ad --- /dev/null +++ b/client/docs/PutCloseThreadResponse.md @@ -0,0 +1,20 @@ + + +# PutCloseThreadResponse + + +## 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/PutRemoveBadgeResponse.md b/client/docs/PutRemoveBadgeResponse.md new file mode 100644 index 00000000..3261a30e --- /dev/null +++ b/client/docs/PutRemoveBadgeResponse.md @@ -0,0 +1,21 @@ + + +# PutRemoveBadgeResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**badges** | [**List<CommentUserBadgeInfo>**](CommentUserBadgeInfo.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/PutReopenThreadResponse.md b/client/docs/PutReopenThreadResponse.md new file mode 100644 index 00000000..eb3a9ef4 --- /dev/null +++ b/client/docs/PutReopenThreadResponse.md @@ -0,0 +1,20 @@ + + +# PutReopenThreadResponse + + +## 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/ReactFeedPostPublicResponse.md b/client/docs/ReactFeedPostPublicResponse.md new file mode 100644 index 00000000..473cd2d5 --- /dev/null +++ b/client/docs/ReactFeedPostPublicResponse.md @@ -0,0 +1,22 @@ + + +# ReactFeedPostPublicResponse + + +## 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/RenderEmailTemplateResponse1.md b/client/docs/RenderEmailTemplateResponse1.md new file mode 100644 index 00000000..64c5b1eb --- /dev/null +++ b/client/docs/RenderEmailTemplateResponse1.md @@ -0,0 +1,21 @@ + + +# RenderEmailTemplateResponse1 + + +## 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/ReplaceTenantPackageResponse.md b/client/docs/ReplaceTenantPackageResponse.md new file mode 100644 index 00000000..36785984 --- /dev/null +++ b/client/docs/ReplaceTenantPackageResponse.md @@ -0,0 +1,20 @@ + + +# ReplaceTenantPackageResponse + + +## 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/ReplaceTenantUserResponse.md b/client/docs/ReplaceTenantUserResponse.md new file mode 100644 index 00000000..a6cabac8 --- /dev/null +++ b/client/docs/ReplaceTenantUserResponse.md @@ -0,0 +1,20 @@ + + +# ReplaceTenantUserResponse + + +## 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/ResetUserNotificationCountResponse.md b/client/docs/ResetUserNotificationCountResponse.md new file mode 100644 index 00000000..7cf1cad9 --- /dev/null +++ b/client/docs/ResetUserNotificationCountResponse.md @@ -0,0 +1,20 @@ + + +# ResetUserNotificationCountResponse + + +## 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/ResetUserNotificationsResponse1.md b/client/docs/ResetUserNotificationsResponse1.md new file mode 100644 index 00000000..bf868683 --- /dev/null +++ b/client/docs/ResetUserNotificationsResponse1.md @@ -0,0 +1,20 @@ + + +# ResetUserNotificationsResponse1 + + +## 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/SaveCommentResponse.md b/client/docs/SaveCommentResponse.md new file mode 100644 index 00000000..f7c60374 --- /dev/null +++ b/client/docs/SaveCommentResponse.md @@ -0,0 +1,23 @@ + + +# SaveCommentResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **APIStatus** | | | +|**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] | +|**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/SearchUsersResponse1.md b/client/docs/SearchUsersResponse1.md new file mode 100644 index 00000000..6267270b --- /dev/null +++ b/client/docs/SearchUsersResponse1.md @@ -0,0 +1,22 @@ + + +# SearchUsersResponse1 + + +## 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/SendInviteResponse.md b/client/docs/SendInviteResponse.md new file mode 100644 index 00000000..7411f8f9 --- /dev/null +++ b/client/docs/SendInviteResponse.md @@ -0,0 +1,20 @@ + + +# SendInviteResponse + + +## 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/SendLoginLinkResponse.md b/client/docs/SendLoginLinkResponse.md new file mode 100644 index 00000000..32224594 --- /dev/null +++ b/client/docs/SendLoginLinkResponse.md @@ -0,0 +1,20 @@ + + +# SendLoginLinkResponse + + +## 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/SetCommentTextResponse1.md b/client/docs/SetCommentTextResponse1.md new file mode 100644 index 00000000..7b8933ea --- /dev/null +++ b/client/docs/SetCommentTextResponse1.md @@ -0,0 +1,21 @@ + + +# SetCommentTextResponse1 + + +## 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/SetTrustFactorResponse.md b/client/docs/SetTrustFactorResponse.md new file mode 100644 index 00000000..0842f778 --- /dev/null +++ b/client/docs/SetTrustFactorResponse.md @@ -0,0 +1,21 @@ + + +# SetTrustFactorResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**previousManualTrustFactor** | **Double** | | [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/UnBlockCommentPublicResponse.md b/client/docs/UnBlockCommentPublicResponse.md new file mode 100644 index 00000000..8c64cea5 --- /dev/null +++ b/client/docs/UnBlockCommentPublicResponse.md @@ -0,0 +1,21 @@ + + +# UnBlockCommentPublicResponse + + +## 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/UnBlockUserFromCommentResponse.md b/client/docs/UnBlockUserFromCommentResponse.md new file mode 100644 index 00000000..5c08d69a --- /dev/null +++ b/client/docs/UnBlockUserFromCommentResponse.md @@ -0,0 +1,21 @@ + + +# UnBlockUserFromCommentResponse + + +## 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/UnFlagCommentResponse.md b/client/docs/UnFlagCommentResponse.md new file mode 100644 index 00000000..2eca045e --- /dev/null +++ b/client/docs/UnFlagCommentResponse.md @@ -0,0 +1,22 @@ + + +# UnFlagCommentResponse + + +## 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/UnLockCommentResponse.md b/client/docs/UnLockCommentResponse.md new file mode 100644 index 00000000..869352c5 --- /dev/null +++ b/client/docs/UnLockCommentResponse.md @@ -0,0 +1,20 @@ + + +# UnLockCommentResponse + + +## 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/UnPinCommentResponse.md b/client/docs/UnPinCommentResponse.md new file mode 100644 index 00000000..fe4866ca --- /dev/null +++ b/client/docs/UnPinCommentResponse.md @@ -0,0 +1,21 @@ + + +# UnPinCommentResponse + + +## 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/UpdateCommentResponse.md b/client/docs/UpdateCommentResponse.md new file mode 100644 index 00000000..37a23422 --- /dev/null +++ b/client/docs/UpdateCommentResponse.md @@ -0,0 +1,20 @@ + + +# UpdateCommentResponse + + +## 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/UpdateEmailTemplateResponse.md b/client/docs/UpdateEmailTemplateResponse.md new file mode 100644 index 00000000..9116c46e --- /dev/null +++ b/client/docs/UpdateEmailTemplateResponse.md @@ -0,0 +1,20 @@ + + +# UpdateEmailTemplateResponse + + +## 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/UpdateFeedPostPublicResponse.md b/client/docs/UpdateFeedPostPublicResponse.md new file mode 100644 index 00000000..708471ba --- /dev/null +++ b/client/docs/UpdateFeedPostPublicResponse.md @@ -0,0 +1,21 @@ + + +# UpdateFeedPostPublicResponse + + +## 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/UpdateFeedPostResponse.md b/client/docs/UpdateFeedPostResponse.md new file mode 100644 index 00000000..a7c5441f --- /dev/null +++ b/client/docs/UpdateFeedPostResponse.md @@ -0,0 +1,20 @@ + + +# UpdateFeedPostResponse + + +## 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/UpdateModeratorResponse.md b/client/docs/UpdateModeratorResponse.md new file mode 100644 index 00000000..26ffebb7 --- /dev/null +++ b/client/docs/UpdateModeratorResponse.md @@ -0,0 +1,20 @@ + + +# UpdateModeratorResponse + + +## 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/UpdateNotificationResponse.md b/client/docs/UpdateNotificationResponse.md new file mode 100644 index 00000000..c92fc674 --- /dev/null +++ b/client/docs/UpdateNotificationResponse.md @@ -0,0 +1,20 @@ + + +# UpdateNotificationResponse + + +## 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/UpdateQuestionConfigResponse.md b/client/docs/UpdateQuestionConfigResponse.md new file mode 100644 index 00000000..520ccc6e --- /dev/null +++ b/client/docs/UpdateQuestionConfigResponse.md @@ -0,0 +1,20 @@ + + +# UpdateQuestionConfigResponse + + +## 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/UpdateQuestionResultResponse.md b/client/docs/UpdateQuestionResultResponse.md new file mode 100644 index 00000000..51015215 --- /dev/null +++ b/client/docs/UpdateQuestionResultResponse.md @@ -0,0 +1,20 @@ + + +# UpdateQuestionResultResponse + + +## 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/UpdateTenantPackageResponse.md b/client/docs/UpdateTenantPackageResponse.md new file mode 100644 index 00000000..b321d1b9 --- /dev/null +++ b/client/docs/UpdateTenantPackageResponse.md @@ -0,0 +1,20 @@ + + +# UpdateTenantPackageResponse + + +## 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/UpdateTenantResponse.md b/client/docs/UpdateTenantResponse.md new file mode 100644 index 00000000..bc96335c --- /dev/null +++ b/client/docs/UpdateTenantResponse.md @@ -0,0 +1,20 @@ + + +# UpdateTenantResponse + + +## 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/UpdateTenantUserResponse.md b/client/docs/UpdateTenantUserResponse.md new file mode 100644 index 00000000..60926631 --- /dev/null +++ b/client/docs/UpdateTenantUserResponse.md @@ -0,0 +1,20 @@ + + +# UpdateTenantUserResponse + + +## 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/UpdateUserBadgeResponse.md b/client/docs/UpdateUserBadgeResponse.md new file mode 100644 index 00000000..f4453ecd --- /dev/null +++ b/client/docs/UpdateUserBadgeResponse.md @@ -0,0 +1,20 @@ + + +# UpdateUserBadgeResponse + + +## 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/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md index 884ec500..6af33614 100644 --- a/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md +++ b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -11,6 +11,13 @@ |**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 index e735cead..5d7f8737 100644 --- a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md +++ b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -11,6 +11,13 @@ |**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/UpdateUserNotificationStatusResponse.md b/client/docs/UpdateUserNotificationStatusResponse.md index 7976fc31..0fbbd021 100644 --- a/client/docs/UpdateUserNotificationStatusResponse.md +++ b/client/docs/UpdateUserNotificationStatusResponse.md @@ -11,6 +11,13 @@ |**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/VoteCommentResponse.md b/client/docs/VoteCommentResponse.md new file mode 100644 index 00000000..26578ebb --- /dev/null +++ b/client/docs/VoteCommentResponse.md @@ -0,0 +1,24 @@ + + +# VoteCommentResponse + + +## 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 677aced1..4ee34779 100644 --- a/client/src/main/java/com/fastcomments/api/DefaultApi.java +++ b/client/src/main/java/com/fastcomments/api/DefaultApi.java @@ -27,141 +27,167 @@ import java.io.IOException; -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.AddDomainConfigResponse; +import com.fastcomments.model.AddHashTagResponse; +import com.fastcomments.model.AddHashTagsBulkResponse; import com.fastcomments.model.AddPageAPIResponse; import com.fastcomments.model.AddSSOUserAPIResponse; -import com.fastcomments.model.AggregateQuestionResultsResponse; +import com.fastcomments.model.AggregateQuestionResultsResponse1; import com.fastcomments.model.AggregateResponse; import com.fastcomments.model.AggregateTimeBucket; import com.fastcomments.model.AggregationRequest; import com.fastcomments.model.BlockFromCommentParams; -import com.fastcomments.model.BlockSuccess; +import com.fastcomments.model.BlockUserFromCommentResponse; import com.fastcomments.model.BulkAggregateQuestionResultsRequest; -import com.fastcomments.model.BulkAggregateQuestionResultsResponse; +import com.fastcomments.model.BulkAggregateQuestionResultsResponse1; import com.fastcomments.model.BulkCreateHashTagsBody; -import com.fastcomments.model.BulkCreateHashTagsResponse; import com.fastcomments.model.ChangeTicketStateBody; -import com.fastcomments.model.ChangeTicketStateResponse; -import com.fastcomments.model.CombineQuestionResultsWithCommentsResponse; +import com.fastcomments.model.ChangeTicketStateResponse1; +import com.fastcomments.model.CombineCommentsWithQuestionResultsResponse; import com.fastcomments.model.CreateAPIPageData; import com.fastcomments.model.CreateAPISSOUserData; import com.fastcomments.model.CreateAPIUserSubscriptionData; import com.fastcomments.model.CreateCommentParams; import com.fastcomments.model.CreateEmailTemplateBody; -import com.fastcomments.model.CreateEmailTemplateResponse; +import com.fastcomments.model.CreateEmailTemplateResponse1; import com.fastcomments.model.CreateFeedPostParams; -import com.fastcomments.model.CreateFeedPostsResponse; +import com.fastcomments.model.CreateFeedPostResponse1; import com.fastcomments.model.CreateHashTagBody; -import com.fastcomments.model.CreateHashTagResponse; import com.fastcomments.model.CreateModeratorBody; -import com.fastcomments.model.CreateModeratorResponse; +import com.fastcomments.model.CreateModeratorResponse1; import com.fastcomments.model.CreateQuestionConfigBody; -import com.fastcomments.model.CreateQuestionConfigResponse; +import com.fastcomments.model.CreateQuestionConfigResponse1; import com.fastcomments.model.CreateQuestionResultBody; -import com.fastcomments.model.CreateQuestionResultResponse; +import com.fastcomments.model.CreateQuestionResultResponse1; import com.fastcomments.model.CreateSubscriptionAPIResponse; import com.fastcomments.model.CreateTenantBody; import com.fastcomments.model.CreateTenantPackageBody; -import com.fastcomments.model.CreateTenantPackageResponse; -import com.fastcomments.model.CreateTenantResponse; +import com.fastcomments.model.CreateTenantPackageResponse1; +import com.fastcomments.model.CreateTenantResponse1; import com.fastcomments.model.CreateTenantUserBody; -import com.fastcomments.model.CreateTenantUserResponse; +import com.fastcomments.model.CreateTenantUserResponse1; import com.fastcomments.model.CreateTicketBody; -import com.fastcomments.model.CreateTicketResponse; +import com.fastcomments.model.CreateTicketResponse1; import com.fastcomments.model.CreateUserBadgeParams; -import com.fastcomments.model.DeleteCommentResult; +import com.fastcomments.model.CreateUserBadgeResponse; +import com.fastcomments.model.CreateVoteResponse; +import com.fastcomments.model.DeleteCommentResponse; import com.fastcomments.model.DeleteDomainConfigResponse; +import com.fastcomments.model.DeleteEmailTemplateRenderErrorResponse; +import com.fastcomments.model.DeleteEmailTemplateResponse; import com.fastcomments.model.DeleteHashTagRequestBody; +import com.fastcomments.model.DeleteHashTagResponse; +import com.fastcomments.model.DeleteModeratorResponse; +import com.fastcomments.model.DeleteNotificationCountResponse; import com.fastcomments.model.DeletePageAPIResponse; +import com.fastcomments.model.DeletePendingWebhookEventResponse; +import com.fastcomments.model.DeleteQuestionConfigResponse; +import com.fastcomments.model.DeleteQuestionResultResponse; import com.fastcomments.model.DeleteSSOUserAPIResponse; import com.fastcomments.model.DeleteSubscriptionAPIResponse; +import com.fastcomments.model.DeleteTenantPackageResponse; +import com.fastcomments.model.DeleteTenantResponse; +import com.fastcomments.model.DeleteTenantUserResponse; +import com.fastcomments.model.DeleteUserBadgeResponse; +import com.fastcomments.model.DeleteVoteResponse; import com.fastcomments.model.FeedPost; -import com.fastcomments.model.FlagCommentResponse; -import com.fastcomments.model.GetAuditLogsResponse; -import com.fastcomments.model.GetCachedNotificationCountResponse; +import com.fastcomments.model.FlagCommentResponse1; +import com.fastcomments.model.GetAuditLogsResponse1; +import com.fastcomments.model.GetCachedNotificationCountResponse1; +import com.fastcomments.model.GetCommentResponse; +import com.fastcomments.model.GetCommentsResponse; 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.GetEmailTemplateDefinitionsResponse1; +import com.fastcomments.model.GetEmailTemplateRenderErrorsResponse1; +import com.fastcomments.model.GetEmailTemplateResponse1; +import com.fastcomments.model.GetEmailTemplatesResponse1; +import com.fastcomments.model.GetFeedPostsResponse1; +import com.fastcomments.model.GetHashTagsResponse1; +import com.fastcomments.model.GetModeratorResponse1; +import com.fastcomments.model.GetModeratorsResponse1; +import com.fastcomments.model.GetNotificationCountResponse1; +import com.fastcomments.model.GetNotificationsResponse1; import com.fastcomments.model.GetPageByURLIdAPIResponse; import com.fastcomments.model.GetPagesAPIResponse; -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.GetPendingWebhookEventCountResponse1; +import com.fastcomments.model.GetPendingWebhookEventsResponse1; +import com.fastcomments.model.GetQuestionConfigResponse1; +import com.fastcomments.model.GetQuestionConfigsResponse1; +import com.fastcomments.model.GetQuestionResultResponse1; +import com.fastcomments.model.GetQuestionResultsResponse1; import com.fastcomments.model.GetSSOUserByEmailAPIResponse; import com.fastcomments.model.GetSSOUserByIdAPIResponse; import com.fastcomments.model.GetSSOUsersResponse; import com.fastcomments.model.GetSubscriptionsAPIResponse; -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 com.fastcomments.model.GetTenantDailyUsagesResponse1; +import com.fastcomments.model.GetTenantPackageResponse1; +import com.fastcomments.model.GetTenantPackagesResponse1; +import com.fastcomments.model.GetTenantResponse1; +import com.fastcomments.model.GetTenantUserResponse1; +import com.fastcomments.model.GetTenantUsersResponse1; +import com.fastcomments.model.GetTenantsResponse1; +import com.fastcomments.model.GetTicketResponse1; +import com.fastcomments.model.GetTicketsResponse1; +import com.fastcomments.model.GetUserBadgeProgressByIdResponse; +import com.fastcomments.model.GetUserBadgeProgressByUserIdResponse; +import com.fastcomments.model.GetUserBadgeProgressListResponse; +import com.fastcomments.model.GetUserBadgeResponse; +import com.fastcomments.model.GetUserBadgesResponse; +import com.fastcomments.model.GetUserResponse1; +import com.fastcomments.model.GetVotesForUserResponse1; +import com.fastcomments.model.GetVotesResponse1; import java.time.OffsetDateTime; import com.fastcomments.model.PatchDomainConfigParams; import com.fastcomments.model.PatchDomainConfigResponse; +import com.fastcomments.model.PatchHashTagResponse; import com.fastcomments.model.PatchPageAPIResponse; import com.fastcomments.model.PatchSSOUserAPIResponse; import com.fastcomments.model.PutDomainConfigResponse; import com.fastcomments.model.PutSSOUserAPIResponse; import com.fastcomments.model.RenderEmailTemplateBody; -import com.fastcomments.model.RenderEmailTemplateResponse; +import com.fastcomments.model.RenderEmailTemplateResponse1; import com.fastcomments.model.ReplaceTenantPackageBody; +import com.fastcomments.model.ReplaceTenantPackageResponse; import com.fastcomments.model.ReplaceTenantUserBody; +import com.fastcomments.model.ReplaceTenantUserResponse; import com.fastcomments.model.SORTDIR; +import com.fastcomments.model.SaveCommentResponse; import com.fastcomments.model.SaveCommentsBulkResponse; +import com.fastcomments.model.SendInviteResponse; +import com.fastcomments.model.SendLoginLinkResponse; import com.fastcomments.model.SortDirections; import com.fastcomments.model.UnBlockFromCommentParams; -import com.fastcomments.model.UnblockSuccess; +import com.fastcomments.model.UnBlockUserFromCommentResponse; +import com.fastcomments.model.UnFlagCommentResponse; import com.fastcomments.model.UpdatableCommentParams; import com.fastcomments.model.UpdateAPIPageData; import com.fastcomments.model.UpdateAPISSOUserData; import com.fastcomments.model.UpdateAPIUserSubscriptionData; +import com.fastcomments.model.UpdateCommentResponse; import com.fastcomments.model.UpdateDomainConfigParams; import com.fastcomments.model.UpdateEmailTemplateBody; +import com.fastcomments.model.UpdateEmailTemplateResponse; +import com.fastcomments.model.UpdateFeedPostResponse; import com.fastcomments.model.UpdateHashTagBody; -import com.fastcomments.model.UpdateHashTagResponse; import com.fastcomments.model.UpdateModeratorBody; +import com.fastcomments.model.UpdateModeratorResponse; import com.fastcomments.model.UpdateNotificationBody; +import com.fastcomments.model.UpdateNotificationResponse; import com.fastcomments.model.UpdateQuestionConfigBody; +import com.fastcomments.model.UpdateQuestionConfigResponse; import com.fastcomments.model.UpdateQuestionResultBody; +import com.fastcomments.model.UpdateQuestionResultResponse; import com.fastcomments.model.UpdateSubscriptionAPIResponse; import com.fastcomments.model.UpdateTenantBody; import com.fastcomments.model.UpdateTenantPackageBody; +import com.fastcomments.model.UpdateTenantPackageResponse; +import com.fastcomments.model.UpdateTenantResponse; import com.fastcomments.model.UpdateTenantUserBody; +import com.fastcomments.model.UpdateTenantUserResponse; import com.fastcomments.model.UpdateUserBadgeParams; -import com.fastcomments.model.VoteDeleteResponse; -import com.fastcomments.model.VoteResponse; +import com.fastcomments.model.UpdateUserBadgeResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -433,16 +459,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; } @@ -486,7 +512,6 @@ 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 { @@ -495,34 +520,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute addHashTag request - * @return CreateHashTagResponse + * @return AddHashTagResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateHashTagResponse execute() throws ApiException { - ApiResponse localVarResp = addHashTagWithHttpInfo(tenantId, createHashTagBody); + public AddHashTagResponse execute() throws ApiException { + ApiResponse localVarResp = addHashTagWithHttpInfo(tenantId, createHashTagBody); return localVarResp.getData(); } /** * Execute addHashTag request with HTTP info returned - * @return ApiResponse<CreateHashTagResponse> + * @return ApiResponse<AddHashTagResponse> * @throws ApiException If fail to call the API, e.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); } @@ -536,10 +559,9 @@ 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); } } @@ -553,7 +575,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIaddHashTagRequest addHashTag() { @@ -615,16 +636,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; } @@ -668,7 +689,6 @@ 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 { @@ -677,34 +697,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute addHashTagsBulk request - * @return BulkCreateHashTagsResponse + * @return AddHashTagsBulkResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public BulkCreateHashTagsResponse execute() throws ApiException { - ApiResponse localVarResp = addHashTagsBulkWithHttpInfo(tenantId, bulkCreateHashTagsBody); + public AddHashTagsBulkResponse execute() throws ApiException { + ApiResponse localVarResp = addHashTagsBulkWithHttpInfo(tenantId, bulkCreateHashTagsBody); return localVarResp.getData(); } /** * Execute addHashTagsBulk request with HTTP info returned - * @return ApiResponse<BulkCreateHashTagsResponse> + * @return ApiResponse<AddHashTagsBulkResponse> * @throws ApiException If fail to call the API, e.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); } @@ -718,10 +736,9 @@ 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); } } @@ -735,7 +752,6 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIaddHashTagsBulkRequest addHashTagsBulk() { @@ -1370,16 +1386,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; } @@ -1474,7 +1490,6 @@ 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 { @@ -1483,34 +1498,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute aggregateQuestionResults request - * @return AggregateQuestionResultsResponse + * @return AggregateQuestionResultsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public AggregateQuestionResultsResponse execute() throws ApiException { - ApiResponse localVarResp = aggregateQuestionResultsWithHttpInfo(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate); + public AggregateQuestionResultsResponse1 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<AggregateQuestionResultsResponse> + * @return ApiResponse<AggregateQuestionResultsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -1524,10 +1537,9 @@ public ApiResponse executeWithHttpInfo() throw 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); } } @@ -1542,7 +1554,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIaggregateQuestionResultsRequest aggregateQuestionResults(@javax.annotation.Nonnull String tenantId) { @@ -1628,16 +1639,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; } @@ -1690,7 +1701,6 @@ 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 { @@ -1699,34 +1709,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute blockUserFromComment request - * @return BlockSuccess + * @return BlockUserFromCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public BlockSuccess execute() throws ApiException { - ApiResponse localVarResp = blockUserFromCommentWithHttpInfo(tenantId, id, blockFromCommentParams, userId, anonUserId); + public BlockUserFromCommentResponse execute() throws ApiException { + ApiResponse localVarResp = blockUserFromCommentWithHttpInfo(tenantId, id, blockFromCommentParams, userId, anonUserId); return localVarResp.getData(); } /** * Execute blockUserFromComment request with HTTP info returned - * @return ApiResponse<BlockSuccess> + * @return ApiResponse<BlockUserFromCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -1740,10 +1748,9 @@ 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 blockUserFromCommentAsync(tenantId, id, blockFromCommentParams, userId, anonUserId, _callback); } } @@ -1760,7 +1767,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro Response 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) { @@ -1836,16 +1842,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; } @@ -1883,7 +1889,6 @@ 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 { @@ -1892,34 +1897,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute bulkAggregateQuestionResults request - * @return BulkAggregateQuestionResultsResponse + * @return BulkAggregateQuestionResultsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public BulkAggregateQuestionResultsResponse execute() throws ApiException { - ApiResponse localVarResp = bulkAggregateQuestionResultsWithHttpInfo(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate); + public BulkAggregateQuestionResultsResponse1 execute() throws ApiException { + ApiResponse localVarResp = bulkAggregateQuestionResultsWithHttpInfo(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate); return localVarResp.getData(); } /** * Execute bulkAggregateQuestionResults request with HTTP info returned - * @return ApiResponse<BulkAggregateQuestionResultsResponse> + * @return ApiResponse<BulkAggregateQuestionResultsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -1933,10 +1936,9 @@ 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 bulkAggregateQuestionResultsAsync(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate, _callback); } } @@ -1952,7 +1954,6 @@ 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) { @@ -2039,16 +2040,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; } @@ -2080,7 +2081,6 @@ 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 { @@ -2089,34 +2089,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute changeTicketState request - * @return ChangeTicketStateResponse + * @return ChangeTicketStateResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ChangeTicketStateResponse execute() throws ApiException { - ApiResponse localVarResp = changeTicketStateWithHttpInfo(tenantId, userId, id, changeTicketStateBody); + public ChangeTicketStateResponse1 execute() throws ApiException { + ApiResponse localVarResp = changeTicketStateWithHttpInfo(tenantId, userId, id, changeTicketStateBody); return localVarResp.getData(); } /** * Execute changeTicketState request with HTTP info returned - * @return ApiResponse<ChangeTicketStateResponse> + * @return ApiResponse<ChangeTicketStateResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -2130,10 +2128,9 @@ 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 changeTicketStateAsync(tenantId, userId, id, changeTicketStateBody, _callback); } } @@ -2151,7 +2148,6 @@ public okhttp3.Call executeAsync(final ApiCallback _c 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) { @@ -2249,16 +2245,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; } @@ -2377,7 +2373,6 @@ 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 { @@ -2386,34 +2381,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute combineCommentsWithQuestionResults request - * @return CombineQuestionResultsWithCommentsResponse + * @return CombineCommentsWithQuestionResultsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CombineQuestionResultsWithCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = combineCommentsWithQuestionResultsWithHttpInfo(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit); + public CombineCommentsWithQuestionResultsResponse 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<CombineQuestionResultsWithCommentsResponse> + * @return ApiResponse<CombineCommentsWithQuestionResultsResponse> * @throws ApiException If fail to call the API, e.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); } @@ -2427,10 +2420,9 @@ public ApiResponse executeWithHttpIn 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); } } @@ -2445,7 +2437,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcombineCommentsWithQuestionResultsRequest combineCommentsWithQuestionResults(@javax.annotation.Nonnull String tenantId) { @@ -2517,16 +2508,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; } @@ -2552,7 +2543,6 @@ 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 { @@ -2561,34 +2551,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createEmailTemplate request - * @return CreateEmailTemplateResponse + * @return CreateEmailTemplateResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateEmailTemplateResponse execute() throws ApiException { - ApiResponse localVarResp = createEmailTemplateWithHttpInfo(tenantId, createEmailTemplateBody); + public CreateEmailTemplateResponse1 execute() throws ApiException { + ApiResponse localVarResp = createEmailTemplateWithHttpInfo(tenantId, createEmailTemplateBody); return localVarResp.getData(); } /** * Execute createEmailTemplate request with HTTP info returned - * @return ApiResponse<CreateEmailTemplateResponse> + * @return ApiResponse<CreateEmailTemplateResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -2602,10 +2590,9 @@ 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 createEmailTemplateAsync(tenantId, createEmailTemplateBody, _callback); } } @@ -2621,7 +2608,6 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcreateEmailTemplateRequest createEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateEmailTemplateBody createEmailTemplateBody) { @@ -2709,16 +2695,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; } @@ -2792,7 +2778,6 @@ 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 { @@ -2801,34 +2786,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createFeedPost request - * @return CreateFeedPostsResponse + * @return CreateFeedPostResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateFeedPostsResponse execute() throws ApiException { - ApiResponse localVarResp = createFeedPostWithHttpInfo(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck); + public CreateFeedPostResponse1 execute() throws ApiException { + ApiResponse localVarResp = createFeedPostWithHttpInfo(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck); return localVarResp.getData(); } /** * Execute createFeedPost request with HTTP info returned - * @return ApiResponse<CreateFeedPostsResponse> + * @return ApiResponse<CreateFeedPostResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -2842,10 +2825,9 @@ 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 createFeedPostAsync(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck, _callback); } } @@ -2861,7 +2843,6 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcreateFeedPostRequest createFeedPost(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams) { @@ -2933,16 +2914,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; } @@ -2968,7 +2949,6 @@ 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 { @@ -2977,34 +2957,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createModerator request - * @return CreateModeratorResponse + * @return CreateModeratorResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateModeratorResponse execute() throws ApiException { - ApiResponse localVarResp = createModeratorWithHttpInfo(tenantId, createModeratorBody); + public CreateModeratorResponse1 execute() throws ApiException { + ApiResponse localVarResp = createModeratorWithHttpInfo(tenantId, createModeratorBody); return localVarResp.getData(); } /** * Execute createModerator request with HTTP info returned - * @return ApiResponse<CreateModeratorResponse> + * @return ApiResponse<CreateModeratorResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -3018,10 +2996,9 @@ 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 createModeratorAsync(tenantId, createModeratorBody, _callback); } } @@ -3037,7 +3014,6 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcreateModeratorRequest createModerator(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateModeratorBody createModeratorBody) { @@ -3109,16 +3085,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; } @@ -3144,7 +3120,6 @@ 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 { @@ -3153,34 +3128,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createQuestionConfig request - * @return CreateQuestionConfigResponse + * @return CreateQuestionConfigResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateQuestionConfigResponse execute() throws ApiException { - ApiResponse localVarResp = createQuestionConfigWithHttpInfo(tenantId, createQuestionConfigBody); + public CreateQuestionConfigResponse1 execute() throws ApiException { + ApiResponse localVarResp = createQuestionConfigWithHttpInfo(tenantId, createQuestionConfigBody); return localVarResp.getData(); } /** * Execute createQuestionConfig request with HTTP info returned - * @return ApiResponse<CreateQuestionConfigResponse> + * @return ApiResponse<CreateQuestionConfigResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -3194,10 +3167,9 @@ 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 createQuestionConfigAsync(tenantId, createQuestionConfigBody, _callback); } } @@ -3213,7 +3185,6 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcreateQuestionConfigRequest createQuestionConfig(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionConfigBody createQuestionConfigBody) { @@ -3285,16 +3256,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; } @@ -3320,7 +3291,6 @@ 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 { @@ -3329,34 +3299,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createQuestionResult request - * @return CreateQuestionResultResponse + * @return CreateQuestionResultResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateQuestionResultResponse execute() throws ApiException { - ApiResponse localVarResp = createQuestionResultWithHttpInfo(tenantId, createQuestionResultBody); + public CreateQuestionResultResponse1 execute() throws ApiException { + ApiResponse localVarResp = createQuestionResultWithHttpInfo(tenantId, createQuestionResultBody); return localVarResp.getData(); } /** * Execute createQuestionResult request with HTTP info returned - * @return ApiResponse<CreateQuestionResultResponse> + * @return ApiResponse<CreateQuestionResultResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -3370,10 +3338,9 @@ 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 createQuestionResultAsync(tenantId, createQuestionResultBody, _callback); } } @@ -3389,7 +3356,6 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcreateQuestionResultRequest createQuestionResult(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateQuestionResultBody createQuestionResultBody) { @@ -3632,16 +3598,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; } @@ -3667,7 +3633,6 @@ 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 { @@ -3676,34 +3641,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTenant request - * @return CreateTenantResponse + * @return CreateTenantResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateTenantResponse execute() throws ApiException { - ApiResponse localVarResp = createTenantWithHttpInfo(tenantId, createTenantBody); + public CreateTenantResponse1 execute() throws ApiException { + ApiResponse localVarResp = createTenantWithHttpInfo(tenantId, createTenantBody); return localVarResp.getData(); } /** * Execute createTenant request with HTTP info returned - * @return ApiResponse<CreateTenantResponse> + * @return ApiResponse<CreateTenantResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -3717,10 +3680,9 @@ 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 createTenantAsync(tenantId, createTenantBody, _callback); } } @@ -3736,7 +3698,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcreateTenantRequest createTenant(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantBody createTenantBody) { @@ -3808,16 +3769,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; } @@ -3843,7 +3804,6 @@ 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 { @@ -3852,34 +3812,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTenantPackage request - * @return CreateTenantPackageResponse + * @return CreateTenantPackageResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateTenantPackageResponse execute() throws ApiException { - ApiResponse localVarResp = createTenantPackageWithHttpInfo(tenantId, createTenantPackageBody); + public CreateTenantPackageResponse1 execute() throws ApiException { + ApiResponse localVarResp = createTenantPackageWithHttpInfo(tenantId, createTenantPackageBody); return localVarResp.getData(); } /** * Execute createTenantPackage request with HTTP info returned - * @return ApiResponse<CreateTenantPackageResponse> + * @return ApiResponse<CreateTenantPackageResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -3893,10 +3851,9 @@ 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 createTenantPackageAsync(tenantId, createTenantPackageBody, _callback); } } @@ -3912,7 +3869,6 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcreateTenantPackageRequest createTenantPackage(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantPackageBody createTenantPackageBody) { @@ -3984,16 +3940,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; } @@ -4019,7 +3975,6 @@ 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 { @@ -4028,34 +3983,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTenantUser request - * @return CreateTenantUserResponse + * @return CreateTenantUserResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateTenantUserResponse execute() throws ApiException { - ApiResponse localVarResp = createTenantUserWithHttpInfo(tenantId, createTenantUserBody); + public CreateTenantUserResponse1 execute() throws ApiException { + ApiResponse localVarResp = createTenantUserWithHttpInfo(tenantId, createTenantUserBody); return localVarResp.getData(); } /** * Execute createTenantUser request with HTTP info returned - * @return ApiResponse<CreateTenantUserResponse> + * @return ApiResponse<CreateTenantUserResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -4069,10 +4022,9 @@ 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 createTenantUserAsync(tenantId, createTenantUserBody, _callback); } } @@ -4088,7 +4040,6 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcreateTenantUserRequest createTenantUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantUserBody createTenantUserBody) { @@ -4169,16 +4120,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; } @@ -4207,7 +4158,6 @@ 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 { @@ -4216,34 +4166,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTicket request - * @return CreateTicketResponse + * @return CreateTicketResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateTicketResponse execute() throws ApiException { - ApiResponse localVarResp = createTicketWithHttpInfo(tenantId, userId, createTicketBody); + public CreateTicketResponse1 execute() throws ApiException { + ApiResponse localVarResp = createTicketWithHttpInfo(tenantId, userId, createTicketBody); return localVarResp.getData(); } /** * Execute createTicket request with HTTP info returned - * @return ApiResponse<CreateTicketResponse> + * @return ApiResponse<CreateTicketResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -4257,10 +4205,9 @@ 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 createTicketAsync(tenantId, userId, createTicketBody, _callback); } } @@ -4277,7 +4224,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callba 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) { @@ -4349,16 +4295,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; } @@ -4384,7 +4330,6 @@ 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 { @@ -4393,34 +4338,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createUserBadge request - * @return APICreateUserBadgeResponse + * @return CreateUserBadgeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APICreateUserBadgeResponse execute() throws ApiException { - ApiResponse localVarResp = createUserBadgeWithHttpInfo(tenantId, createUserBadgeParams); + public CreateUserBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = createUserBadgeWithHttpInfo(tenantId, createUserBadgeParams); return localVarResp.getData(); } /** * Execute createUserBadge request with HTTP info returned - * @return ApiResponse<APICreateUserBadgeResponse> + * @return ApiResponse<CreateUserBadgeResponse> * @throws ApiException If fail to call the API, e.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); } @@ -4434,10 +4377,9 @@ 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); } } @@ -4453,7 +4395,6 @@ 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) { @@ -4545,16 +4486,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; } @@ -4607,7 +4548,6 @@ 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 { @@ -4616,34 +4556,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createVote request - * @return VoteResponse + * @return CreateVoteResponse * @throws ApiException If fail to call the API, e.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 = createVoteWithHttpInfo(tenantId, commentId, direction, userId, anonUserId); + public CreateVoteResponse execute() throws ApiException { + ApiResponse localVarResp = createVoteWithHttpInfo(tenantId, commentId, direction, userId, anonUserId); return localVarResp.getData(); } /** * Execute createVote request with HTTP info returned - * @return ApiResponse<VoteResponse> + * @return ApiResponse<CreateVoteResponse> * @throws ApiException If fail to call the API, e.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); } @@ -4657,10 +4595,9 @@ 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 createVoteAsync(tenantId, commentId, direction, userId, anonUserId, _callback); } } @@ -4677,7 +4614,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro 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) { @@ -4757,16 +4693,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; } @@ -4816,7 +4752,6 @@ 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 { @@ -4825,34 +4760,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteComment request - * @return DeleteCommentResult + * @return DeleteCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public DeleteCommentResult execute() throws ApiException { - ApiResponse localVarResp = deleteCommentWithHttpInfo(tenantId, id, contextUserId, isLive); + public DeleteCommentResponse execute() throws ApiException { + ApiResponse localVarResp = deleteCommentWithHttpInfo(tenantId, id, contextUserId, isLive); return localVarResp.getData(); } /** * Execute deleteComment request with HTTP info returned - * @return ApiResponse<DeleteCommentResult> + * @return ApiResponse<DeleteCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -4866,10 +4799,9 @@ 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 deleteCommentAsync(tenantId, id, contextUserId, isLive, _callback); } } @@ -4885,7 +4817,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteCommentRequest deleteComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -5128,16 +5059,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; } @@ -5163,7 +5094,6 @@ 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 { @@ -5172,34 +5102,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteEmailTemplate request - * @return APIEmptyResponse + * @return DeleteEmailTemplateResponse * @throws ApiException If fail to call the API, e.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 = deleteEmailTemplateWithHttpInfo(tenantId, id); + public DeleteEmailTemplateResponse execute() throws ApiException { + ApiResponse localVarResp = deleteEmailTemplateWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteEmailTemplate request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<DeleteEmailTemplateResponse> * @throws ApiException If fail to call the API, e.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); } @@ -5213,10 +5141,9 @@ 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 deleteEmailTemplateAsync(tenantId, id, _callback); } } @@ -5232,7 +5159,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteEmailTemplateRequest deleteEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -5310,16 +5236,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; } @@ -5348,7 +5274,6 @@ 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 { @@ -5357,34 +5282,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteEmailTemplateRenderError request - * @return APIEmptyResponse + * @return DeleteEmailTemplateRenderErrorResponse * @throws ApiException If fail to call the API, e.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 = deleteEmailTemplateRenderErrorWithHttpInfo(tenantId, id, errorId); + public DeleteEmailTemplateRenderErrorResponse execute() throws ApiException { + ApiResponse localVarResp = deleteEmailTemplateRenderErrorWithHttpInfo(tenantId, id, errorId); return localVarResp.getData(); } /** * Execute deleteEmailTemplateRenderError request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<DeleteEmailTemplateRenderErrorResponse> * @throws ApiException If fail to call the API, e.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); } @@ -5398,10 +5321,9 @@ 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 deleteEmailTemplateRenderErrorAsync(tenantId, id, errorId, _callback); } } @@ -5418,7 +5340,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -5486,16 +5407,16 @@ private okhttp3.Call deleteHashTagValidateBeforeCall(@javax.annotation.Nonnull S } - private ApiResponse deleteHashTagWithHttpInfo(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody) throws ApiException { + 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(); + 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 DeleteHashTagRequestBody deleteHashTagRequestBody, 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, deleteHashTagRequestBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5542,7 +5463,6 @@ public APIdeleteHashTagRequest deleteHashTagRequestBody(@javax.annotation.Nullab Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5551,34 +5471,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteHashTag request - * @return APIEmptyResponse + * @return DeleteHashTagResponse * @throws ApiException If fail to call the API, e.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 = deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); + public DeleteHashTagResponse execute() throws ApiException { + ApiResponse localVarResp = deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); return localVarResp.getData(); } /** * Execute deleteHashTag request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<DeleteHashTagResponse> * @throws ApiException If fail to call the API, e.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 deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); } @@ -5592,10 +5510,9 @@ 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 deleteHashTagAsync(tag, tenantId, deleteHashTagRequestBody, _callback); } } @@ -5610,7 +5527,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteHashTagRequest deleteHashTag(@javax.annotation.Nonnull String tag) { @@ -5686,16 +5602,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; } @@ -5733,7 +5649,6 @@ 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 { @@ -5742,34 +5657,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteModerator request - * @return APIEmptyResponse + * @return DeleteModeratorResponse * @throws ApiException If fail to call the API, e.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 = deleteModeratorWithHttpInfo(tenantId, id, sendEmail); + public DeleteModeratorResponse execute() throws ApiException { + ApiResponse localVarResp = deleteModeratorWithHttpInfo(tenantId, id, sendEmail); return localVarResp.getData(); } /** * Execute deleteModerator request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<DeleteModeratorResponse> * @throws ApiException If fail to call the API, e.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); } @@ -5783,10 +5696,9 @@ 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 deleteModeratorAsync(tenantId, id, sendEmail, _callback); } } @@ -5802,7 +5714,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteModeratorRequest deleteModerator(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -5874,16 +5785,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; } @@ -5909,7 +5820,6 @@ 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 { @@ -5918,34 +5828,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteNotificationCount request - * @return APIEmptyResponse + * @return DeleteNotificationCountResponse * @throws ApiException If fail to call the API, e.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 = deleteNotificationCountWithHttpInfo(tenantId, id); + public DeleteNotificationCountResponse execute() throws ApiException { + ApiResponse localVarResp = deleteNotificationCountWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteNotificationCount request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<DeleteNotificationCountResponse> * @throws ApiException If fail to call the API, e.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); } @@ -5959,10 +5867,9 @@ 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 deleteNotificationCountAsync(tenantId, id, _callback); } } @@ -5978,7 +5885,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteNotificationCountRequest deleteNotificationCount(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -6221,16 +6127,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; } @@ -6256,7 +6162,6 @@ 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 { @@ -6265,34 +6170,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deletePendingWebhookEvent request - * @return APIEmptyResponse + * @return DeletePendingWebhookEventResponse * @throws ApiException If fail to call the API, e.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 = deletePendingWebhookEventWithHttpInfo(tenantId, id); + public DeletePendingWebhookEventResponse execute() throws ApiException { + ApiResponse localVarResp = deletePendingWebhookEventWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deletePendingWebhookEvent request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<DeletePendingWebhookEventResponse> * @throws ApiException If fail to call the API, e.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); } @@ -6306,10 +6209,9 @@ 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 deletePendingWebhookEventAsync(tenantId, id, _callback); } } @@ -6325,7 +6227,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeletePendingWebhookEventRequest deletePendingWebhookEvent(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -6397,16 +6298,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; } @@ -6432,7 +6333,6 @@ 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 { @@ -6441,34 +6341,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteQuestionConfig request - * @return APIEmptyResponse + * @return DeleteQuestionConfigResponse * @throws ApiException If fail to call the API, e.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 = deleteQuestionConfigWithHttpInfo(tenantId, id); + public DeleteQuestionConfigResponse execute() throws ApiException { + ApiResponse localVarResp = deleteQuestionConfigWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteQuestionConfig request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<DeleteQuestionConfigResponse> * @throws ApiException If fail to call the API, e.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); } @@ -6482,10 +6380,9 @@ 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 deleteQuestionConfigAsync(tenantId, id, _callback); } } @@ -6501,7 +6398,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteQuestionConfigRequest deleteQuestionConfig(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -6573,16 +6469,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; } @@ -6608,7 +6504,6 @@ 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 { @@ -6617,34 +6512,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteQuestionResult request - * @return APIEmptyResponse + * @return DeleteQuestionResultResponse * @throws ApiException If fail to call the API, e.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 = deleteQuestionResultWithHttpInfo(tenantId, id); + public DeleteQuestionResultResponse execute() throws ApiException { + ApiResponse localVarResp = deleteQuestionResultWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteQuestionResult request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<DeleteQuestionResultResponse> * @throws ApiException If fail to call the API, e.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); } @@ -6658,10 +6551,9 @@ 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 deleteQuestionResultAsync(tenantId, id, _callback); } } @@ -6677,7 +6569,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteQuestionResultRequest deleteQuestionResult(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7143,16 +7034,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; } @@ -7190,7 +7081,6 @@ 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 { @@ -7199,34 +7089,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteTenant request - * @return APIEmptyResponse + * @return DeleteTenantResponse * @throws ApiException If fail to call the API, e.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 = deleteTenantWithHttpInfo(tenantId, id, sure); + public DeleteTenantResponse execute() throws ApiException { + ApiResponse localVarResp = deleteTenantWithHttpInfo(tenantId, id, sure); return localVarResp.getData(); } /** * Execute deleteTenant request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<DeleteTenantResponse> * @throws ApiException If fail to call the API, e.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); } @@ -7240,10 +7128,9 @@ 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 deleteTenantAsync(tenantId, id, sure, _callback); } } @@ -7259,7 +7146,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteTenantRequest deleteTenant(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7331,16 +7217,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; } @@ -7366,7 +7252,6 @@ 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 { @@ -7375,34 +7260,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteTenantPackage request - * @return APIEmptyResponse + * @return DeleteTenantPackageResponse * @throws ApiException If fail to call the API, e.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 = deleteTenantPackageWithHttpInfo(tenantId, id); + public DeleteTenantPackageResponse execute() throws ApiException { + ApiResponse localVarResp = deleteTenantPackageWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteTenantPackage request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<DeleteTenantPackageResponse> * @throws ApiException If fail to call the API, e.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); } @@ -7416,10 +7299,9 @@ 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 deleteTenantPackageAsync(tenantId, id, _callback); } } @@ -7435,7 +7317,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteTenantPackageRequest deleteTenantPackage(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7515,16 +7396,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; } @@ -7574,7 +7455,6 @@ 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 { @@ -7583,34 +7463,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteTenantUser request - * @return APIEmptyResponse + * @return DeleteTenantUserResponse * @throws ApiException If fail to call the API, e.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 = deleteTenantUserWithHttpInfo(tenantId, id, deleteComments, commentDeleteMode); + public DeleteTenantUserResponse execute() throws ApiException { + ApiResponse localVarResp = deleteTenantUserWithHttpInfo(tenantId, id, deleteComments, commentDeleteMode); return localVarResp.getData(); } /** * Execute deleteTenantUser request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<DeleteTenantUserResponse> * @throws ApiException If fail to call the API, e.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); } @@ -7624,10 +7502,9 @@ 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 deleteTenantUserAsync(tenantId, id, deleteComments, commentDeleteMode, _callback); } } @@ -7643,7 +7520,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteTenantUserRequest deleteTenantUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7715,16 +7591,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; } @@ -7750,7 +7626,6 @@ 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 { @@ -7759,34 +7634,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteUserBadge request - * @return APIEmptySuccessResponse + * @return DeleteUserBadgeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIEmptySuccessResponse execute() throws ApiException { - ApiResponse localVarResp = deleteUserBadgeWithHttpInfo(tenantId, id); + public DeleteUserBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = deleteUserBadgeWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute deleteUserBadge request with HTTP info returned - * @return ApiResponse<APIEmptySuccessResponse> + * @return ApiResponse<DeleteUserBadgeResponse> * @throws ApiException If fail to call the API, e.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); } @@ -7800,10 +7673,9 @@ 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 deleteUserBadgeAsync(tenantId, id, _callback); } } @@ -7819,7 +7691,6 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteUserBadgeRequest deleteUserBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7895,16 +7766,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; } @@ -7942,7 +7813,6 @@ 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 { @@ -7951,34 +7821,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteVote request - * @return VoteDeleteResponse + * @return DeleteVoteResponse * @throws ApiException If fail to call the API, e.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 = deleteVoteWithHttpInfo(tenantId, id, editKey); + public DeleteVoteResponse execute() throws ApiException { + ApiResponse localVarResp = deleteVoteWithHttpInfo(tenantId, id, editKey); return localVarResp.getData(); } /** * Execute deleteVote request with HTTP info returned - * @return ApiResponse<VoteDeleteResponse> + * @return ApiResponse<DeleteVoteResponse> * @throws ApiException If fail to call the API, e.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); } @@ -7992,10 +7860,9 @@ 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 deleteVoteAsync(tenantId, id, editKey, _callback); } } @@ -8011,7 +7878,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteVoteRequest deleteVote(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -8091,16 +7957,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; } @@ -8150,7 +8016,6 @@ 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 { @@ -8159,34 +8024,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute flagComment request - * @return FlagCommentResponse + * @return FlagCommentResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentResponse execute() throws ApiException { - ApiResponse localVarResp = flagCommentWithHttpInfo(tenantId, id, userId, anonUserId); + public FlagCommentResponse1 execute() throws ApiException { + ApiResponse localVarResp = flagCommentWithHttpInfo(tenantId, id, userId, anonUserId); return localVarResp.getData(); } /** * Execute flagComment request with HTTP info returned - * @return ApiResponse<FlagCommentResponse> + * @return ApiResponse<FlagCommentResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -8200,10 +8063,9 @@ 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 flagCommentAsync(tenantId, id, userId, anonUserId, _callback); } } @@ -8219,7 +8081,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIflagCommentRequest flagComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -8305,16 +8166,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; } @@ -8397,7 +8258,6 @@ 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 { @@ -8406,34 +8266,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getAuditLogs request - * @return GetAuditLogsResponse + * @return GetAuditLogsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetAuditLogsResponse execute() throws ApiException { - ApiResponse localVarResp = getAuditLogsWithHttpInfo(tenantId, limit, skip, order, after, before); + public GetAuditLogsResponse1 execute() throws ApiException { + ApiResponse localVarResp = getAuditLogsWithHttpInfo(tenantId, limit, skip, order, after, before); return localVarResp.getData(); } /** * Execute getAuditLogs request with HTTP info returned - * @return ApiResponse<GetAuditLogsResponse> + * @return ApiResponse<GetAuditLogsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -8447,10 +8305,9 @@ 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 getAuditLogsAsync(tenantId, limit, skip, order, after, before, _callback); } } @@ -8465,7 +8322,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetAuditLogsRequest getAuditLogs(@javax.annotation.Nonnull String tenantId) { @@ -8537,16 +8393,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; } @@ -8572,7 +8428,6 @@ 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 { @@ -8581,34 +8436,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCachedNotificationCount request - * @return GetCachedNotificationCountResponse + * @return GetCachedNotificationCountResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetCachedNotificationCountResponse execute() throws ApiException { - ApiResponse localVarResp = getCachedNotificationCountWithHttpInfo(tenantId, id); + public GetCachedNotificationCountResponse1 execute() throws ApiException { + ApiResponse localVarResp = getCachedNotificationCountWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getCachedNotificationCount request with HTTP info returned - * @return ApiResponse<GetCachedNotificationCountResponse> + * @return ApiResponse<GetCachedNotificationCountResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -8622,10 +8475,9 @@ 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 getCachedNotificationCountAsync(tenantId, id, _callback); } } @@ -8641,7 +8493,6 @@ 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) { @@ -8713,16 +8564,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; } @@ -8748,7 +8599,6 @@ 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 { @@ -8757,34 +8607,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getComment request - * @return APIGetCommentResponse + * @return GetCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIGetCommentResponse execute() throws ApiException { - ApiResponse localVarResp = getCommentWithHttpInfo(tenantId, id); + public GetCommentResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getComment request with HTTP info returned - * @return ApiResponse<APIGetCommentResponse> + * @return ApiResponse<GetCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -8798,10 +8646,9 @@ 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); } } @@ -8817,7 +8664,6 @@ 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) { @@ -8947,16 +8793,16 @@ private okhttp3.Call getCommentsValidateBeforeCall(@javax.annotation.Nonnull Str } - 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 { + 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(); + 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, @javax.annotation.Nullable Long fromDate, @javax.annotation.Nullable Long toDate, 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, fromDate, toDate, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9171,7 +9017,6 @@ public APIgetCommentsRequest toDate(@javax.annotation.Nullable Long toDate) { Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -9180,34 +9025,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getComments request - * @return APIGetCommentsResponse + * @return GetCommentsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - 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); + public GetCommentsResponse 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<APIGetCommentsResponse> + * @return ApiResponse<GetCommentsResponse> * @throws ApiException If fail to call the API, e.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 getCommentsWithHttpInfo(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate); } @@ -9221,10 +9064,9 @@ 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 getCommentsAsync(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate, _callback); } } @@ -9239,7 +9081,6 @@ 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) { @@ -9643,16 +9484,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; } @@ -9678,7 +9519,6 @@ 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 { @@ -9687,34 +9527,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplate request - * @return GetEmailTemplateResponse + * @return GetEmailTemplateResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetEmailTemplateResponse execute() throws ApiException { - ApiResponse localVarResp = getEmailTemplateWithHttpInfo(tenantId, id); + public GetEmailTemplateResponse1 execute() throws ApiException { + ApiResponse localVarResp = getEmailTemplateWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getEmailTemplate request with HTTP info returned - * @return ApiResponse<GetEmailTemplateResponse> + * @return ApiResponse<GetEmailTemplateResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -9728,10 +9566,9 @@ 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 getEmailTemplateAsync(tenantId, id, _callback); } } @@ -9747,7 +9584,6 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetEmailTemplateRequest getEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -9813,16 +9649,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; } @@ -9845,7 +9681,6 @@ 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 { @@ -9854,34 +9689,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplateDefinitions request - * @return GetEmailTemplateDefinitionsResponse + * @return GetEmailTemplateDefinitionsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetEmailTemplateDefinitionsResponse execute() throws ApiException { - ApiResponse localVarResp = getEmailTemplateDefinitionsWithHttpInfo(tenantId); + public GetEmailTemplateDefinitionsResponse1 execute() throws ApiException { + ApiResponse localVarResp = getEmailTemplateDefinitionsWithHttpInfo(tenantId); return localVarResp.getData(); } /** * Execute getEmailTemplateDefinitions request with HTTP info returned - * @return ApiResponse<GetEmailTemplateDefinitionsResponse> + * @return ApiResponse<GetEmailTemplateDefinitionsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -9895,10 +9728,9 @@ 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 getEmailTemplateDefinitionsAsync(tenantId, _callback); } } @@ -9913,7 +9745,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetEmailTemplateDefinitionsRequest getEmailTemplateDefinitions(@javax.annotation.Nonnull String tenantId) { @@ -9989,16 +9820,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; } @@ -10036,7 +9867,6 @@ 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 { @@ -10045,34 +9875,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplateRenderErrors request - * @return GetEmailTemplateRenderErrorsResponse + * @return GetEmailTemplateRenderErrorsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetEmailTemplateRenderErrorsResponse execute() throws ApiException { - ApiResponse localVarResp = getEmailTemplateRenderErrorsWithHttpInfo(tenantId, id, skip); + public GetEmailTemplateRenderErrorsResponse1 execute() throws ApiException { + ApiResponse localVarResp = getEmailTemplateRenderErrorsWithHttpInfo(tenantId, id, skip); return localVarResp.getData(); } /** * Execute getEmailTemplateRenderErrors request with HTTP info returned - * @return ApiResponse<GetEmailTemplateRenderErrorsResponse> + * @return ApiResponse<GetEmailTemplateRenderErrorsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -10086,10 +9914,9 @@ 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 getEmailTemplateRenderErrorsAsync(tenantId, id, skip, _callback); } } @@ -10105,7 +9932,6 @@ 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) { @@ -10175,16 +10001,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; } @@ -10219,7 +10045,6 @@ 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 { @@ -10228,34 +10053,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplates request - * @return GetEmailTemplatesResponse + * @return GetEmailTemplatesResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetEmailTemplatesResponse execute() throws ApiException { - ApiResponse localVarResp = getEmailTemplatesWithHttpInfo(tenantId, skip); + public GetEmailTemplatesResponse1 execute() throws ApiException { + ApiResponse localVarResp = getEmailTemplatesWithHttpInfo(tenantId, skip); return localVarResp.getData(); } /** * Execute getEmailTemplates request with HTTP info returned - * @return ApiResponse<GetEmailTemplatesResponse> + * @return ApiResponse<GetEmailTemplatesResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -10269,10 +10092,9 @@ 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 getEmailTemplatesAsync(tenantId, skip, _callback); } } @@ -10287,7 +10109,6 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetEmailTemplatesRequest getEmailTemplates(@javax.annotation.Nonnull String tenantId) { @@ -10365,16 +10186,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; } @@ -10433,7 +10254,6 @@ 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 { @@ -10442,34 +10262,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getFeedPosts request - * @return GetFeedPostsResponse + * @return GetFeedPostsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetFeedPostsResponse execute() throws ApiException { - ApiResponse localVarResp = getFeedPostsWithHttpInfo(tenantId, afterId, limit, tags); + public GetFeedPostsResponse1 execute() throws ApiException { + ApiResponse localVarResp = getFeedPostsWithHttpInfo(tenantId, afterId, limit, tags); return localVarResp.getData(); } /** * Execute getFeedPosts request with HTTP info returned - * @return ApiResponse<GetFeedPostsResponse> + * @return ApiResponse<GetFeedPostsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -10483,10 +10301,9 @@ 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 getFeedPostsAsync(tenantId, afterId, limit, tags, _callback); } } @@ -10501,7 +10318,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetFeedPostsRequest getFeedPosts(@javax.annotation.Nonnull String tenantId) { @@ -10571,16 +10387,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; } @@ -10615,7 +10431,6 @@ 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 { @@ -10624,34 +10439,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getHashTags request - * @return GetHashTagsResponse + * @return GetHashTagsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetHashTagsResponse execute() throws ApiException { - ApiResponse localVarResp = getHashTagsWithHttpInfo(tenantId, page); + public GetHashTagsResponse1 execute() throws ApiException { + ApiResponse localVarResp = getHashTagsWithHttpInfo(tenantId, page); return localVarResp.getData(); } /** * Execute getHashTags request with HTTP info returned - * @return ApiResponse<GetHashTagsResponse> + * @return ApiResponse<GetHashTagsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -10665,10 +10478,9 @@ 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 getHashTagsAsync(tenantId, page, _callback); } } @@ -10683,7 +10495,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetHashTagsRequest getHashTags(@javax.annotation.Nonnull String tenantId) { @@ -10755,16 +10566,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; } @@ -10790,7 +10601,6 @@ 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 { @@ -10799,34 +10609,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getModerator request - * @return GetModeratorResponse + * @return GetModeratorResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetModeratorResponse execute() throws ApiException { - ApiResponse localVarResp = getModeratorWithHttpInfo(tenantId, id); + public GetModeratorResponse1 execute() throws ApiException { + ApiResponse localVarResp = getModeratorWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getModerator request with HTTP info returned - * @return ApiResponse<GetModeratorResponse> + * @return ApiResponse<GetModeratorResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -10840,10 +10648,9 @@ 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 getModeratorAsync(tenantId, id, _callback); } } @@ -10859,7 +10666,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetModeratorRequest getModerator(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -10929,16 +10735,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; } @@ -10973,7 +10779,6 @@ 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 { @@ -10982,34 +10787,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getModerators request - * @return GetModeratorsResponse + * @return GetModeratorsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetModeratorsResponse execute() throws ApiException { - ApiResponse localVarResp = getModeratorsWithHttpInfo(tenantId, skip); + public GetModeratorsResponse1 execute() throws ApiException { + ApiResponse localVarResp = getModeratorsWithHttpInfo(tenantId, skip); return localVarResp.getData(); } /** * Execute getModerators request with HTTP info returned - * @return ApiResponse<GetModeratorsResponse> + * @return ApiResponse<GetModeratorsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -11023,10 +10826,9 @@ 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 getModeratorsAsync(tenantId, skip, _callback); } } @@ -11041,7 +10843,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetModeratorsRequest getModerators(@javax.annotation.Nonnull String tenantId) { @@ -11127,16 +10928,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; } @@ -11219,7 +11020,6 @@ 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 { @@ -11228,34 +11028,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getNotificationCount request - * @return GetNotificationCountResponse + * @return GetNotificationCountResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetNotificationCountResponse execute() throws ApiException { - ApiResponse localVarResp = getNotificationCountWithHttpInfo(tenantId, userId, urlId, fromCommentId, viewed, type); + public GetNotificationCountResponse1 execute() throws ApiException { + ApiResponse localVarResp = getNotificationCountWithHttpInfo(tenantId, userId, urlId, fromCommentId, viewed, type); return localVarResp.getData(); } /** * Execute getNotificationCount request with HTTP info returned - * @return ApiResponse<GetNotificationCountResponse> + * @return ApiResponse<GetNotificationCountResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -11269,10 +11067,9 @@ 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 getNotificationCountAsync(tenantId, userId, urlId, fromCommentId, viewed, type, _callback); } } @@ -11287,7 +11084,6 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetNotificationCountRequest getNotificationCount(@javax.annotation.Nonnull String tenantId) { @@ -11377,16 +11173,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; } @@ -11481,7 +11277,6 @@ 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 { @@ -11490,34 +11285,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getNotifications request - * @return GetNotificationsResponse + * @return GetNotificationsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetNotificationsResponse execute() throws ApiException { - ApiResponse localVarResp = getNotificationsWithHttpInfo(tenantId, userId, urlId, fromCommentId, viewed, type, skip); + public GetNotificationsResponse1 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<GetNotificationsResponse> + * @return ApiResponse<GetNotificationsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -11531,10 +11324,9 @@ 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 getNotificationsAsync(tenantId, userId, urlId, fromCommentId, viewed, type, skip, _callback); } } @@ -11549,7 +11341,6 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetNotificationsRequest getNotifications(@javax.annotation.Nonnull String tenantId) { @@ -11974,16 +11765,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; } @@ -12078,7 +11869,6 @@ 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 { @@ -12087,34 +11877,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getPendingWebhookEventCount request - * @return GetPendingWebhookEventCountResponse + * @return GetPendingWebhookEventCountResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetPendingWebhookEventCountResponse execute() throws ApiException { - ApiResponse localVarResp = getPendingWebhookEventCountWithHttpInfo(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT); + public GetPendingWebhookEventCountResponse1 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<GetPendingWebhookEventCountResponse> + * @return ApiResponse<GetPendingWebhookEventCountResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -12128,10 +11916,9 @@ 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 getPendingWebhookEventCountAsync(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, _callback); } } @@ -12146,7 +11933,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetPendingWebhookEventCountRequest getPendingWebhookEventCount(@javax.annotation.Nonnull String tenantId) { @@ -12240,16 +12026,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; } @@ -12356,7 +12142,6 @@ 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 { @@ -12365,34 +12150,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getPendingWebhookEvents request - * @return GetPendingWebhookEventsResponse + * @return GetPendingWebhookEventsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetPendingWebhookEventsResponse execute() throws ApiException { - ApiResponse localVarResp = getPendingWebhookEventsWithHttpInfo(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip); + public GetPendingWebhookEventsResponse1 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<GetPendingWebhookEventsResponse> + * @return ApiResponse<GetPendingWebhookEventsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -12406,10 +12189,9 @@ 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 getPendingWebhookEventsAsync(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip, _callback); } } @@ -12424,7 +12206,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetPendingWebhookEventsRequest getPendingWebhookEvents(@javax.annotation.Nonnull String tenantId) { @@ -12496,16 +12277,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; } @@ -12531,7 +12312,6 @@ 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 { @@ -12540,34 +12320,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionConfig request - * @return GetQuestionConfigResponse + * @return GetQuestionConfigResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetQuestionConfigResponse execute() throws ApiException { - ApiResponse localVarResp = getQuestionConfigWithHttpInfo(tenantId, id); + public GetQuestionConfigResponse1 execute() throws ApiException { + ApiResponse localVarResp = getQuestionConfigWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getQuestionConfig request with HTTP info returned - * @return ApiResponse<GetQuestionConfigResponse> + * @return ApiResponse<GetQuestionConfigResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -12581,10 +12359,9 @@ 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 getQuestionConfigAsync(tenantId, id, _callback); } } @@ -12600,7 +12377,6 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetQuestionConfigRequest getQuestionConfig(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -12670,16 +12446,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; } @@ -12714,7 +12490,6 @@ 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 { @@ -12723,34 +12498,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionConfigs request - * @return GetQuestionConfigsResponse + * @return GetQuestionConfigsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetQuestionConfigsResponse execute() throws ApiException { - ApiResponse localVarResp = getQuestionConfigsWithHttpInfo(tenantId, skip); + public GetQuestionConfigsResponse1 execute() throws ApiException { + ApiResponse localVarResp = getQuestionConfigsWithHttpInfo(tenantId, skip); return localVarResp.getData(); } /** * Execute getQuestionConfigs request with HTTP info returned - * @return ApiResponse<GetQuestionConfigsResponse> + * @return ApiResponse<GetQuestionConfigsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -12764,10 +12537,9 @@ 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 getQuestionConfigsAsync(tenantId, skip, _callback); } } @@ -12782,7 +12554,6 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetQuestionConfigsRequest getQuestionConfigs(@javax.annotation.Nonnull String tenantId) { @@ -12854,16 +12625,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; } @@ -12889,7 +12660,6 @@ 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 { @@ -12898,34 +12668,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionResult request - * @return GetQuestionResultResponse + * @return GetQuestionResultResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetQuestionResultResponse execute() throws ApiException { - ApiResponse localVarResp = getQuestionResultWithHttpInfo(tenantId, id); + public GetQuestionResultResponse1 execute() throws ApiException { + ApiResponse localVarResp = getQuestionResultWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getQuestionResult request with HTTP info returned - * @return ApiResponse<GetQuestionResultResponse> + * @return ApiResponse<GetQuestionResultResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -12939,10 +12707,9 @@ 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 getQuestionResultAsync(tenantId, id, _callback); } } @@ -12958,7 +12725,6 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetQuestionResultRequest getQuestionResult(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -13048,16 +12814,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; } @@ -13152,7 +12918,6 @@ 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 { @@ -13161,34 +12926,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionResults request - * @return GetQuestionResultsResponse + * @return GetQuestionResultsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetQuestionResultsResponse execute() throws ApiException { - ApiResponse localVarResp = getQuestionResultsWithHttpInfo(tenantId, urlId, userId, startDate, questionId, questionIds, skip); + public GetQuestionResultsResponse1 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<GetQuestionResultsResponse> + * @return ApiResponse<GetQuestionResultsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -13202,10 +12965,9 @@ 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 getQuestionResultsAsync(tenantId, urlId, userId, startDate, questionId, questionIds, skip, _callback); } } @@ -13220,7 +12982,6 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetQuestionResultsRequest getQuestionResults(@javax.annotation.Nonnull String tenantId) { @@ -13988,16 +13749,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; } @@ -14023,7 +13784,6 @@ 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 { @@ -14032,34 +13792,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenant request - * @return GetTenantResponse + * @return GetTenantResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantResponse execute() throws ApiException { - ApiResponse localVarResp = getTenantWithHttpInfo(tenantId, id); + public GetTenantResponse1 execute() throws ApiException { + ApiResponse localVarResp = getTenantWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getTenant request with HTTP info returned - * @return ApiResponse<GetTenantResponse> + * @return ApiResponse<GetTenantResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -14073,10 +13831,9 @@ 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 getTenantAsync(tenantId, id, _callback); } } @@ -14092,7 +13849,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetTenantRequest getTenant(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -14174,16 +13930,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; } @@ -14254,7 +14010,6 @@ 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 { @@ -14263,34 +14018,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantDailyUsages request - * @return GetTenantDailyUsagesResponse + * @return GetTenantDailyUsagesResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantDailyUsagesResponse execute() throws ApiException { - ApiResponse localVarResp = getTenantDailyUsagesWithHttpInfo(tenantId, yearNumber, monthNumber, dayNumber, skip); + public GetTenantDailyUsagesResponse1 execute() throws ApiException { + ApiResponse localVarResp = getTenantDailyUsagesWithHttpInfo(tenantId, yearNumber, monthNumber, dayNumber, skip); return localVarResp.getData(); } /** * Execute getTenantDailyUsages request with HTTP info returned - * @return ApiResponse<GetTenantDailyUsagesResponse> + * @return ApiResponse<GetTenantDailyUsagesResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -14304,10 +14057,9 @@ 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 getTenantDailyUsagesAsync(tenantId, yearNumber, monthNumber, dayNumber, skip, _callback); } } @@ -14322,7 +14074,6 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetTenantDailyUsagesRequest getTenantDailyUsages(@javax.annotation.Nonnull String tenantId) { @@ -14394,16 +14145,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; } @@ -14429,7 +14180,6 @@ 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 { @@ -14438,34 +14188,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantPackage request - * @return GetTenantPackageResponse + * @return GetTenantPackageResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantPackageResponse execute() throws ApiException { - ApiResponse localVarResp = getTenantPackageWithHttpInfo(tenantId, id); + public GetTenantPackageResponse1 execute() throws ApiException { + ApiResponse localVarResp = getTenantPackageWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getTenantPackage request with HTTP info returned - * @return ApiResponse<GetTenantPackageResponse> + * @return ApiResponse<GetTenantPackageResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -14479,10 +14227,9 @@ 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 getTenantPackageAsync(tenantId, id, _callback); } } @@ -14498,7 +14245,6 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetTenantPackageRequest getTenantPackage(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -14568,16 +14314,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; } @@ -14612,7 +14358,6 @@ 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 { @@ -14621,34 +14366,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantPackages request - * @return GetTenantPackagesResponse + * @return GetTenantPackagesResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantPackagesResponse execute() throws ApiException { - ApiResponse localVarResp = getTenantPackagesWithHttpInfo(tenantId, skip); + public GetTenantPackagesResponse1 execute() throws ApiException { + ApiResponse localVarResp = getTenantPackagesWithHttpInfo(tenantId, skip); return localVarResp.getData(); } /** * Execute getTenantPackages request with HTTP info returned - * @return ApiResponse<GetTenantPackagesResponse> + * @return ApiResponse<GetTenantPackagesResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -14662,10 +14405,9 @@ 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 getTenantPackagesAsync(tenantId, skip, _callback); } } @@ -14680,7 +14422,6 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetTenantPackagesRequest getTenantPackages(@javax.annotation.Nonnull String tenantId) { @@ -14752,16 +14493,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; } @@ -14787,7 +14528,6 @@ 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 { @@ -14796,34 +14536,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantUser request - * @return GetTenantUserResponse + * @return GetTenantUserResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantUserResponse execute() throws ApiException { - ApiResponse localVarResp = getTenantUserWithHttpInfo(tenantId, id); + public GetTenantUserResponse1 execute() throws ApiException { + ApiResponse localVarResp = getTenantUserWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getTenantUser request with HTTP info returned - * @return ApiResponse<GetTenantUserResponse> + * @return ApiResponse<GetTenantUserResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -14837,10 +14575,9 @@ 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 getTenantUserAsync(tenantId, id, _callback); } } @@ -14856,7 +14593,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetTenantUserRequest getTenantUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -14926,16 +14662,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; } @@ -14970,7 +14706,6 @@ 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 { @@ -14979,34 +14714,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantUsers request - * @return GetTenantUsersResponse + * @return GetTenantUsersResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantUsersResponse execute() throws ApiException { - ApiResponse localVarResp = getTenantUsersWithHttpInfo(tenantId, skip); + public GetTenantUsersResponse1 execute() throws ApiException { + ApiResponse localVarResp = getTenantUsersWithHttpInfo(tenantId, skip); return localVarResp.getData(); } /** * Execute getTenantUsers request with HTTP info returned - * @return ApiResponse<GetTenantUsersResponse> + * @return ApiResponse<GetTenantUsersResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -15020,10 +14753,9 @@ 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 getTenantUsersAsync(tenantId, skip, _callback); } } @@ -15038,7 +14770,6 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetTenantUsersRequest getTenantUsers(@javax.annotation.Nonnull String tenantId) { @@ -15112,16 +14843,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; } @@ -15168,7 +14899,6 @@ 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 { @@ -15177,34 +14907,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenants request - * @return GetTenantsResponse + * @return GetTenantsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTenantsResponse execute() throws ApiException { - ApiResponse localVarResp = getTenantsWithHttpInfo(tenantId, meta, skip); + public GetTenantsResponse1 execute() throws ApiException { + ApiResponse localVarResp = getTenantsWithHttpInfo(tenantId, meta, skip); return localVarResp.getData(); } /** * Execute getTenants request with HTTP info returned - * @return ApiResponse<GetTenantsResponse> + * @return ApiResponse<GetTenantsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -15218,10 +14946,9 @@ 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 getTenantsAsync(tenantId, meta, skip, _callback); } } @@ -15236,7 +14963,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetTenantsRequest getTenants(@javax.annotation.Nonnull String tenantId) { @@ -15312,16 +15038,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; } @@ -15359,7 +15085,6 @@ 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 { @@ -15368,34 +15093,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTicket request - * @return GetTicketResponse + * @return GetTicketResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTicketResponse execute() throws ApiException { - ApiResponse localVarResp = getTicketWithHttpInfo(tenantId, id, userId); + public GetTicketResponse1 execute() throws ApiException { + ApiResponse localVarResp = getTicketWithHttpInfo(tenantId, id, userId); return localVarResp.getData(); } /** * Execute getTicket request with HTTP info returned - * @return ApiResponse<GetTicketResponse> + * @return ApiResponse<GetTicketResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -15409,10 +15132,9 @@ 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 getTicketAsync(tenantId, id, userId, _callback); } } @@ -15428,7 +15150,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetTicketRequest getTicket(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -15510,16 +15231,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; } @@ -15590,7 +15311,6 @@ 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 { @@ -15599,34 +15319,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTickets request - * @return GetTicketsResponse + * @return GetTicketsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetTicketsResponse execute() throws ApiException { - ApiResponse localVarResp = getTicketsWithHttpInfo(tenantId, userId, state, skip, limit); + public GetTicketsResponse1 execute() throws ApiException { + ApiResponse localVarResp = getTicketsWithHttpInfo(tenantId, userId, state, skip, limit); return localVarResp.getData(); } /** * Execute getTickets request with HTTP info returned - * @return ApiResponse<GetTicketsResponse> + * @return ApiResponse<GetTicketsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -15640,10 +15358,9 @@ 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 getTicketsAsync(tenantId, userId, state, skip, limit, _callback); } } @@ -15658,7 +15375,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetTicketsRequest getTickets(@javax.annotation.Nonnull String tenantId) { @@ -15730,16 +15446,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; } @@ -15765,7 +15481,6 @@ 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 { @@ -15774,34 +15489,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUser request - * @return GetUserResponse + * @return GetUserResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetUserResponse execute() throws ApiException { - ApiResponse localVarResp = getUserWithHttpInfo(tenantId, id); + public GetUserResponse1 execute() throws ApiException { + ApiResponse localVarResp = getUserWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getUser request with HTTP info returned - * @return ApiResponse<GetUserResponse> + * @return ApiResponse<GetUserResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -15815,10 +15528,9 @@ 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); } } @@ -15834,7 +15546,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetUserRequest getUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -15906,16 +15617,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; } @@ -15941,7 +15652,6 @@ 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 { @@ -15950,34 +15660,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadge request - * @return APIGetUserBadgeResponse + * @return GetUserBadgeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIGetUserBadgeResponse execute() throws ApiException { - ApiResponse localVarResp = getUserBadgeWithHttpInfo(tenantId, id); + public GetUserBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBadgeWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getUserBadge request with HTTP info returned - * @return ApiResponse<APIGetUserBadgeResponse> + * @return ApiResponse<GetUserBadgeResponse> * @throws ApiException If fail to call the API, e.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); } @@ -15991,10 +15699,9 @@ 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); } } @@ -16010,7 +15717,6 @@ 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) { @@ -16082,16 +15788,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; } @@ -16117,7 +15823,6 @@ 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 { @@ -16126,34 +15831,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadgeProgressById request - * @return APIGetUserBadgeProgressResponse + * @return GetUserBadgeProgressByIdResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIGetUserBadgeProgressResponse execute() throws ApiException { - ApiResponse localVarResp = getUserBadgeProgressByIdWithHttpInfo(tenantId, id); + public GetUserBadgeProgressByIdResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBadgeProgressByIdWithHttpInfo(tenantId, id); return localVarResp.getData(); } /** * Execute getUserBadgeProgressById request with HTTP info returned - * @return ApiResponse<APIGetUserBadgeProgressResponse> + * @return ApiResponse<GetUserBadgeProgressByIdResponse> * @throws ApiException If fail to call the API, e.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); } @@ -16167,10 +15870,9 @@ 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 getUserBadgeProgressByIdAsync(tenantId, id, _callback); } } @@ -16186,7 +15888,6 @@ 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) { @@ -16258,16 +15959,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; } @@ -16293,7 +15994,6 @@ 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 { @@ -16302,34 +16002,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadgeProgressByUserId request - * @return APIGetUserBadgeProgressResponse + * @return GetUserBadgeProgressByUserIdResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIGetUserBadgeProgressResponse execute() throws ApiException { - ApiResponse localVarResp = getUserBadgeProgressByUserIdWithHttpInfo(tenantId, userId); + public GetUserBadgeProgressByUserIdResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBadgeProgressByUserIdWithHttpInfo(tenantId, userId); return localVarResp.getData(); } /** * Execute getUserBadgeProgressByUserId request with HTTP info returned - * @return ApiResponse<APIGetUserBadgeProgressResponse> + * @return ApiResponse<GetUserBadgeProgressByUserIdResponse> * @throws ApiException If fail to call the API, e.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); } @@ -16343,10 +16041,9 @@ 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 getUserBadgeProgressByUserIdAsync(tenantId, userId, _callback); } } @@ -16362,7 +16059,6 @@ 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) { @@ -16440,16 +16136,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; } @@ -16508,7 +16204,6 @@ 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 { @@ -16517,34 +16212,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadgeProgressList request - * @return APIGetUserBadgeProgressListResponse + * @return GetUserBadgeProgressListResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIGetUserBadgeProgressListResponse execute() throws ApiException { - ApiResponse localVarResp = getUserBadgeProgressListWithHttpInfo(tenantId, userId, limit, skip); + public GetUserBadgeProgressListResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBadgeProgressListWithHttpInfo(tenantId, userId, limit, skip); return localVarResp.getData(); } /** * Execute getUserBadgeProgressList request with HTTP info returned - * @return ApiResponse<APIGetUserBadgeProgressListResponse> + * @return ApiResponse<GetUserBadgeProgressListResponse> * @throws ApiException If fail to call the API, e.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); } @@ -16558,10 +16251,9 @@ 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); } } @@ -16576,7 +16268,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetUserBadgeProgressListRequest getUserBadgeProgressList(@javax.annotation.Nonnull String tenantId) { @@ -16666,16 +16357,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; } @@ -16770,7 +16461,6 @@ 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 { @@ -16779,34 +16469,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadges request - * @return APIGetUserBadgesResponse + * @return GetUserBadgesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIGetUserBadgesResponse execute() throws ApiException { - ApiResponse localVarResp = getUserBadgesWithHttpInfo(tenantId, userId, badgeId, type, displayedOnComments, limit, skip); + public GetUserBadgesResponse 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<APIGetUserBadgesResponse> + * @return ApiResponse<GetUserBadgesResponse> * @throws ApiException If fail to call the API, e.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); } @@ -16820,10 +16508,9 @@ 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); } } @@ -16838,7 +16525,6 @@ 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) { @@ -16913,16 +16599,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; } @@ -16948,7 +16634,6 @@ 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 { @@ -16957,34 +16642,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getVotes request - * @return GetVotesResponse + * @return GetVotesResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetVotesResponse execute() throws ApiException { - ApiResponse localVarResp = getVotesWithHttpInfo(tenantId, urlId); + public GetVotesResponse1 execute() throws ApiException { + ApiResponse localVarResp = getVotesWithHttpInfo(tenantId, urlId); return localVarResp.getData(); } /** * Execute getVotes request with HTTP info returned - * @return ApiResponse<GetVotesResponse> + * @return ApiResponse<GetVotesResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -16998,10 +16681,9 @@ 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 getVotesAsync(tenantId, urlId, _callback); } } @@ -17017,7 +16699,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetVotesRequest getVotes(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -17100,16 +16781,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; } @@ -17159,7 +16840,6 @@ 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 { @@ -17168,34 +16848,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getVotesForUser request - * @return GetVotesForUserResponse + * @return GetVotesForUserResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetVotesForUserResponse execute() throws ApiException { - ApiResponse localVarResp = getVotesForUserWithHttpInfo(tenantId, urlId, userId, anonUserId); + public GetVotesForUserResponse1 execute() throws ApiException { + ApiResponse localVarResp = getVotesForUserWithHttpInfo(tenantId, urlId, userId, anonUserId); return localVarResp.getData(); } /** * Execute getVotesForUser request with HTTP info returned - * @return ApiResponse<GetVotesForUserResponse> + * @return ApiResponse<GetVotesForUserResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -17209,10 +16887,9 @@ 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 getVotesForUserAsync(tenantId, urlId, userId, anonUserId, _callback); } } @@ -17228,7 +16905,6 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetVotesForUserRequest getVotesForUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -17477,16 +17153,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; } @@ -17533,7 +17209,6 @@ 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 { @@ -17542,34 +17217,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute patchHashTag request - * @return UpdateHashTagResponse + * @return PatchHashTagResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public UpdateHashTagResponse execute() throws ApiException { - ApiResponse localVarResp = patchHashTagWithHttpInfo(tag, tenantId, updateHashTagBody); + public PatchHashTagResponse execute() throws ApiException { + ApiResponse localVarResp = patchHashTagWithHttpInfo(tag, tenantId, updateHashTagBody); return localVarResp.getData(); } /** * Execute patchHashTag request with HTTP info returned - * @return ApiResponse<UpdateHashTagResponse> + * @return ApiResponse<PatchHashTagResponse> * @throws ApiException If fail to call the API, e.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); } @@ -17583,10 +17256,9 @@ 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 patchHashTagAsync(tag, tenantId, updateHashTagBody, _callback); } } @@ -17601,7 +17273,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIpatchHashTagRequest patchHashTag(@javax.annotation.Nonnull String tag) { @@ -18433,16 +18104,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; } @@ -18480,7 +18151,6 @@ 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 { @@ -18489,34 +18159,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute renderEmailTemplate request - * @return RenderEmailTemplateResponse + * @return RenderEmailTemplateResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public RenderEmailTemplateResponse execute() throws ApiException { - ApiResponse localVarResp = renderEmailTemplateWithHttpInfo(tenantId, renderEmailTemplateBody, locale); + public RenderEmailTemplateResponse1 execute() throws ApiException { + ApiResponse localVarResp = renderEmailTemplateWithHttpInfo(tenantId, renderEmailTemplateBody, locale); return localVarResp.getData(); } /** * Execute renderEmailTemplate request with HTTP info returned - * @return ApiResponse<RenderEmailTemplateResponse> + * @return ApiResponse<RenderEmailTemplateResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -18530,10 +18198,9 @@ 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 renderEmailTemplateAsync(tenantId, renderEmailTemplateBody, locale, _callback); } } @@ -18549,7 +18216,6 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIrenderEmailTemplateRequest renderEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull RenderEmailTemplateBody renderEmailTemplateBody) { @@ -18627,16 +18293,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; } @@ -18665,7 +18331,6 @@ 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 { @@ -18674,34 +18339,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute replaceTenantPackage request - * @return APIEmptyResponse + * @return ReplaceTenantPackageResponse * @throws ApiException If fail to call the API, e.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 = replaceTenantPackageWithHttpInfo(tenantId, id, replaceTenantPackageBody); + public ReplaceTenantPackageResponse execute() throws ApiException { + ApiResponse localVarResp = replaceTenantPackageWithHttpInfo(tenantId, id, replaceTenantPackageBody); return localVarResp.getData(); } /** * Execute replaceTenantPackage request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<ReplaceTenantPackageResponse> * @throws ApiException If fail to call the API, e.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); } @@ -18715,10 +18378,9 @@ 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 replaceTenantPackageAsync(tenantId, id, replaceTenantPackageBody, _callback); } } @@ -18735,7 +18397,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -18817,16 +18478,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; } @@ -18867,7 +18528,6 @@ 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 { @@ -18876,34 +18536,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute replaceTenantUser request - * @return APIEmptyResponse + * @return ReplaceTenantUserResponse * @throws ApiException If fail to call the API, e.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 = replaceTenantUserWithHttpInfo(tenantId, id, replaceTenantUserBody, updateComments); + public ReplaceTenantUserResponse execute() throws ApiException { + ApiResponse localVarResp = replaceTenantUserWithHttpInfo(tenantId, id, replaceTenantUserBody, updateComments); return localVarResp.getData(); } /** * Execute replaceTenantUser request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<ReplaceTenantUserResponse> * @throws ApiException If fail to call the API, e.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); } @@ -18917,10 +18575,9 @@ 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 replaceTenantUserAsync(tenantId, id, replaceTenantUserBody, updateComments, _callback); } } @@ -18937,7 +18594,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -19025,16 +18681,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; } @@ -19108,7 +18764,6 @@ 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 { @@ -19117,34 +18772,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute saveComment request - * @return APISaveCommentResponse + * @return SaveCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APISaveCommentResponse execute() throws ApiException { - ApiResponse localVarResp = saveCommentWithHttpInfo(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications); + public SaveCommentResponse execute() throws ApiException { + ApiResponse localVarResp = saveCommentWithHttpInfo(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications); return localVarResp.getData(); } /** * Execute saveComment request with HTTP info returned - * @return ApiResponse<APISaveCommentResponse> + * @return ApiResponse<SaveCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -19158,10 +18811,9 @@ 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); } } @@ -19177,7 +18829,6 @@ 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) { @@ -19493,16 +19144,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; } @@ -19531,7 +19182,6 @@ 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 { @@ -19540,34 +19190,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute sendInvite request - * @return APIEmptyResponse + * @return SendInviteResponse * @throws ApiException If fail to call the API, e.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 = sendInviteWithHttpInfo(tenantId, id, fromName); + public SendInviteResponse execute() throws ApiException { + ApiResponse localVarResp = sendInviteWithHttpInfo(tenantId, id, fromName); return localVarResp.getData(); } /** * Execute sendInvite request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<SendInviteResponse> * @throws ApiException If fail to call the API, e.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); } @@ -19581,10 +19229,9 @@ 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 sendInviteAsync(tenantId, id, fromName, _callback); } } @@ -19601,7 +19248,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -19677,16 +19323,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; } @@ -19724,7 +19370,6 @@ 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 { @@ -19733,34 +19378,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute sendLoginLink request - * @return APIEmptyResponse + * @return SendLoginLinkResponse * @throws ApiException If fail to call the API, e.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 = sendLoginLinkWithHttpInfo(tenantId, id, redirectURL); + public SendLoginLinkResponse execute() throws ApiException { + ApiResponse localVarResp = sendLoginLinkWithHttpInfo(tenantId, id, redirectURL); return localVarResp.getData(); } /** * Execute sendLoginLink request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<SendLoginLinkResponse> * @throws ApiException If fail to call the API, e.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); } @@ -19774,10 +19417,9 @@ 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 sendLoginLinkAsync(tenantId, id, redirectURL, _callback); } } @@ -19793,7 +19435,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIsendLoginLinkRequest sendLoginLink(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -19879,16 +19520,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; } @@ -19941,7 +19582,6 @@ 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 { @@ -19950,34 +19590,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unBlockUserFromComment request - * @return UnblockSuccess + * @return UnBlockUserFromCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public UnblockSuccess execute() throws ApiException { - ApiResponse localVarResp = unBlockUserFromCommentWithHttpInfo(tenantId, id, unBlockFromCommentParams, userId, anonUserId); + public UnBlockUserFromCommentResponse execute() throws ApiException { + ApiResponse localVarResp = unBlockUserFromCommentWithHttpInfo(tenantId, id, unBlockFromCommentParams, userId, anonUserId); return localVarResp.getData(); } /** * Execute unBlockUserFromComment request with HTTP info returned - * @return ApiResponse<UnblockSuccess> + * @return ApiResponse<UnBlockUserFromCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -19991,10 +19629,9 @@ 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 unBlockUserFromCommentAsync(tenantId, id, unBlockFromCommentParams, userId, anonUserId, _callback); } } @@ -20011,7 +19648,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th Response 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) { @@ -20091,16 +19727,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; } @@ -20150,7 +19786,6 @@ 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 { @@ -20159,34 +19794,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unFlagComment request - * @return FlagCommentResponse + * @return UnFlagCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public FlagCommentResponse execute() throws ApiException { - ApiResponse localVarResp = unFlagCommentWithHttpInfo(tenantId, id, userId, anonUserId); + public UnFlagCommentResponse execute() throws ApiException { + ApiResponse localVarResp = unFlagCommentWithHttpInfo(tenantId, id, userId, anonUserId); return localVarResp.getData(); } /** * Execute unFlagComment request with HTTP info returned - * @return ApiResponse<FlagCommentResponse> + * @return ApiResponse<UnFlagCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -20200,10 +19833,9 @@ 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 unFlagCommentAsync(tenantId, id, userId, anonUserId, _callback); } } @@ -20219,7 +19851,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIunFlagCommentRequest unFlagComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -20309,16 +19940,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; } @@ -20383,7 +20014,6 @@ 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 { @@ -20392,34 +20022,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateComment request - * @return APIEmptyResponse + * @return UpdateCommentResponse * @throws ApiException If fail to call the API, e.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 = updateCommentWithHttpInfo(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive); + public UpdateCommentResponse execute() throws ApiException { + ApiResponse localVarResp = updateCommentWithHttpInfo(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive); return localVarResp.getData(); } /** * Execute updateComment request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<UpdateCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -20433,10 +20061,9 @@ 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 updateCommentAsync(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive, _callback); } } @@ -20453,7 +20080,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -20531,16 +20157,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; } @@ -20569,7 +20195,6 @@ 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 { @@ -20578,34 +20203,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateEmailTemplate request - * @return APIEmptyResponse + * @return UpdateEmailTemplateResponse * @throws ApiException If fail to call the API, e.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 = updateEmailTemplateWithHttpInfo(tenantId, id, updateEmailTemplateBody); + public UpdateEmailTemplateResponse execute() throws ApiException { + ApiResponse localVarResp = updateEmailTemplateWithHttpInfo(tenantId, id, updateEmailTemplateBody); return localVarResp.getData(); } /** * Execute updateEmailTemplate request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<UpdateEmailTemplateResponse> * @throws ApiException If fail to call the API, e.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); } @@ -20619,10 +20242,9 @@ 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 updateEmailTemplateAsync(tenantId, id, updateEmailTemplateBody, _callback); } } @@ -20639,7 +20261,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -20717,16 +20338,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; } @@ -20755,7 +20376,6 @@ 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 { @@ -20764,34 +20384,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateFeedPost request - * @return APIEmptyResponse + * @return UpdateFeedPostResponse * @throws ApiException If fail to call the API, e.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 = updateFeedPostWithHttpInfo(tenantId, id, feedPost); + public UpdateFeedPostResponse execute() throws ApiException { + ApiResponse localVarResp = updateFeedPostWithHttpInfo(tenantId, id, feedPost); return localVarResp.getData(); } /** * Execute updateFeedPost request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<UpdateFeedPostResponse> * @throws ApiException If fail to call the API, e.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); } @@ -20805,10 +20423,9 @@ 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 updateFeedPostAsync(tenantId, id, feedPost, _callback); } } @@ -20825,7 +20442,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -20903,16 +20519,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; } @@ -20941,7 +20557,6 @@ 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 { @@ -20950,34 +20565,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateModerator request - * @return APIEmptyResponse + * @return UpdateModeratorResponse * @throws ApiException If fail to call the API, e.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 = updateModeratorWithHttpInfo(tenantId, id, updateModeratorBody); + public UpdateModeratorResponse execute() throws ApiException { + ApiResponse localVarResp = updateModeratorWithHttpInfo(tenantId, id, updateModeratorBody); return localVarResp.getData(); } /** * Execute updateModerator request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<UpdateModeratorResponse> * @throws ApiException If fail to call the API, e.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); } @@ -20991,10 +20604,9 @@ 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 updateModeratorAsync(tenantId, id, updateModeratorBody, _callback); } } @@ -21011,7 +20623,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -21093,16 +20704,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; } @@ -21143,7 +20754,6 @@ 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 { @@ -21152,34 +20762,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateNotification request - * @return APIEmptyResponse + * @return UpdateNotificationResponse * @throws ApiException If fail to call the API, e.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 = updateNotificationWithHttpInfo(tenantId, id, updateNotificationBody, userId); + public UpdateNotificationResponse execute() throws ApiException { + ApiResponse localVarResp = updateNotificationWithHttpInfo(tenantId, id, updateNotificationBody, userId); return localVarResp.getData(); } /** * Execute updateNotification request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<UpdateNotificationResponse> * @throws ApiException If fail to call the API, e.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); } @@ -21193,10 +20801,9 @@ 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 updateNotificationAsync(tenantId, id, updateNotificationBody, userId, _callback); } } @@ -21213,7 +20820,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -21291,16 +20897,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; } @@ -21329,7 +20935,6 @@ 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 { @@ -21338,34 +20943,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateQuestionConfig request - * @return APIEmptyResponse + * @return UpdateQuestionConfigResponse * @throws ApiException If fail to call the API, e.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 = updateQuestionConfigWithHttpInfo(tenantId, id, updateQuestionConfigBody); + public UpdateQuestionConfigResponse execute() throws ApiException { + ApiResponse localVarResp = updateQuestionConfigWithHttpInfo(tenantId, id, updateQuestionConfigBody); return localVarResp.getData(); } /** * Execute updateQuestionConfig request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<UpdateQuestionConfigResponse> * @throws ApiException If fail to call the API, e.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); } @@ -21379,10 +20982,9 @@ 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 updateQuestionConfigAsync(tenantId, id, updateQuestionConfigBody, _callback); } } @@ -21399,7 +21001,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -21477,16 +21078,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; } @@ -21515,7 +21116,6 @@ 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 { @@ -21524,34 +21124,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateQuestionResult request - * @return APIEmptyResponse + * @return UpdateQuestionResultResponse * @throws ApiException If fail to call the API, e.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 = updateQuestionResultWithHttpInfo(tenantId, id, updateQuestionResultBody); + public UpdateQuestionResultResponse execute() throws ApiException { + ApiResponse localVarResp = updateQuestionResultWithHttpInfo(tenantId, id, updateQuestionResultBody); return localVarResp.getData(); } /** * Execute updateQuestionResult request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<UpdateQuestionResultResponse> * @throws ApiException If fail to call the API, e.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); } @@ -21565,10 +21163,9 @@ 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 updateQuestionResultAsync(tenantId, id, updateQuestionResultBody, _callback); } } @@ -21585,7 +21182,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -21860,16 +21456,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; } @@ -21898,7 +21494,6 @@ 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 { @@ -21907,34 +21502,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateTenant request - * @return APIEmptyResponse + * @return UpdateTenantResponse * @throws ApiException If fail to call the API, e.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 = updateTenantWithHttpInfo(tenantId, id, updateTenantBody); + public UpdateTenantResponse execute() throws ApiException { + ApiResponse localVarResp = updateTenantWithHttpInfo(tenantId, id, updateTenantBody); return localVarResp.getData(); } /** * Execute updateTenant request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<UpdateTenantResponse> * @throws ApiException If fail to call the API, e.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); } @@ -21948,10 +21541,9 @@ 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 updateTenantAsync(tenantId, id, updateTenantBody, _callback); } } @@ -21968,7 +21560,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -22046,16 +21637,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; } @@ -22084,7 +21675,6 @@ 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 { @@ -22093,34 +21683,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateTenantPackage request - * @return APIEmptyResponse + * @return UpdateTenantPackageResponse * @throws ApiException If fail to call the API, e.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 = updateTenantPackageWithHttpInfo(tenantId, id, updateTenantPackageBody); + public UpdateTenantPackageResponse execute() throws ApiException { + ApiResponse localVarResp = updateTenantPackageWithHttpInfo(tenantId, id, updateTenantPackageBody); return localVarResp.getData(); } /** * Execute updateTenantPackage request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<UpdateTenantPackageResponse> * @throws ApiException If fail to call the API, e.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); } @@ -22134,10 +21722,9 @@ 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 updateTenantPackageAsync(tenantId, id, updateTenantPackageBody, _callback); } } @@ -22154,7 +21741,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -22236,16 +21822,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; } @@ -22286,7 +21872,6 @@ 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 { @@ -22295,34 +21880,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateTenantUser request - * @return APIEmptyResponse + * @return UpdateTenantUserResponse * @throws ApiException If fail to call the API, e.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 = updateTenantUserWithHttpInfo(tenantId, id, updateTenantUserBody, updateComments); + public UpdateTenantUserResponse execute() throws ApiException { + ApiResponse localVarResp = updateTenantUserWithHttpInfo(tenantId, id, updateTenantUserBody, updateComments); return localVarResp.getData(); } /** * Execute updateTenantUser request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<UpdateTenantUserResponse> * @throws ApiException If fail to call the API, e.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); } @@ -22336,10 +21919,9 @@ 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 updateTenantUserAsync(tenantId, id, updateTenantUserBody, updateComments, _callback); } } @@ -22356,7 +21938,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -22434,16 +22015,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; } @@ -22472,7 +22053,6 @@ 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 { @@ -22481,34 +22061,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateUserBadge request - * @return APIEmptySuccessResponse + * @return UpdateUserBadgeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public APIEmptySuccessResponse execute() throws ApiException { - ApiResponse localVarResp = updateUserBadgeWithHttpInfo(tenantId, id, updateUserBadgeParams); + public UpdateUserBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = updateUserBadgeWithHttpInfo(tenantId, id, updateUserBadgeParams); return localVarResp.getData(); } /** * Execute updateUserBadge request with HTTP info returned - * @return ApiResponse<APIEmptySuccessResponse> + * @return ApiResponse<UpdateUserBadgeResponse> * @throws ApiException If fail to call the API, e.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); } @@ -22522,10 +22100,9 @@ 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 updateUserBadgeAsync(tenantId, id, updateUserBadgeParams, _callback); } } @@ -22542,7 +22119,6 @@ public okhttp3.Call executeAsync(final ApiCallback _cal 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 index c6475fb1..cd47dc16 100644 --- a/client/src/main/java/com/fastcomments/api/ModerationApi.java +++ b/client/src/main/java/com/fastcomments/api/ModerationApi.java @@ -27,47 +27,54 @@ 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.DeleteModerationVoteResponse; +import com.fastcomments.model.GetApiCommentsResponse; +import com.fastcomments.model.GetApiExportStatusResponse; +import com.fastcomments.model.GetApiIdsResponse; +import com.fastcomments.model.GetBanUsersFromCommentResponse; +import com.fastcomments.model.GetCommentBanStatusResponse1; +import com.fastcomments.model.GetCommentChildrenResponse; +import com.fastcomments.model.GetCountResponse; +import com.fastcomments.model.GetCountsResponse; +import com.fastcomments.model.GetLogsResponse; +import com.fastcomments.model.GetManualBadgesForUserResponse; +import com.fastcomments.model.GetManualBadgesResponse; +import com.fastcomments.model.GetModerationCommentResponse; +import com.fastcomments.model.GetModerationCommentTextResponse; +import com.fastcomments.model.GetPreBanSummaryResponse; +import com.fastcomments.model.GetSearchCommentsSummaryResponse; +import com.fastcomments.model.GetSearchPagesResponse; +import com.fastcomments.model.GetSearchSitesResponse; +import com.fastcomments.model.GetSearchSuggestResponse; +import com.fastcomments.model.GetSearchUsersResponse; +import com.fastcomments.model.GetTrustFactorResponse; +import com.fastcomments.model.GetUserBanPreferenceResponse; +import com.fastcomments.model.GetUserInternalProfileResponse1; +import com.fastcomments.model.PostAdjustCommentVotesResponse; +import com.fastcomments.model.PostApiExportResponse; +import com.fastcomments.model.PostBanUserFromCommentResponse; +import com.fastcomments.model.PostBanUserUndoResponse; +import com.fastcomments.model.PostBulkPreBanSummaryResponse; +import com.fastcomments.model.PostCommentsByIdsResponse; +import com.fastcomments.model.PostFlagCommentResponse; import com.fastcomments.model.PostRemoveCommentResponse; -import com.fastcomments.model.PreBanSummary; -import com.fastcomments.model.RemoveUserBadgeResponse; -import com.fastcomments.model.SetCommentApprovedResponse; +import com.fastcomments.model.PostRestoreDeletedCommentResponse; +import com.fastcomments.model.PostSetCommentApprovalStatusResponse; +import com.fastcomments.model.PostSetCommentReviewStatusResponse; +import com.fastcomments.model.PostSetCommentSpamStatusResponse; +import com.fastcomments.model.PostSetCommentTextResponse; +import com.fastcomments.model.PostUnFlagCommentResponse; +import com.fastcomments.model.PostVoteResponse; +import com.fastcomments.model.PutAwardBadgeResponse; +import com.fastcomments.model.PutCloseThreadResponse; +import com.fastcomments.model.PutRemoveBadgeResponse; +import com.fastcomments.model.PutReopenThreadResponse; 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 com.fastcomments.model.SetTrustFactorResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -112,7 +119,7 @@ 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 { + private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -139,6 +146,14 @@ private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String c Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -163,7 +178,7 @@ private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String c } @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 { + private okhttp3.Call deleteModerationVoteValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @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)"); @@ -174,21 +189,21 @@ private okhttp3.Call deleteModerationVoteValidateBeforeCall(@javax.annotation.No throw new ApiException("Missing the required parameter 'voteId' when calling deleteModerationVote(Async)"); } - return deleteModerationVoteCall(commentId, voteId, sso, _callback); + return deleteModerationVoteCall(commentId, voteId, broadcastId, tenantId, 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(); + private ApiResponse deleteModerationVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(commentId, voteId, broadcastId, tenantId, 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 { + private okhttp3.Call deleteModerationVoteAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(commentId, voteId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(commentId, voteId, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -199,6 +214,10 @@ public class APIdeleteModerationVoteRequest { @javax.annotation.Nonnull private final String voteId; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIdeleteModerationVoteRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { @@ -206,6 +225,26 @@ private APIdeleteModerationVoteRequest(@javax.annotation.Nonnull String commentI this.voteId = voteId; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIdeleteModerationVoteRequest + */ + public APIdeleteModerationVoteRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set tenantId + * @param tenantId (optional) + * @return APIdeleteModerationVoteRequest + */ + public APIdeleteModerationVoteRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -226,44 +265,41 @@ public APIdeleteModerationVoteRequest 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 deleteModerationVoteCall(commentId, voteId, sso, _callback); + return deleteModerationVoteCall(commentId, voteId, broadcastId, tenantId, sso, _callback); } /** * Execute deleteModerationVote request - * @return VoteDeleteResponse + * @return DeleteModerationVoteResponse * @throws ApiException If fail to call the API, e.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); + public DeleteModerationVoteResponse execute() throws ApiException { + ApiResponse localVarResp = deleteModerationVoteWithHttpInfo(commentId, voteId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute deleteModerationVote request with HTTP info returned - * @return ApiResponse<VoteDeleteResponse> + * @return ApiResponse<DeleteModerationVoteResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteModerationVoteWithHttpInfo(commentId, voteId, broadcastId, tenantId, sso); } /** @@ -276,11 +312,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 { - return deleteModerationVoteAsync(commentId, voteId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteModerationVoteAsync(commentId, voteId, broadcastId, tenantId, sso, _callback); } } @@ -295,13 +330,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback 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 { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -358,6 +392,10 @@ private okhttp3.Call getApiCommentsCall(@javax.annotation.Nullable Double page, localVarQueryParams.addAll(localVarApiClient.parameterToPair("demo", demo)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -382,22 +420,22 @@ private okhttp3.Call getApiCommentsCall(@javax.annotation.Nullable Double page, } @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 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getApiCommentsCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, 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(); + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, 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 { + 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 tenantId, @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(); + okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -420,6 +458,8 @@ public class APIgetApiCommentsRequest { @javax.annotation.Nullable private Boolean demo; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetApiCommentsRequest() { @@ -505,6 +545,16 @@ public APIgetApiCommentsRequest demo(@javax.annotation.Nullable Boolean demo) { return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetApiCommentsRequest + */ + public APIgetApiCommentsRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -525,44 +575,41 @@ public APIgetApiCommentsRequest 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 getApiCommentsCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); + return getApiCommentsCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso, _callback); } /** * Execute getApiComments request - * @return ModerationAPIGetCommentsResponse + * @return GetApiCommentsResponse * @throws ApiException If fail to call the API, e.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); + public GetApiCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = getApiCommentsWithHttpInfo(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso); return localVarResp.getData(); } /** * Execute getApiComments request with HTTP info returned - * @return ApiResponse<ModerationAPIGetCommentsResponse> + * @return ApiResponse<GetApiCommentsResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getApiCommentsWithHttpInfo(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso); } /** @@ -575,11 +622,10 @@ public ApiResponse executeWithHttpInfo() throw 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); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getApiCommentsAsync(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso, _callback); } } @@ -592,13 +638,12 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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 { + private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -627,6 +672,10 @@ private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String ba localVarQueryParams.addAll(localVarApiClient.parameterToPair("batchJobId", batchJobId)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -651,22 +700,22 @@ private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String ba } @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 okhttp3.Call getApiExportStatusValidateBeforeCall(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getApiExportStatusCall(batchJobId, tenantId, 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(); + private ApiResponse getApiExportStatusWithHttpInfo(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(batchJobId, tenantId, 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 { + private okhttp3.Call getApiExportStatusAsync(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(batchJobId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(batchJobId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -675,6 +724,8 @@ public class APIgetApiExportStatusRequest { @javax.annotation.Nullable private String batchJobId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetApiExportStatusRequest() { @@ -690,6 +741,16 @@ public APIgetApiExportStatusRequest batchJobId(@javax.annotation.Nullable String return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetApiExportStatusRequest + */ + public APIgetApiExportStatusRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -710,44 +771,41 @@ public APIgetApiExportStatusRequest 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 getApiExportStatusCall(batchJobId, sso, _callback); + return getApiExportStatusCall(batchJobId, tenantId, sso, _callback); } /** * Execute getApiExportStatus request - * @return ModerationExportStatusResponse + * @return GetApiExportStatusResponse * @throws ApiException If fail to call the API, e.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); + public GetApiExportStatusResponse execute() throws ApiException { + ApiResponse localVarResp = getApiExportStatusWithHttpInfo(batchJobId, tenantId, sso); return localVarResp.getData(); } /** * Execute getApiExportStatus request with HTTP info returned - * @return ApiResponse<ModerationExportStatusResponse> + * @return ApiResponse<GetApiExportStatusResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getApiExportStatusWithHttpInfo(batchJobId, tenantId, sso); } /** @@ -760,11 +818,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 { - return getApiExportStatusAsync(batchJobId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getApiExportStatusAsync(batchJobId, tenantId, sso, _callback); } } @@ -777,13 +834,12 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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 { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -832,6 +888,10 @@ private okhttp3.Call getApiIdsCall(@javax.annotation.Nullable String textSearch, localVarQueryParams.addAll(localVarApiClient.parameterToPair("demo", demo)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -856,22 +916,22 @@ private okhttp3.Call getApiIdsCall(@javax.annotation.Nullable String textSearch, } @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 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getApiIdsCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, 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(); + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, 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 { + 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 tenantId, @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(); + okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -890,6 +950,8 @@ public class APIgetApiIdsRequest { @javax.annotation.Nullable private Boolean demo; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetApiIdsRequest() { @@ -955,6 +1017,16 @@ public APIgetApiIdsRequest demo(@javax.annotation.Nullable Boolean demo) { return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetApiIdsRequest + */ + public APIgetApiIdsRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -975,44 +1047,41 @@ public APIgetApiIdsRequest 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 getApiIdsCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); + return getApiIdsCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso, _callback); } /** * Execute getApiIds request - * @return ModerationAPIGetCommentIdsResponse + * @return GetApiIdsResponse * @throws ApiException If fail to call the API, e.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); + public GetApiIdsResponse execute() throws ApiException { + ApiResponse localVarResp = getApiIdsWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso); return localVarResp.getData(); } /** * Execute getApiIds request with HTTP info returned - * @return ApiResponse<ModerationAPIGetCommentIdsResponse> + * @return ApiResponse<GetApiIdsResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getApiIdsWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso); } /** @@ -1025,11 +1094,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 { - return getApiIdsAsync(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getApiIdsAsync(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso, _callback); } } @@ -1042,13 +1110,12 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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 { + private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1074,6 +1141,10 @@ private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String 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)); } @@ -1098,27 +1169,27 @@ private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call getBanUsersFromCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBanUsersFromCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @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); + return getBanUsersFromCommentCall(commentId, tenantId, 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(); + private ApiResponse getBanUsersFromCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(commentId, tenantId, 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 { + private okhttp3.Call getBanUsersFromCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(commentId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1127,12 +1198,24 @@ public class APIgetBanUsersFromCommentRequest { @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetBanUsersFromCommentRequest(@javax.annotation.Nonnull String commentId) { this.commentId = commentId; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetBanUsersFromCommentRequest + */ + public APIgetBanUsersFromCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -1153,44 +1236,41 @@ public APIgetBanUsersFromCommentRequest 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 { - return getBanUsersFromCommentCall(commentId, sso, _callback); + return getBanUsersFromCommentCall(commentId, tenantId, sso, _callback); } /** * Execute getBanUsersFromComment request - * @return GetBannedUsersFromCommentResponse + * @return GetBanUsersFromCommentResponse * @throws ApiException If fail to call the API, e.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); + public GetBanUsersFromCommentResponse execute() throws ApiException { + ApiResponse localVarResp = getBanUsersFromCommentWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getBanUsersFromComment request with HTTP info returned - * @return ApiResponse<GetBannedUsersFromCommentResponse> + * @return ApiResponse<GetBanUsersFromCommentResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getBanUsersFromCommentWithHttpInfo(commentId, tenantId, sso); } /** @@ -1203,11 +1283,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 { - return getBanUsersFromCommentAsync(commentId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getBanUsersFromCommentAsync(commentId, tenantId, sso, _callback); } } @@ -1221,13 +1300,12 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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 { + private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1253,6 +1331,10 @@ private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String co 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)); } @@ -1277,27 +1359,27 @@ private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String co } @SuppressWarnings("rawtypes") - private okhttp3.Call getCommentBanStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentBanStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @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); + return getCommentBanStatusCall(commentId, tenantId, 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(); + private ApiResponse getCommentBanStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(commentId, tenantId, 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 { + private okhttp3.Call getCommentBanStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(commentId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1306,12 +1388,24 @@ public class APIgetCommentBanStatusRequest { @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetCommentBanStatusRequest(@javax.annotation.Nonnull String commentId) { this.commentId = commentId; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetCommentBanStatusRequest + */ + public APIgetCommentBanStatusRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -1332,44 +1426,41 @@ public APIgetCommentBanStatusRequest 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 getCommentBanStatusCall(commentId, sso, _callback); + return getCommentBanStatusCall(commentId, tenantId, sso, _callback); } /** * Execute getCommentBanStatus request - * @return GetCommentBanStatusResponse + * @return GetCommentBanStatusResponse1 * @throws ApiException If fail to call the API, e.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); + public GetCommentBanStatusResponse1 execute() throws ApiException { + ApiResponse localVarResp = getCommentBanStatusWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getCommentBanStatus request with HTTP info returned - * @return ApiResponse<GetCommentBanStatusResponse> + * @return ApiResponse<GetCommentBanStatusResponse1> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCommentBanStatusWithHttpInfo(commentId, tenantId, sso); } /** @@ -1382,11 +1473,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 { - return getCommentBanStatusAsync(commentId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCommentBanStatusAsync(commentId, tenantId, sso, _callback); } } @@ -1400,13 +1490,12 @@ public okhttp3.Call executeAsync(final ApiCallback 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 { + private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1432,6 +1521,10 @@ private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String com 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)); } @@ -1456,27 +1549,27 @@ private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String com } @SuppressWarnings("rawtypes") - private okhttp3.Call getCommentChildrenValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentChildrenValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @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); + return getCommentChildrenCall(commentId, tenantId, 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(); + private ApiResponse getCommentChildrenWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(commentId, tenantId, 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 { + private okhttp3.Call getCommentChildrenAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(commentId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1485,12 +1578,24 @@ public class APIgetCommentChildrenRequest { @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetCommentChildrenRequest(@javax.annotation.Nonnull String commentId) { this.commentId = commentId; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetCommentChildrenRequest + */ + public APIgetCommentChildrenRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -1511,44 +1616,41 @@ public APIgetCommentChildrenRequest 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 getCommentChildrenCall(commentId, sso, _callback); + return getCommentChildrenCall(commentId, tenantId, sso, _callback); } /** * Execute getCommentChildren request - * @return ModerationAPIChildCommentsResponse + * @return GetCommentChildrenResponse * @throws ApiException If fail to call the API, e.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); + public GetCommentChildrenResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentChildrenWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getCommentChildren request with HTTP info returned - * @return ApiResponse<ModerationAPIChildCommentsResponse> + * @return ApiResponse<GetCommentChildrenResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCommentChildrenWithHttpInfo(commentId, tenantId, sso); } /** @@ -1561,11 +1663,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 { - return getCommentChildrenAsync(commentId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCommentChildrenAsync(commentId, tenantId, sso, _callback); } } @@ -1579,13 +1680,12 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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 { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1630,6 +1730,10 @@ private okhttp3.Call getCountCall(@javax.annotation.Nullable String textSearch, localVarQueryParams.addAll(localVarApiClient.parameterToPair("demo", demo)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -1654,22 +1758,22 @@ private okhttp3.Call getCountCall(@javax.annotation.Nullable String textSearch, } @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 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getCountCall(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, 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(); + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCountValidateBeforeCall(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, 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 { + 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 tenantId, @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(); + okhttp3.Call localVarCall = getCountValidateBeforeCall(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1686,6 +1790,8 @@ public class APIgetCountRequest { @javax.annotation.Nullable private Boolean demo; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetCountRequest() { @@ -1741,6 +1847,16 @@ public APIgetCountRequest demo(@javax.annotation.Nullable Boolean demo) { return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetCountRequest + */ + public APIgetCountRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -1761,44 +1877,41 @@ public APIgetCountRequest 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 getCountCall(textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); + return getCountCall(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso, _callback); } /** * Execute getCount request - * @return ModerationAPICountCommentsResponse + * @return GetCountResponse * @throws ApiException If fail to call the API, e.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); + public GetCountResponse execute() throws ApiException { + ApiResponse localVarResp = getCountWithHttpInfo(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso); return localVarResp.getData(); } /** * Execute getCount request with HTTP info returned - * @return ApiResponse<ModerationAPICountCommentsResponse> + * @return ApiResponse<GetCountResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCountWithHttpInfo(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso); } /** @@ -1811,11 +1924,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 { - return getCountAsync(textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCountAsync(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso, _callback); } } @@ -1828,13 +1940,12 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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 { + private okhttp3.Call getCountsCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1859,6 +1970,10 @@ private okhttp3.Call getCountsCall(@javax.annotation.Nullable String sso, final 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)); } @@ -1883,33 +1998,45 @@ private okhttp3.Call getCountsCall(@javax.annotation.Nullable String sso, final } @SuppressWarnings("rawtypes") - private okhttp3.Call getCountsValidateBeforeCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getCountsCall(sso, _callback); + private okhttp3.Call getCountsValidateBeforeCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getCountsCall(tenantId, sso, _callback); } - private ApiResponse getCountsWithHttpInfo(@javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getCountsValidateBeforeCall(sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getCountsWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCountsValidateBeforeCall(tenantId, 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 { + private okhttp3.Call getCountsAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCountsValidateBeforeCall(sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getCountsValidateBeforeCall(tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetCountsRequest { + @javax.annotation.Nullable + private String tenantId; @javax.annotation.Nullable private String sso; private APIgetCountsRequest() { } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetCountsRequest + */ + public APIgetCountsRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -1930,44 +2057,41 @@ public APIgetCountsRequest 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 getCountsCall(sso, _callback); + return getCountsCall(tenantId, sso, _callback); } /** * Execute getCounts request - * @return GetBannedUsersCountResponse + * @return GetCountsResponse * @throws ApiException If fail to call the API, e.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); + public GetCountsResponse execute() throws ApiException { + ApiResponse localVarResp = getCountsWithHttpInfo(tenantId, sso); return localVarResp.getData(); } /** * Execute getCounts request with HTTP info returned - * @return ApiResponse<GetBannedUsersCountResponse> + * @return ApiResponse<GetCountsResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getCountsWithHttpInfo(tenantId, sso); } /** @@ -1980,11 +2104,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 { - return getCountsAsync(sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getCountsAsync(tenantId, sso, _callback); } } @@ -1997,13 +2120,12 @@ public okhttp3.Call executeAsync(final ApiCallback 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 { + private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2029,6 +2151,10 @@ private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String commentId, @ja 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)); } @@ -2053,27 +2179,27 @@ private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String commentId, @ja } @SuppressWarnings("rawtypes") - private okhttp3.Call getLogsValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLogsValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @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); + return getLogsCall(commentId, tenantId, 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(); + private ApiResponse getLogsWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getLogsValidateBeforeCall(commentId, tenantId, 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 { + private okhttp3.Call getLogsAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getLogsValidateBeforeCall(commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getLogsValidateBeforeCall(commentId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2082,12 +2208,24 @@ public class APIgetLogsRequest { @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetLogsRequest(@javax.annotation.Nonnull String commentId) { this.commentId = commentId; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetLogsRequest + */ + public APIgetLogsRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -2108,44 +2246,41 @@ public APIgetLogsRequest 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 getLogsCall(commentId, sso, _callback); + return getLogsCall(commentId, tenantId, sso, _callback); } /** * Execute getLogs request - * @return ModerationAPIGetLogsResponse + * @return GetLogsResponse * @throws ApiException If fail to call the API, e.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); + public GetLogsResponse execute() throws ApiException { + ApiResponse localVarResp = getLogsWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getLogs request with HTTP info returned - * @return ApiResponse<ModerationAPIGetLogsResponse> + * @return ApiResponse<GetLogsResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getLogsWithHttpInfo(commentId, tenantId, sso); } /** @@ -2158,11 +2293,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 { - return getLogsAsync(commentId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getLogsAsync(commentId, tenantId, sso, _callback); } } @@ -2176,13 +2310,12 @@ public okhttp3.Call executeAsync(final ApiCallback 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 { + private okhttp3.Call getManualBadgesCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2207,6 +2340,10 @@ private okhttp3.Call getManualBadgesCall(@javax.annotation.Nullable String sso, 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)); } @@ -2231,33 +2368,45 @@ private okhttp3.Call getManualBadgesCall(@javax.annotation.Nullable String sso, } @SuppressWarnings("rawtypes") - private okhttp3.Call getManualBadgesValidateBeforeCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getManualBadgesCall(sso, _callback); + private okhttp3.Call getManualBadgesValidateBeforeCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getManualBadgesCall(tenantId, sso, _callback); } - private ApiResponse getManualBadgesWithHttpInfo(@javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getManualBadgesWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(tenantId, 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 { + private okhttp3.Call getManualBadgesAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetManualBadgesRequest { + @javax.annotation.Nullable + private String tenantId; @javax.annotation.Nullable private String sso; private APIgetManualBadgesRequest() { } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetManualBadgesRequest + */ + public APIgetManualBadgesRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -2278,44 +2427,41 @@ public APIgetManualBadgesRequest 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 getManualBadgesCall(sso, _callback); + return getManualBadgesCall(tenantId, sso, _callback); } /** * Execute getManualBadges request - * @return GetTenantManualBadgesResponse + * @return GetManualBadgesResponse * @throws ApiException If fail to call the API, e.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); + public GetManualBadgesResponse execute() throws ApiException { + ApiResponse localVarResp = getManualBadgesWithHttpInfo(tenantId, sso); return localVarResp.getData(); } /** * Execute getManualBadges request with HTTP info returned - * @return ApiResponse<GetTenantManualBadgesResponse> + * @return ApiResponse<GetManualBadgesResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getManualBadgesWithHttpInfo(tenantId, sso); } /** @@ -2328,11 +2474,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 { - return getManualBadgesAsync(sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getManualBadgesAsync(tenantId, sso, _callback); } } @@ -2345,13 +2490,12 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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 { + private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2384,6 +2528,10 @@ private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("commentId", commentId)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -2408,22 +2556,22 @@ private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable Strin } @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 okhttp3.Call getManualBadgesForUserValidateBeforeCall(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getManualBadgesForUserCall(badgesUserId, commentId, tenantId, 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(); + private ApiResponse getManualBadgesForUserWithHttpInfo(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(badgesUserId, commentId, tenantId, 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 { + private okhttp3.Call getManualBadgesForUserAsync(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(badgesUserId, commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(badgesUserId, commentId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2434,6 +2582,8 @@ public class APIgetManualBadgesForUserRequest { @javax.annotation.Nullable private String commentId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetManualBadgesForUserRequest() { @@ -2459,6 +2609,16 @@ public APIgetManualBadgesForUserRequest commentId(@javax.annotation.Nullable Str return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetManualBadgesForUserRequest + */ + public APIgetManualBadgesForUserRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -2479,44 +2639,41 @@ public APIgetManualBadgesForUserRequest 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 { - return getManualBadgesForUserCall(badgesUserId, commentId, sso, _callback); + return getManualBadgesForUserCall(badgesUserId, commentId, tenantId, sso, _callback); } /** * Execute getManualBadgesForUser request - * @return GetUserManualBadgesResponse + * @return GetManualBadgesForUserResponse * @throws ApiException If fail to call the API, e.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); + public GetManualBadgesForUserResponse execute() throws ApiException { + ApiResponse localVarResp = getManualBadgesForUserWithHttpInfo(badgesUserId, commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getManualBadgesForUser request with HTTP info returned - * @return ApiResponse<GetUserManualBadgesResponse> + * @return ApiResponse<GetManualBadgesForUserResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getManualBadgesForUserWithHttpInfo(badgesUserId, commentId, tenantId, sso); } /** @@ -2529,11 +2686,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 { - return getManualBadgesForUserAsync(badgesUserId, commentId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getManualBadgesForUserAsync(badgesUserId, commentId, tenantId, sso, _callback); } } @@ -2546,13 +2702,12 @@ public okhttp3.Call executeAsync(final ApiCallback 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 { + private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2586,6 +2741,10 @@ private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String c localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeIP", includeIP)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -2610,27 +2769,27 @@ private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String c } @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 { + private okhttp3.Call getModerationCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String tenantId, @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); + return getModerationCommentCall(commentId, includeEmail, includeIP, tenantId, 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(); + private ApiResponse getModerationCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(commentId, includeEmail, includeIP, tenantId, 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 { + private okhttp3.Call getModerationCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(commentId, includeEmail, includeIP, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(commentId, includeEmail, includeIP, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2643,6 +2802,8 @@ public class APIgetModerationCommentRequest { @javax.annotation.Nullable private Boolean includeIP; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetModerationCommentRequest(@javax.annotation.Nonnull String commentId) { @@ -2669,6 +2830,16 @@ public APIgetModerationCommentRequest includeIP(@javax.annotation.Nullable Boole return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetModerationCommentRequest + */ + public APIgetModerationCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -2689,44 +2860,41 @@ public APIgetModerationCommentRequest 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 getModerationCommentCall(commentId, includeEmail, includeIP, sso, _callback); + return getModerationCommentCall(commentId, includeEmail, includeIP, tenantId, sso, _callback); } /** * Execute getModerationComment request - * @return ModerationAPICommentResponse + * @return GetModerationCommentResponse * @throws ApiException If fail to call the API, e.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); + public GetModerationCommentResponse execute() throws ApiException { + ApiResponse localVarResp = getModerationCommentWithHttpInfo(commentId, includeEmail, includeIP, tenantId, sso); return localVarResp.getData(); } /** * Execute getModerationComment request with HTTP info returned - * @return ApiResponse<ModerationAPICommentResponse> + * @return ApiResponse<GetModerationCommentResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getModerationCommentWithHttpInfo(commentId, includeEmail, includeIP, tenantId, sso); } /** @@ -2739,11 +2907,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 { - return getModerationCommentAsync(commentId, includeEmail, includeIP, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getModerationCommentAsync(commentId, includeEmail, includeIP, tenantId, sso, _callback); } } @@ -2757,13 +2924,12 @@ public okhttp3.Call executeAsync(final ApiCallback 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 { + private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2789,6 +2955,10 @@ private okhttp3.Call getModerationCommentTextCall(@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)); } @@ -2813,27 +2983,27 @@ private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call getModerationCommentTextValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentTextValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @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); + return getModerationCommentTextCall(commentId, tenantId, 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(); + private ApiResponse getModerationCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(commentId, tenantId, 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 { + private okhttp3.Call getModerationCommentTextAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(commentId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2842,12 +3012,24 @@ public class APIgetModerationCommentTextRequest { @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetModerationCommentTextRequest(@javax.annotation.Nonnull String commentId) { this.commentId = commentId; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetModerationCommentTextRequest + */ + public APIgetModerationCommentTextRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -2868,44 +3050,41 @@ public APIgetModerationCommentTextRequest 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 { - return getModerationCommentTextCall(commentId, sso, _callback); + return getModerationCommentTextCall(commentId, tenantId, sso, _callback); } /** * Execute getModerationCommentText request - * @return GetCommentTextResponse + * @return GetModerationCommentTextResponse * @throws ApiException If fail to call the API, e.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); + public GetModerationCommentTextResponse execute() throws ApiException { + ApiResponse localVarResp = getModerationCommentTextWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getModerationCommentText request with HTTP info returned - * @return ApiResponse<GetCommentTextResponse> + * @return ApiResponse<GetModerationCommentTextResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getModerationCommentTextWithHttpInfo(commentId, tenantId, sso); } /** @@ -2918,11 +3097,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 { - return getModerationCommentTextAsync(commentId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getModerationCommentTextAsync(commentId, tenantId, sso, _callback); } } @@ -2936,13 +3114,12 @@ public okhttp3.Call executeAsync(final ApiCallback _call 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 { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2980,6 +3157,10 @@ private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String comme localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByEmailDomain", includeByEmailDomain)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -3004,27 +3185,27 @@ private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String comme } @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 { + 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 tenantId, @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); + return getPreBanSummaryCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, 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(); + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, 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 { + 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 tenantId, @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(); + okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3039,6 +3220,8 @@ public class APIgetPreBanSummaryRequest { @javax.annotation.Nullable private Boolean includeByEmailDomain; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetPreBanSummaryRequest(@javax.annotation.Nonnull String commentId) { @@ -3075,6 +3258,16 @@ public APIgetPreBanSummaryRequest includeByEmailDomain(@javax.annotation.Nullabl return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetPreBanSummaryRequest + */ + public APIgetPreBanSummaryRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -3095,44 +3288,41 @@ public APIgetPreBanSummaryRequest 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 getPreBanSummaryCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + return getPreBanSummaryCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); } /** * Execute getPreBanSummary request - * @return PreBanSummary + * @return GetPreBanSummaryResponse * @throws ApiException If fail to call the API, e.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); + public GetPreBanSummaryResponse execute() throws ApiException { + ApiResponse localVarResp = getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); return localVarResp.getData(); } /** * Execute getPreBanSummary request with HTTP info returned - * @return ApiResponse<PreBanSummary> + * @return ApiResponse<GetPreBanSummaryResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); } /** @@ -3145,11 +3335,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 { - return getPreBanSummaryAsync(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getPreBanSummaryAsync(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); } } @@ -3163,13 +3352,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr 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 { + private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3206,6 +3394,10 @@ private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchFilters", searchFilters)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -3230,22 +3422,22 @@ private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable Str } @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 okhttp3.Call getSearchCommentsSummaryValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getSearchCommentsSummaryCall(value, filters, searchFilters, tenantId, 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(); + private ApiResponse getSearchCommentsSummaryWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(value, filters, searchFilters, tenantId, 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 { + private okhttp3.Call getSearchCommentsSummaryAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(value, filters, searchFilters, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(value, filters, searchFilters, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3258,6 +3450,8 @@ public class APIgetSearchCommentsSummaryRequest { @javax.annotation.Nullable private String searchFilters; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetSearchCommentsSummaryRequest() { @@ -3293,6 +3487,16 @@ public APIgetSearchCommentsSummaryRequest searchFilters(@javax.annotation.Nullab return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetSearchCommentsSummaryRequest + */ + public APIgetSearchCommentsSummaryRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -3313,44 +3517,41 @@ public APIgetSearchCommentsSummaryRequest 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 { - return getSearchCommentsSummaryCall(value, filters, searchFilters, sso, _callback); + return getSearchCommentsSummaryCall(value, filters, searchFilters, tenantId, sso, _callback); } /** * Execute getSearchCommentsSummary request - * @return ModerationCommentSearchResponse + * @return GetSearchCommentsSummaryResponse * @throws ApiException If fail to call the API, e.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); + public GetSearchCommentsSummaryResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchCommentsSummaryWithHttpInfo(value, filters, searchFilters, tenantId, sso); return localVarResp.getData(); } /** * Execute getSearchCommentsSummary request with HTTP info returned - * @return ApiResponse<ModerationCommentSearchResponse> + * @return ApiResponse<GetSearchCommentsSummaryResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getSearchCommentsSummaryWithHttpInfo(value, filters, searchFilters, tenantId, sso); } /** @@ -3363,11 +3564,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 { - return getSearchCommentsSummaryAsync(value, filters, searchFilters, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getSearchCommentsSummaryAsync(value, filters, searchFilters, tenantId, sso, _callback); } } @@ -3380,13 +3580,12 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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 { + private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3415,6 +3614,10 @@ private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -3439,22 +3642,22 @@ private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, } @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 okhttp3.Call getSearchPagesValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getSearchPagesCall(value, tenantId, 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(); + private ApiResponse getSearchPagesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(value, tenantId, 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 { + private okhttp3.Call getSearchPagesAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(value, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(value, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3463,6 +3666,8 @@ public class APIgetSearchPagesRequest { @javax.annotation.Nullable private String value; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetSearchPagesRequest() { @@ -3478,6 +3683,16 @@ public APIgetSearchPagesRequest value(@javax.annotation.Nullable String value) { return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetSearchPagesRequest + */ + public APIgetSearchPagesRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -3498,44 +3713,41 @@ public APIgetSearchPagesRequest 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 getSearchPagesCall(value, sso, _callback); + return getSearchPagesCall(value, tenantId, sso, _callback); } /** * Execute getSearchPages request - * @return ModerationPageSearchResponse + * @return GetSearchPagesResponse * @throws ApiException If fail to call the API, e.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); + public GetSearchPagesResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchPagesWithHttpInfo(value, tenantId, sso); return localVarResp.getData(); } /** * Execute getSearchPages request with HTTP info returned - * @return ApiResponse<ModerationPageSearchResponse> + * @return ApiResponse<GetSearchPagesResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getSearchPagesWithHttpInfo(value, tenantId, sso); } /** @@ -3548,11 +3760,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 { - return getSearchPagesAsync(value, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getSearchPagesAsync(value, tenantId, sso, _callback); } } @@ -3565,13 +3776,12 @@ public okhttp3.Call executeAsync(final ApiCallback 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 { + private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3600,6 +3810,10 @@ private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -3624,22 +3838,22 @@ private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, } @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 okhttp3.Call getSearchSitesValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getSearchSitesCall(value, tenantId, 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(); + private ApiResponse getSearchSitesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(value, tenantId, 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 { + private okhttp3.Call getSearchSitesAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(value, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(value, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3648,6 +3862,8 @@ public class APIgetSearchSitesRequest { @javax.annotation.Nullable private String value; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetSearchSitesRequest() { @@ -3663,6 +3879,16 @@ public APIgetSearchSitesRequest value(@javax.annotation.Nullable String value) { return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetSearchSitesRequest + */ + public APIgetSearchSitesRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -3683,44 +3909,41 @@ public APIgetSearchSitesRequest 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 getSearchSitesCall(value, sso, _callback); + return getSearchSitesCall(value, tenantId, sso, _callback); } /** * Execute getSearchSites request - * @return ModerationSiteSearchResponse + * @return GetSearchSitesResponse * @throws ApiException If fail to call the API, e.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); + public GetSearchSitesResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchSitesWithHttpInfo(value, tenantId, sso); return localVarResp.getData(); } /** * Execute getSearchSites request with HTTP info returned - * @return ApiResponse<ModerationSiteSearchResponse> + * @return ApiResponse<GetSearchSitesResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getSearchSitesWithHttpInfo(value, tenantId, sso); } /** @@ -3733,11 +3956,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 { - return getSearchSitesAsync(value, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getSearchSitesAsync(value, tenantId, sso, _callback); } } @@ -3750,13 +3972,12 @@ public okhttp3.Call executeAsync(final ApiCallback 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 { + private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3785,6 +4006,10 @@ private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String text localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -3809,22 +4034,22 @@ private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String text } @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 okhttp3.Call getSearchSuggestValidateBeforeCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getSearchSuggestCall(textSearch, tenantId, 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(); + private ApiResponse getSearchSuggestWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(textSearch, tenantId, 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 { + private okhttp3.Call getSearchSuggestAsync(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(textSearch, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(textSearch, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3833,6 +4058,8 @@ public class APIgetSearchSuggestRequest { @javax.annotation.Nullable private String textSearch; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetSearchSuggestRequest() { @@ -3848,6 +4075,16 @@ public APIgetSearchSuggestRequest textSearch(@javax.annotation.Nullable String t return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetSearchSuggestRequest + */ + public APIgetSearchSuggestRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -3868,44 +4105,41 @@ public APIgetSearchSuggestRequest 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 getSearchSuggestCall(textSearch, sso, _callback); + return getSearchSuggestCall(textSearch, tenantId, sso, _callback); } /** * Execute getSearchSuggest request - * @return ModerationSuggestResponse + * @return GetSearchSuggestResponse * @throws ApiException If fail to call the API, e.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); + public GetSearchSuggestResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchSuggestWithHttpInfo(textSearch, tenantId, sso); return localVarResp.getData(); } /** * Execute getSearchSuggest request with HTTP info returned - * @return ApiResponse<ModerationSuggestResponse> + * @return ApiResponse<GetSearchSuggestResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getSearchSuggestWithHttpInfo(textSearch, tenantId, sso); } /** @@ -3918,11 +4152,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 { - return getSearchSuggestAsync(textSearch, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getSearchSuggestAsync(textSearch, tenantId, sso, _callback); } } @@ -3935,13 +4168,12 @@ public okhttp3.Call executeAsync(final ApiCallback _c 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 { + private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3970,6 +4202,10 @@ private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -3994,22 +4230,22 @@ private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, } @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 okhttp3.Call getSearchUsersValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getSearchUsersCall(value, tenantId, 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(); + private ApiResponse getSearchUsersWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(value, tenantId, 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 { + private okhttp3.Call getSearchUsersAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(value, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(value, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4018,6 +4254,8 @@ public class APIgetSearchUsersRequest { @javax.annotation.Nullable private String value; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetSearchUsersRequest() { @@ -4033,6 +4271,16 @@ public APIgetSearchUsersRequest value(@javax.annotation.Nullable String value) { return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetSearchUsersRequest + */ + public APIgetSearchUsersRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -4053,44 +4301,41 @@ public APIgetSearchUsersRequest 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 getSearchUsersCall(value, sso, _callback); + return getSearchUsersCall(value, tenantId, sso, _callback); } /** * Execute getSearchUsers request - * @return ModerationUserSearchResponse + * @return GetSearchUsersResponse * @throws ApiException If fail to call the API, e.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); + public GetSearchUsersResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchUsersWithHttpInfo(value, tenantId, sso); return localVarResp.getData(); } /** * Execute getSearchUsers request with HTTP info returned - * @return ApiResponse<ModerationUserSearchResponse> + * @return ApiResponse<GetSearchUsersResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getSearchUsersWithHttpInfo(value, tenantId, sso); } /** @@ -4103,11 +4348,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 { - return getSearchUsersAsync(value, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getSearchUsersAsync(value, tenantId, sso, _callback); } } @@ -4120,13 +4364,12 @@ public okhttp3.Call executeAsync(final ApiCallback 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 { + private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4155,6 +4398,10 @@ private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -4179,22 +4426,22 @@ private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId } @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 okhttp3.Call getTrustFactorValidateBeforeCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getTrustFactorCall(userId, tenantId, 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(); + private ApiResponse getTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(userId, tenantId, 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 { + private okhttp3.Call getTrustFactorAsync(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(userId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(userId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4203,6 +4450,8 @@ public class APIgetTrustFactorRequest { @javax.annotation.Nullable private String userId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetTrustFactorRequest() { @@ -4218,6 +4467,16 @@ public APIgetTrustFactorRequest userId(@javax.annotation.Nullable String userId) return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetTrustFactorRequest + */ + public APIgetTrustFactorRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -4238,44 +4497,41 @@ public APIgetTrustFactorRequest 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 getTrustFactorCall(userId, sso, _callback); + return getTrustFactorCall(userId, tenantId, sso, _callback); } /** * Execute getTrustFactor request - * @return GetUserTrustFactorResponse + * @return GetTrustFactorResponse * @throws ApiException If fail to call the API, e.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); + public GetTrustFactorResponse execute() throws ApiException { + ApiResponse localVarResp = getTrustFactorWithHttpInfo(userId, tenantId, sso); return localVarResp.getData(); } /** * Execute getTrustFactor request with HTTP info returned - * @return ApiResponse<GetUserTrustFactorResponse> + * @return ApiResponse<GetTrustFactorResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getTrustFactorWithHttpInfo(userId, tenantId, sso); } /** @@ -4288,11 +4544,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 { - return getTrustFactorAsync(userId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getTrustFactorAsync(userId, tenantId, sso, _callback); } } @@ -4305,13 +4560,12 @@ public okhttp3.Call executeAsync(final ApiCallback _ 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 { + private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4336,6 +4590,10 @@ private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nullable String 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)); } @@ -4360,33 +4618,45 @@ private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nullable String } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserBanPreferenceValidateBeforeCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getUserBanPreferenceCall(sso, _callback); + private okhttp3.Call getUserBanPreferenceValidateBeforeCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getUserBanPreferenceCall(tenantId, sso, _callback); } - private ApiResponse getUserBanPreferenceWithHttpInfo(@javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getUserBanPreferenceWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(tenantId, 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 { + private okhttp3.Call getUserBanPreferenceAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetUserBanPreferenceRequest { + @javax.annotation.Nullable + private String tenantId; @javax.annotation.Nullable private String sso; private APIgetUserBanPreferenceRequest() { } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetUserBanPreferenceRequest + */ + public APIgetUserBanPreferenceRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -4407,44 +4677,41 @@ public APIgetUserBanPreferenceRequest 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 getUserBanPreferenceCall(sso, _callback); + return getUserBanPreferenceCall(tenantId, sso, _callback); } /** * Execute getUserBanPreference request - * @return APIModerateGetUserBanPreferencesResponse + * @return GetUserBanPreferenceResponse * @throws ApiException If fail to call the API, e.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); + public GetUserBanPreferenceResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBanPreferenceWithHttpInfo(tenantId, sso); return localVarResp.getData(); } /** * Execute getUserBanPreference request with HTTP info returned - * @return ApiResponse<APIModerateGetUserBanPreferencesResponse> + * @return ApiResponse<GetUserBanPreferenceResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getUserBanPreferenceWithHttpInfo(tenantId, sso); } /** @@ -4457,11 +4724,10 @@ public ApiResponse executeWithHttpInfo Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getUserBanPreferenceAsync(sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getUserBanPreferenceAsync(tenantId, sso, _callback); } } @@ -4474,13 +4740,12 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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 { + private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4509,6 +4774,10 @@ private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("commentId", commentId)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -4533,22 +4802,22 @@ private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable Strin } @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 okhttp3.Call getUserInternalProfileValidateBeforeCall(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return getUserInternalProfileCall(commentId, tenantId, 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(); + private ApiResponse getUserInternalProfileWithHttpInfo(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(commentId, tenantId, 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 { + private okhttp3.Call getUserInternalProfileAsync(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(commentId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4557,6 +4826,8 @@ public class APIgetUserInternalProfileRequest { @javax.annotation.Nullable private String commentId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIgetUserInternalProfileRequest() { @@ -4572,6 +4843,16 @@ public APIgetUserInternalProfileRequest commentId(@javax.annotation.Nullable Str return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIgetUserInternalProfileRequest + */ + public APIgetUserInternalProfileRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -4592,44 +4873,41 @@ public APIgetUserInternalProfileRequest 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 { - return getUserInternalProfileCall(commentId, sso, _callback); + return getUserInternalProfileCall(commentId, tenantId, sso, _callback); } /** * Execute getUserInternalProfile request - * @return GetUserInternalProfileResponse + * @return GetUserInternalProfileResponse1 * @throws ApiException If fail to call the API, e.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); + public GetUserInternalProfileResponse1 execute() throws ApiException { + ApiResponse localVarResp = getUserInternalProfileWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getUserInternalProfile request with HTTP info returned - * @return ApiResponse<GetUserInternalProfileResponse> + * @return ApiResponse<GetUserInternalProfileResponse1> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getUserInternalProfileWithHttpInfo(commentId, tenantId, sso); } /** @@ -4642,11 +4920,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 { - return getUserInternalProfileAsync(commentId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getUserInternalProfileAsync(commentId, tenantId, sso, _callback); } } @@ -4659,13 +4936,12 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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 { + private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4691,6 +4967,14 @@ private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -4716,7 +5000,7 @@ private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String } @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 { + private okhttp3.Call postAdjustCommentVotesValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @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)"); @@ -4727,21 +5011,21 @@ private okhttp3.Call postAdjustCommentVotesValidateBeforeCall(@javax.annotation. throw new ApiException("Missing the required parameter 'adjustCommentVotesParams' when calling postAdjustCommentVotes(Async)"); } - return postAdjustCommentVotesCall(commentId, adjustCommentVotesParams, sso, _callback); + return postAdjustCommentVotesCall(commentId, adjustCommentVotesParams, broadcastId, tenantId, 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(); + private ApiResponse postAdjustCommentVotesWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(commentId, adjustCommentVotesParams, broadcastId, tenantId, 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 { + private okhttp3.Call postAdjustCommentVotesAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(commentId, adjustCommentVotesParams, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4752,6 +5036,10 @@ public class APIpostAdjustCommentVotesRequest { @javax.annotation.Nonnull private final AdjustCommentVotesParams adjustCommentVotesParams; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostAdjustCommentVotesRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { @@ -4759,6 +5047,26 @@ private APIpostAdjustCommentVotesRequest(@javax.annotation.Nonnull String commen this.adjustCommentVotesParams = adjustCommentVotesParams; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostAdjustCommentVotesRequest + */ + public APIpostAdjustCommentVotesRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostAdjustCommentVotesRequest + */ + public APIpostAdjustCommentVotesRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -4779,44 +5087,41 @@ public APIpostAdjustCommentVotesRequest 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 { - return postAdjustCommentVotesCall(commentId, adjustCommentVotesParams, sso, _callback); + return postAdjustCommentVotesCall(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso, _callback); } /** * Execute postAdjustCommentVotes request - * @return AdjustVotesResponse + * @return PostAdjustCommentVotesResponse * @throws ApiException If fail to call the API, e.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); + public PostAdjustCommentVotesResponse execute() throws ApiException { + ApiResponse localVarResp = postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postAdjustCommentVotes request with HTTP info returned - * @return ApiResponse<AdjustVotesResponse> + * @return ApiResponse<PostAdjustCommentVotesResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso); } /** @@ -4829,11 +5134,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 { - return postAdjustCommentVotesAsync(commentId, adjustCommentVotesParams, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postAdjustCommentVotesAsync(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso, _callback); } } @@ -4848,13 +5152,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac 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 { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4899,6 +5202,10 @@ private okhttp3.Call postApiExportCall(@javax.annotation.Nullable String textSea localVarQueryParams.addAll(localVarApiClient.parameterToPair("sorts", sorts)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -4923,22 +5230,22 @@ private okhttp3.Call postApiExportCall(@javax.annotation.Nullable String textSea } @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 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return postApiExportCall(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, 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(); + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postApiExportValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, 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 { + 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 tenantId, @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(); + okhttp3.Call localVarCall = postApiExportValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4955,6 +5262,8 @@ public class APIpostApiExportRequest { @javax.annotation.Nullable private String sorts; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostApiExportRequest() { @@ -5010,6 +5319,16 @@ public APIpostApiExportRequest sorts(@javax.annotation.Nullable String sorts) { return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostApiExportRequest + */ + public APIpostApiExportRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -5030,44 +5349,41 @@ public APIpostApiExportRequest 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 postApiExportCall(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); + return postApiExportCall(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso, _callback); } /** * Execute postApiExport request - * @return ModerationExportResponse + * @return PostApiExportResponse * @throws ApiException If fail to call the API, e.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); + public PostApiExportResponse execute() throws ApiException { + ApiResponse localVarResp = postApiExportWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso); return localVarResp.getData(); } /** * Execute postApiExport request with HTTP info returned - * @return ApiResponse<ModerationExportResponse> + * @return ApiResponse<PostApiExportResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postApiExportWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso); } /** @@ -5080,11 +5396,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 { - return postApiExportAsync(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postApiExportAsync(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso, _callback); } } @@ -5097,13 +5412,12 @@ public okhttp3.Call executeAsync(final ApiCallback _ca 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 { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5161,7 +5475,11 @@ private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String localVarQueryParams.addAll(localVarApiClient.parameterToPair("banReason", banReason)); } - if (sso != null) { + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -5185,27 +5503,27 @@ private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String } @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 { + 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 tenantId, @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); + return postBanUserFromCommentCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, 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(); + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, 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 { + 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 tenantId, @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(); + okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5230,6 +5548,8 @@ public class APIpostBanUserFromCommentRequest { @javax.annotation.Nullable private String banReason; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostBanUserFromCommentRequest(@javax.annotation.Nonnull String commentId) { @@ -5316,6 +5636,16 @@ public APIpostBanUserFromCommentRequest banReason(@javax.annotation.Nullable Str return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostBanUserFromCommentRequest + */ + public APIpostBanUserFromCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -5336,44 +5666,41 @@ public APIpostBanUserFromCommentRequest 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 { - return postBanUserFromCommentCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); + return postBanUserFromCommentCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso, _callback); } /** * Execute postBanUserFromComment request - * @return BanUserFromCommentResult + * @return PostBanUserFromCommentResponse * @throws ApiException If fail to call the API, e.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); + public PostBanUserFromCommentResponse execute() throws ApiException { + ApiResponse localVarResp = postBanUserFromCommentWithHttpInfo(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso); return localVarResp.getData(); } /** * Execute postBanUserFromComment request with HTTP info returned - * @return ApiResponse<BanUserFromCommentResult> + * @return ApiResponse<PostBanUserFromCommentResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postBanUserFromCommentWithHttpInfo(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso); } /** @@ -5386,11 +5713,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 { - return postBanUserFromCommentAsync(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postBanUserFromCommentAsync(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso, _callback); } } @@ -5404,13 +5730,12 @@ public okhttp3.Call executeAsync(final ApiCallback _ca 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 { + private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5435,6 +5760,10 @@ private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull BanUserUndoPa 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)); } @@ -5460,27 +5789,27 @@ private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull BanUserUndoPa } @SuppressWarnings("rawtypes") - private okhttp3.Call postBanUserUndoValidateBeforeCall(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserUndoValidateBeforeCall(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String tenantId, @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); + return postBanUserUndoCall(banUserUndoParams, tenantId, 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(); + private ApiResponse postBanUserUndoWithHttpInfo(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(banUserUndoParams, tenantId, 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 { + private okhttp3.Call postBanUserUndoAsync(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(banUserUndoParams, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(banUserUndoParams, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5489,12 +5818,24 @@ public class APIpostBanUserUndoRequest { @javax.annotation.Nonnull private final BanUserUndoParams banUserUndoParams; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostBanUserUndoRequest(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { this.banUserUndoParams = banUserUndoParams; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostBanUserUndoRequest + */ + public APIpostBanUserUndoRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -5515,44 +5856,41 @@ public APIpostBanUserUndoRequest 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 postBanUserUndoCall(banUserUndoParams, sso, _callback); + return postBanUserUndoCall(banUserUndoParams, tenantId, sso, _callback); } /** * Execute postBanUserUndo request - * @return APIEmptyResponse + * @return PostBanUserUndoResponse * @throws ApiException If fail to call the API, e.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); + public PostBanUserUndoResponse execute() throws ApiException { + ApiResponse localVarResp = postBanUserUndoWithHttpInfo(banUserUndoParams, tenantId, sso); return localVarResp.getData(); } /** * Execute postBanUserUndo request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<PostBanUserUndoResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postBanUserUndoWithHttpInfo(banUserUndoParams, tenantId, sso); } /** @@ -5565,11 +5903,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 { - return postBanUserUndoAsync(banUserUndoParams, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postBanUserUndoAsync(banUserUndoParams, tenantId, sso, _callback); } } @@ -5583,13 +5920,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5626,6 +5962,10 @@ private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull BulkPre localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByEmailDomain", includeByEmailDomain)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -5651,27 +5991,27 @@ private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull BulkPre } @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 { + 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 tenantId, @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); + return postBulkPreBanSummaryCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, 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(); + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, 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 { + 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 tenantId, @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(); + okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5686,6 +6026,8 @@ public class APIpostBulkPreBanSummaryRequest { @javax.annotation.Nullable private Boolean includeByEmailDomain; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostBulkPreBanSummaryRequest(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { @@ -5722,6 +6064,16 @@ public APIpostBulkPreBanSummaryRequest includeByEmailDomain(@javax.annotation.Nu return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostBulkPreBanSummaryRequest + */ + public APIpostBulkPreBanSummaryRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -5742,44 +6094,41 @@ public APIpostBulkPreBanSummaryRequest 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 postBulkPreBanSummaryCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + return postBulkPreBanSummaryCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); } /** * Execute postBulkPreBanSummary request - * @return BulkPreBanSummary + * @return PostBulkPreBanSummaryResponse * @throws ApiException If fail to call the API, e.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); + public PostBulkPreBanSummaryResponse execute() throws ApiException { + ApiResponse localVarResp = postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); return localVarResp.getData(); } /** * Execute postBulkPreBanSummary request with HTTP info returned - * @return ApiResponse<BulkPreBanSummary> + * @return ApiResponse<PostBulkPreBanSummaryResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); } /** @@ -5792,11 +6141,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 { - return postBulkPreBanSummaryAsync(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postBulkPreBanSummaryAsync(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); } } @@ -5810,13 +6158,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 { + private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5841,6 +6188,10 @@ private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull CommentsByI 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)); } @@ -5866,27 +6217,27 @@ private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull CommentsByI } @SuppressWarnings("rawtypes") - private okhttp3.Call postCommentsByIdsValidateBeforeCall(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postCommentsByIdsValidateBeforeCall(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String tenantId, @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); + return postCommentsByIdsCall(commentsByIdsParams, tenantId, 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(); + private ApiResponse postCommentsByIdsWithHttpInfo(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(commentsByIdsParams, tenantId, 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 { + private okhttp3.Call postCommentsByIdsAsync(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(commentsByIdsParams, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(commentsByIdsParams, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5895,12 +6246,24 @@ public class APIpostCommentsByIdsRequest { @javax.annotation.Nonnull private final CommentsByIdsParams commentsByIdsParams; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostCommentsByIdsRequest(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { this.commentsByIdsParams = commentsByIdsParams; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostCommentsByIdsRequest + */ + public APIpostCommentsByIdsRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -5921,44 +6284,41 @@ public APIpostCommentsByIdsRequest 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 postCommentsByIdsCall(commentsByIdsParams, sso, _callback); + return postCommentsByIdsCall(commentsByIdsParams, tenantId, sso, _callback); } /** * Execute postCommentsByIds request - * @return ModerationAPIChildCommentsResponse + * @return PostCommentsByIdsResponse * @throws ApiException If fail to call the API, e.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); + public PostCommentsByIdsResponse execute() throws ApiException { + ApiResponse localVarResp = postCommentsByIdsWithHttpInfo(commentsByIdsParams, tenantId, sso); return localVarResp.getData(); } /** * Execute postCommentsByIds request with HTTP info returned - * @return ApiResponse<ModerationAPIChildCommentsResponse> + * @return ApiResponse<PostCommentsByIdsResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postCommentsByIdsWithHttpInfo(commentsByIdsParams, tenantId, sso); } /** @@ -5971,11 +6331,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 { - return postCommentsByIdsAsync(commentsByIdsParams, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postCommentsByIdsAsync(commentsByIdsParams, tenantId, sso, _callback); } } @@ -5989,13 +6348,12 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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 { + private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6021,6 +6379,14 @@ private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commen Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6045,27 +6411,27 @@ private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commen } @SuppressWarnings("rawtypes") - private okhttp3.Call postFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @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); + return postFlagCommentCall(commentId, broadcastId, tenantId, 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(); + private ApiResponse postFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, 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 { + private okhttp3.Call postFlagCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6074,12 +6440,36 @@ public class APIpostFlagCommentRequest { @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostFlagCommentRequest(@javax.annotation.Nonnull String commentId) { this.commentId = commentId; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostFlagCommentRequest + */ + public APIpostFlagCommentRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostFlagCommentRequest + */ + public APIpostFlagCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -6100,44 +6490,41 @@ public APIpostFlagCommentRequest 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 postFlagCommentCall(commentId, sso, _callback); + return postFlagCommentCall(commentId, broadcastId, tenantId, sso, _callback); } /** * Execute postFlagComment request - * @return APIEmptyResponse + * @return PostFlagCommentResponse * @throws ApiException If fail to call the API, e.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); + public PostFlagCommentResponse execute() throws ApiException { + ApiResponse localVarResp = postFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postFlagComment request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<PostFlagCommentResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); } /** @@ -6150,11 +6537,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 { - return postFlagCommentAsync(commentId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postFlagCommentAsync(commentId, broadcastId, tenantId, sso, _callback); } } @@ -6168,13 +6554,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 { + private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6200,6 +6585,14 @@ private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String comm Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6224,26 +6617,26 @@ private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String comm } @SuppressWarnings("rawtypes") - private okhttp3.Call postRemoveCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRemoveCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @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); + return postRemoveCommentCall(commentId, broadcastId, tenantId, sso, _callback); } - private ApiResponse postRemoveCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(commentId, sso, null); + private ApiResponse postRemoveCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(commentId, broadcastId, tenantId, 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 { + private okhttp3.Call postRemoveCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(commentId, sso, _callback); + okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6253,12 +6646,36 @@ public class APIpostRemoveCommentRequest { @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostRemoveCommentRequest(@javax.annotation.Nonnull String commentId) { this.commentId = commentId; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostRemoveCommentRequest + */ + public APIpostRemoveCommentRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostRemoveCommentRequest + */ + public APIpostRemoveCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -6279,11 +6696,10 @@ public APIpostRemoveCommentRequest 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 postRemoveCommentCall(commentId, sso, _callback); + return postRemoveCommentCall(commentId, broadcastId, tenantId, sso, _callback); } /** @@ -6295,11 +6711,10 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public PostRemoveCommentResponse execute() throws ApiException { - ApiResponse localVarResp = postRemoveCommentWithHttpInfo(commentId, sso); + ApiResponse localVarResp = postRemoveCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); return localVarResp.getData(); } @@ -6312,11 +6727,10 @@ public PostRemoveCommentResponse execute() throws ApiException { Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postRemoveCommentWithHttpInfo(commentId, sso); + return postRemoveCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); } /** @@ -6329,11 +6743,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 { - return postRemoveCommentAsync(commentId, sso, _callback); + return postRemoveCommentAsync(commentId, broadcastId, tenantId, sso, _callback); } } @@ -6347,13 +6760,12 @@ public okhttp3.Call executeAsync(final ApiCallback _c 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 { + private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6379,6 +6791,14 @@ private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6403,27 +6823,27 @@ private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull Str } @SuppressWarnings("rawtypes") - private okhttp3.Call postRestoreDeletedCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRestoreDeletedCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @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); + return postRestoreDeletedCommentCall(commentId, broadcastId, tenantId, 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(); + private ApiResponse postRestoreDeletedCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(commentId, broadcastId, tenantId, 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 { + private okhttp3.Call postRestoreDeletedCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6432,12 +6852,36 @@ public class APIpostRestoreDeletedCommentRequest { @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostRestoreDeletedCommentRequest(@javax.annotation.Nonnull String commentId) { this.commentId = commentId; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostRestoreDeletedCommentRequest + */ + public APIpostRestoreDeletedCommentRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostRestoreDeletedCommentRequest + */ + public APIpostRestoreDeletedCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -6458,44 +6902,41 @@ public APIpostRestoreDeletedCommentRequest 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 { - return postRestoreDeletedCommentCall(commentId, sso, _callback); + return postRestoreDeletedCommentCall(commentId, broadcastId, tenantId, sso, _callback); } /** * Execute postRestoreDeletedComment request - * @return APIEmptyResponse + * @return PostRestoreDeletedCommentResponse * @throws ApiException If fail to call the API, e.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); + public PostRestoreDeletedCommentResponse execute() throws ApiException { + ApiResponse localVarResp = postRestoreDeletedCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postRestoreDeletedComment request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<PostRestoreDeletedCommentResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postRestoreDeletedCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); } /** @@ -6508,11 +6949,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 { - return postRestoreDeletedCommentAsync(commentId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postRestoreDeletedCommentAsync(commentId, broadcastId, tenantId, sso, _callback); } } @@ -6526,13 +6966,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 { + private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6562,6 +7001,14 @@ private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull localVarQueryParams.addAll(localVarApiClient.parameterToPair("approved", approved)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6586,27 +7033,27 @@ private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull } @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 { + private okhttp3.Call postSetCommentApprovalStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @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); + return postSetCommentApprovalStatusCall(commentId, approved, broadcastId, tenantId, 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(); + private ApiResponse postSetCommentApprovalStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(commentId, approved, broadcastId, tenantId, 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 { + private okhttp3.Call postSetCommentApprovalStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(commentId, approved, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(commentId, approved, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6617,6 +7064,10 @@ public class APIpostSetCommentApprovalStatusRequest { @javax.annotation.Nullable private Boolean approved; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostSetCommentApprovalStatusRequest(@javax.annotation.Nonnull String commentId) { @@ -6633,6 +7084,26 @@ public APIpostSetCommentApprovalStatusRequest approved(@javax.annotation.Nullabl return this; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostSetCommentApprovalStatusRequest + */ + public APIpostSetCommentApprovalStatusRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostSetCommentApprovalStatusRequest + */ + public APIpostSetCommentApprovalStatusRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -6653,44 +7124,41 @@ public APIpostSetCommentApprovalStatusRequest 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 { - return postSetCommentApprovalStatusCall(commentId, approved, sso, _callback); + return postSetCommentApprovalStatusCall(commentId, approved, broadcastId, tenantId, sso, _callback); } /** * Execute postSetCommentApprovalStatus request - * @return SetCommentApprovedResponse + * @return PostSetCommentApprovalStatusResponse * @throws ApiException If fail to call the API, e.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); + public PostSetCommentApprovalStatusResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentApprovalStatusWithHttpInfo(commentId, approved, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postSetCommentApprovalStatus request with HTTP info returned - * @return ApiResponse<SetCommentApprovedResponse> + * @return ApiResponse<PostSetCommentApprovalStatusResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postSetCommentApprovalStatusWithHttpInfo(commentId, approved, broadcastId, tenantId, sso); } /** @@ -6703,11 +7171,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 { - return postSetCommentApprovalStatusAsync(commentId, approved, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postSetCommentApprovalStatusAsync(commentId, approved, broadcastId, tenantId, sso, _callback); } } @@ -6721,13 +7188,12 @@ public okhttp3.Call executeAsync(final ApiCallback _ 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 { + private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6757,6 +7223,14 @@ private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull St localVarQueryParams.addAll(localVarApiClient.parameterToPair("reviewed", reviewed)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6781,27 +7255,27 @@ private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull St } @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 { + private okhttp3.Call postSetCommentReviewStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @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); + return postSetCommentReviewStatusCall(commentId, reviewed, broadcastId, tenantId, 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(); + private ApiResponse postSetCommentReviewStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(commentId, reviewed, broadcastId, tenantId, 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 { + private okhttp3.Call postSetCommentReviewStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(commentId, reviewed, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(commentId, reviewed, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6812,6 +7286,10 @@ public class APIpostSetCommentReviewStatusRequest { @javax.annotation.Nullable private Boolean reviewed; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostSetCommentReviewStatusRequest(@javax.annotation.Nonnull String commentId) { @@ -6828,6 +7306,26 @@ public APIpostSetCommentReviewStatusRequest reviewed(@javax.annotation.Nullable return this; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostSetCommentReviewStatusRequest + */ + public APIpostSetCommentReviewStatusRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostSetCommentReviewStatusRequest + */ + public APIpostSetCommentReviewStatusRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -6848,44 +7346,41 @@ public APIpostSetCommentReviewStatusRequest 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 { - return postSetCommentReviewStatusCall(commentId, reviewed, sso, _callback); + return postSetCommentReviewStatusCall(commentId, reviewed, broadcastId, tenantId, sso, _callback); } /** * Execute postSetCommentReviewStatus request - * @return APIEmptyResponse + * @return PostSetCommentReviewStatusResponse * @throws ApiException If fail to call the API, e.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); + public PostSetCommentReviewStatusResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentReviewStatusWithHttpInfo(commentId, reviewed, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postSetCommentReviewStatus request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<PostSetCommentReviewStatusResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postSetCommentReviewStatusWithHttpInfo(commentId, reviewed, broadcastId, tenantId, sso); } /** @@ -6898,11 +7393,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 { - return postSetCommentReviewStatusAsync(commentId, reviewed, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postSetCommentReviewStatusAsync(commentId, reviewed, broadcastId, tenantId, sso, _callback); } } @@ -6916,13 +7410,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 { + private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6956,6 +7449,14 @@ private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("permNotSpam", permNotSpam)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6980,27 +7481,27 @@ private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull Stri } @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 { + private okhttp3.Call postSetCommentSpamStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @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); + return postSetCommentSpamStatusCall(commentId, spam, permNotSpam, broadcastId, tenantId, 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(); + private ApiResponse postSetCommentSpamStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(commentId, spam, permNotSpam, broadcastId, tenantId, 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 { + private okhttp3.Call postSetCommentSpamStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(commentId, spam, permNotSpam, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(commentId, spam, permNotSpam, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7013,6 +7514,10 @@ public class APIpostSetCommentSpamStatusRequest { @javax.annotation.Nullable private Boolean permNotSpam; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostSetCommentSpamStatusRequest(@javax.annotation.Nonnull String commentId) { @@ -7039,6 +7544,26 @@ public APIpostSetCommentSpamStatusRequest permNotSpam(@javax.annotation.Nullable return this; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostSetCommentSpamStatusRequest + */ + public APIpostSetCommentSpamStatusRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostSetCommentSpamStatusRequest + */ + public APIpostSetCommentSpamStatusRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -7059,44 +7584,41 @@ public APIpostSetCommentSpamStatusRequest 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 { - return postSetCommentSpamStatusCall(commentId, spam, permNotSpam, sso, _callback); + return postSetCommentSpamStatusCall(commentId, spam, permNotSpam, broadcastId, tenantId, sso, _callback); } /** * Execute postSetCommentSpamStatus request - * @return APIEmptyResponse + * @return PostSetCommentSpamStatusResponse * @throws ApiException If fail to call the API, e.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); + public PostSetCommentSpamStatusResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentSpamStatusWithHttpInfo(commentId, spam, permNotSpam, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postSetCommentSpamStatus request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<PostSetCommentSpamStatusResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postSetCommentSpamStatusWithHttpInfo(commentId, spam, permNotSpam, broadcastId, tenantId, sso); } /** @@ -7109,11 +7631,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 { - return postSetCommentSpamStatusAsync(commentId, spam, permNotSpam, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postSetCommentSpamStatusAsync(commentId, spam, permNotSpam, broadcastId, tenantId, sso, _callback); } } @@ -7127,13 +7648,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 { + private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7159,6 +7679,14 @@ private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String com Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7184,7 +7712,7 @@ private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String com } @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 { + private okhttp3.Call postSetCommentTextValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @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)"); @@ -7195,21 +7723,21 @@ private okhttp3.Call postSetCommentTextValidateBeforeCall(@javax.annotation.Nonn throw new ApiException("Missing the required parameter 'setCommentTextParams' when calling postSetCommentText(Async)"); } - return postSetCommentTextCall(commentId, setCommentTextParams, sso, _callback); + return postSetCommentTextCall(commentId, setCommentTextParams, broadcastId, tenantId, 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(); + private ApiResponse postSetCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(commentId, setCommentTextParams, broadcastId, tenantId, 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 { + private okhttp3.Call postSetCommentTextAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(commentId, setCommentTextParams, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(commentId, setCommentTextParams, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7220,6 +7748,10 @@ public class APIpostSetCommentTextRequest { @javax.annotation.Nonnull private final SetCommentTextParams setCommentTextParams; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostSetCommentTextRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { @@ -7227,6 +7759,26 @@ private APIpostSetCommentTextRequest(@javax.annotation.Nonnull String commentId, this.setCommentTextParams = setCommentTextParams; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostSetCommentTextRequest + */ + public APIpostSetCommentTextRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostSetCommentTextRequest + */ + public APIpostSetCommentTextRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -7247,44 +7799,41 @@ public APIpostSetCommentTextRequest 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 postSetCommentTextCall(commentId, setCommentTextParams, sso, _callback); + return postSetCommentTextCall(commentId, setCommentTextParams, broadcastId, tenantId, sso, _callback); } /** * Execute postSetCommentText request - * @return SetCommentTextResponse + * @return PostSetCommentTextResponse * @throws ApiException If fail to call the API, e.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); + public PostSetCommentTextResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postSetCommentText request with HTTP info returned - * @return ApiResponse<SetCommentTextResponse> + * @return ApiResponse<PostSetCommentTextResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, broadcastId, tenantId, sso); } /** @@ -7297,11 +7846,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 { - return postSetCommentTextAsync(commentId, setCommentTextParams, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postSetCommentTextAsync(commentId, setCommentTextParams, broadcastId, tenantId, sso, _callback); } } @@ -7316,13 +7864,12 @@ public okhttp3.Call executeAsync(final ApiCallback _call 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 { + private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7348,6 +7895,14 @@ private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String comm Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7372,27 +7927,27 @@ private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String comm } @SuppressWarnings("rawtypes") - private okhttp3.Call postUnFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postUnFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @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); + return postUnFlagCommentCall(commentId, broadcastId, tenantId, 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(); + private ApiResponse postUnFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, 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 { + private okhttp3.Call postUnFlagCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7401,12 +7956,36 @@ public class APIpostUnFlagCommentRequest { @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostUnFlagCommentRequest(@javax.annotation.Nonnull String commentId) { this.commentId = commentId; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostUnFlagCommentRequest + */ + public APIpostUnFlagCommentRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostUnFlagCommentRequest + */ + public APIpostUnFlagCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -7427,44 +8006,41 @@ public APIpostUnFlagCommentRequest 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 postUnFlagCommentCall(commentId, sso, _callback); + return postUnFlagCommentCall(commentId, broadcastId, tenantId, sso, _callback); } /** * Execute postUnFlagComment request - * @return APIEmptyResponse + * @return PostUnFlagCommentResponse * @throws ApiException If fail to call the API, e.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); + public PostUnFlagCommentResponse execute() throws ApiException { + ApiResponse localVarResp = postUnFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postUnFlagComment request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<PostUnFlagCommentResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postUnFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); } /** @@ -7477,11 +8053,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 { - return postUnFlagCommentAsync(commentId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postUnFlagCommentAsync(commentId, broadcastId, tenantId, sso, _callback); } } @@ -7495,13 +8070,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 { + private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7531,6 +8105,14 @@ private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @j localVarQueryParams.addAll(localVarApiClient.parameterToPair("direction", direction)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7555,27 +8137,27 @@ private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @j } @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 { + private okhttp3.Call postVoteValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @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); + return postVoteCall(commentId, direction, broadcastId, tenantId, 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(); + private ApiResponse postVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postVoteValidateBeforeCall(commentId, direction, broadcastId, tenantId, 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 { + private okhttp3.Call postVoteAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postVoteValidateBeforeCall(commentId, direction, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postVoteValidateBeforeCall(commentId, direction, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7586,6 +8168,10 @@ public class APIpostVoteRequest { @javax.annotation.Nullable private String direction; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIpostVoteRequest(@javax.annotation.Nonnull String commentId) { @@ -7602,6 +8188,26 @@ public APIpostVoteRequest direction(@javax.annotation.Nullable String direction) return this; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostVoteRequest + */ + public APIpostVoteRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + + /** + * Set tenantId + * @param tenantId (optional) + * @return APIpostVoteRequest + */ + public APIpostVoteRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -7622,44 +8228,41 @@ public APIpostVoteRequest 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 postVoteCall(commentId, direction, sso, _callback); + return postVoteCall(commentId, direction, broadcastId, tenantId, sso, _callback); } /** * Execute postVote request - * @return VoteResponse + * @return PostVoteResponse * @throws ApiException If fail to call the API, e.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); + public PostVoteResponse execute() throws ApiException { + ApiResponse localVarResp = postVoteWithHttpInfo(commentId, direction, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postVote request with HTTP info returned - * @return ApiResponse<VoteResponse> + * @return ApiResponse<PostVoteResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postVoteWithHttpInfo(commentId, direction, broadcastId, tenantId, sso); } /** @@ -7672,11 +8275,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 { - return postVoteAsync(commentId, direction, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postVoteAsync(commentId, direction, broadcastId, tenantId, sso, _callback); } } @@ -7690,13 +8292,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro 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 { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7737,6 +8338,10 @@ private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String badgeId, localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7761,27 +8366,27 @@ private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String badgeId, } @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 { + 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 tenantId, @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); + return putAwardBadgeCall(badgeId, userId, commentId, broadcastId, tenantId, 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(); + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, tenantId, 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 { + 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 tenantId, @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(); + okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7796,6 +8401,8 @@ public class APIputAwardBadgeRequest { @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIputAwardBadgeRequest(@javax.annotation.Nonnull String badgeId) { @@ -7832,6 +8439,16 @@ public APIputAwardBadgeRequest broadcastId(@javax.annotation.Nullable String bro return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIputAwardBadgeRequest + */ + public APIputAwardBadgeRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -7852,44 +8469,41 @@ public APIputAwardBadgeRequest 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 putAwardBadgeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + return putAwardBadgeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); } /** * Execute putAwardBadge request - * @return AwardUserBadgeResponse + * @return PutAwardBadgeResponse * @throws ApiException If fail to call the API, e.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); + public PutAwardBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = putAwardBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute putAwardBadge request with HTTP info returned - * @return ApiResponse<AwardUserBadgeResponse> + * @return ApiResponse<PutAwardBadgeResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return putAwardBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); } /** @@ -7902,11 +8516,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 { - return putAwardBadgeAsync(badgeId, userId, commentId, broadcastId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return putAwardBadgeAsync(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); } } @@ -7920,13 +8533,12 @@ public okhttp3.Call executeAsync(final ApiCallback _call 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 { + private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7955,6 +8567,10 @@ private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7979,27 +8595,27 @@ private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, } @SuppressWarnings("rawtypes") - private okhttp3.Call putCloseThreadValidateBeforeCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putCloseThreadValidateBeforeCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @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); + return putCloseThreadCall(urlId, tenantId, 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(); + private ApiResponse putCloseThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(urlId, tenantId, 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 { + private okhttp3.Call putCloseThreadAsync(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(urlId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(urlId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8008,12 +8624,24 @@ public class APIputCloseThreadRequest { @javax.annotation.Nonnull private final String urlId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIputCloseThreadRequest(@javax.annotation.Nonnull String urlId) { this.urlId = urlId; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIputCloseThreadRequest + */ + public APIputCloseThreadRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -8034,44 +8662,41 @@ public APIputCloseThreadRequest 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 putCloseThreadCall(urlId, sso, _callback); + return putCloseThreadCall(urlId, tenantId, sso, _callback); } /** * Execute putCloseThread request - * @return APIEmptyResponse + * @return PutCloseThreadResponse * @throws ApiException If fail to call the API, e.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); + public PutCloseThreadResponse execute() throws ApiException { + ApiResponse localVarResp = putCloseThreadWithHttpInfo(urlId, tenantId, sso); return localVarResp.getData(); } /** * Execute putCloseThread request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<PutCloseThreadResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return putCloseThreadWithHttpInfo(urlId, tenantId, sso); } /** @@ -8084,11 +8709,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 { - return putCloseThreadAsync(urlId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return putCloseThreadAsync(urlId, tenantId, sso, _callback); } } @@ -8102,13 +8726,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8149,6 +8772,10 @@ private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String badgeId localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -8173,27 +8800,27 @@ private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String badgeId } @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 { + 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 tenantId, @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); + return putRemoveBadgeCall(badgeId, userId, commentId, broadcastId, tenantId, 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(); + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, tenantId, 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 { + 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 tenantId, @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(); + okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8208,6 +8835,8 @@ public class APIputRemoveBadgeRequest { @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIputRemoveBadgeRequest(@javax.annotation.Nonnull String badgeId) { @@ -8244,6 +8873,16 @@ public APIputRemoveBadgeRequest broadcastId(@javax.annotation.Nullable String br return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIputRemoveBadgeRequest + */ + public APIputRemoveBadgeRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -8264,44 +8903,41 @@ public APIputRemoveBadgeRequest 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 putRemoveBadgeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + return putRemoveBadgeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); } /** * Execute putRemoveBadge request - * @return RemoveUserBadgeResponse + * @return PutRemoveBadgeResponse * @throws ApiException If fail to call the API, e.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); + public PutRemoveBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = putRemoveBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute putRemoveBadge request with HTTP info returned - * @return ApiResponse<RemoveUserBadgeResponse> + * @return ApiResponse<PutRemoveBadgeResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return putRemoveBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); } /** @@ -8314,11 +8950,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 { - return putRemoveBadgeAsync(badgeId, userId, commentId, broadcastId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return putRemoveBadgeAsync(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); } } @@ -8332,13 +8967,12 @@ public okhttp3.Call executeAsync(final ApiCallback _cal 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 { + private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8367,6 +9001,10 @@ private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -8391,27 +9029,27 @@ private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, } @SuppressWarnings("rawtypes") - private okhttp3.Call putReopenThreadValidateBeforeCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putReopenThreadValidateBeforeCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @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); + return putReopenThreadCall(urlId, tenantId, 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(); + private ApiResponse putReopenThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(urlId, tenantId, 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 { + private okhttp3.Call putReopenThreadAsync(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(urlId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(urlId, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8420,12 +9058,24 @@ public class APIputReopenThreadRequest { @javax.annotation.Nonnull private final String urlId; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIputReopenThreadRequest(@javax.annotation.Nonnull String urlId) { this.urlId = urlId; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIputReopenThreadRequest + */ + public APIputReopenThreadRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -8446,44 +9096,41 @@ public APIputReopenThreadRequest 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 putReopenThreadCall(urlId, sso, _callback); + return putReopenThreadCall(urlId, tenantId, sso, _callback); } /** * Execute putReopenThread request - * @return APIEmptyResponse + * @return PutReopenThreadResponse * @throws ApiException If fail to call the API, e.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); + public PutReopenThreadResponse execute() throws ApiException { + ApiResponse localVarResp = putReopenThreadWithHttpInfo(urlId, tenantId, sso); return localVarResp.getData(); } /** * Execute putReopenThread request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<PutReopenThreadResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return putReopenThreadWithHttpInfo(urlId, tenantId, sso); } /** @@ -8496,11 +9143,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 { - return putReopenThreadAsync(urlId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return putReopenThreadAsync(urlId, tenantId, sso, _callback); } } @@ -8514,13 +9160,12 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 { + private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8553,6 +9198,10 @@ private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId localVarQueryParams.addAll(localVarApiClient.parameterToPair("trustFactor", trustFactor)); } + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -8577,22 +9226,22 @@ private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId } @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 okhttp3.Call setTrustFactorValidateBeforeCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + return setTrustFactorCall(userId, trustFactor, tenantId, 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(); + private ApiResponse setTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(userId, trustFactor, tenantId, 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 { + private okhttp3.Call setTrustFactorAsync(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(userId, trustFactor, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(userId, trustFactor, tenantId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8603,6 +9252,8 @@ public class APIsetTrustFactorRequest { @javax.annotation.Nullable private String trustFactor; @javax.annotation.Nullable + private String tenantId; + @javax.annotation.Nullable private String sso; private APIsetTrustFactorRequest() { @@ -8628,6 +9279,16 @@ public APIsetTrustFactorRequest trustFactor(@javax.annotation.Nullable String tr return this; } + /** + * Set tenantId + * @param tenantId (optional) + * @return APIsetTrustFactorRequest + */ + public APIsetTrustFactorRequest tenantId(@javax.annotation.Nullable String tenantId) { + this.tenantId = tenantId; + return this; + } + /** * Set sso * @param sso (optional) @@ -8648,44 +9309,41 @@ public APIsetTrustFactorRequest 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 setTrustFactorCall(userId, trustFactor, sso, _callback); + return setTrustFactorCall(userId, trustFactor, tenantId, sso, _callback); } /** * Execute setTrustFactor request - * @return SetUserTrustFactorResponse + * @return SetTrustFactorResponse * @throws ApiException If fail to call the API, e.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); + public SetTrustFactorResponse execute() throws ApiException { + ApiResponse localVarResp = setTrustFactorWithHttpInfo(userId, trustFactor, tenantId, sso); return localVarResp.getData(); } /** * Execute setTrustFactor request with HTTP info returned - * @return ApiResponse<SetUserTrustFactorResponse> + * @return ApiResponse<SetTrustFactorResponse> * @throws ApiException If fail to call the API, e.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); + public ApiResponse executeWithHttpInfo() throws ApiException { + return setTrustFactorWithHttpInfo(userId, trustFactor, tenantId, sso); } /** @@ -8698,11 +9356,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 { - return setTrustFactorAsync(userId, trustFactor, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return setTrustFactorAsync(userId, trustFactor, tenantId, sso, _callback); } } @@ -8715,7 +9372,6 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIsetTrustFactorRequest setTrustFactor() { diff --git a/client/src/main/java/com/fastcomments/api/PublicApi.java b/client/src/main/java/com/fastcomments/api/PublicApi.java index 5490c85d..81a0bf79 100644 --- a/client/src/main/java/com/fastcomments/api/PublicApi.java +++ b/client/src/main/java/com/fastcomments/api/PublicApi.java @@ -29,58 +29,68 @@ import com.fastcomments.model.APIEmptyResponse; import com.fastcomments.model.APIError; -import com.fastcomments.model.BlockSuccess; -import com.fastcomments.model.ChangeCommentPinStatusResponse; -import com.fastcomments.model.CheckBlockedCommentsResponse; +import com.fastcomments.model.BlockFromCommentPublicResponse; +import com.fastcomments.model.CheckedCommentsForBlockedResponse; import com.fastcomments.model.CommentData; import com.fastcomments.model.CommentTextUpdateRequest; +import com.fastcomments.model.CreateCommentPublicResponse; import com.fastcomments.model.CreateFeedPostParams; -import com.fastcomments.model.CreateFeedPostResponse; -import com.fastcomments.model.CreateV1PageReact; +import com.fastcomments.model.CreateFeedPostPublicResponse; +import com.fastcomments.model.CreateV1PageReactResponse; +import com.fastcomments.model.CreateV2PageReactResponse; +import com.fastcomments.model.DeleteCommentPublicResponse; +import com.fastcomments.model.DeleteCommentVoteResponse; import com.fastcomments.model.DeleteFeedPostPublicResponse; -import com.fastcomments.model.FeedPostsStatsResponse; +import com.fastcomments.model.DeleteV1PageReactResponse; +import com.fastcomments.model.DeleteV2PageReactResponse; import java.io.File; -import com.fastcomments.model.GetCommentVoteUserNamesSuccessResponse; -import com.fastcomments.model.GetCommentsForUserResponse; -import com.fastcomments.model.GetCommentsResponseWithPresencePublicComment; -import com.fastcomments.model.GetEventLogResponse; +import com.fastcomments.model.FlagCommentPublicResponse; +import com.fastcomments.model.GetCommentTextResponse1; +import com.fastcomments.model.GetCommentVoteUserNamesResponse; +import com.fastcomments.model.GetCommentsForUserResponse1; +import com.fastcomments.model.GetCommentsPublicResponse; +import com.fastcomments.model.GetEventLogResponse1; +import com.fastcomments.model.GetFeedPostsPublicResponse; +import com.fastcomments.model.GetFeedPostsStatsResponse; +import com.fastcomments.model.GetGifLargeResponse; 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.GetGlobalEventLogResponse; +import com.fastcomments.model.GetOfflineUsersResponse; +import com.fastcomments.model.GetOnlineUsersResponse; +import com.fastcomments.model.GetPagesPublicResponse; +import com.fastcomments.model.GetTranslationsResponse1; +import com.fastcomments.model.GetUserNotificationCountResponse1; +import com.fastcomments.model.GetUserNotificationsResponse; +import com.fastcomments.model.GetUserPresenceStatusesResponse1; +import com.fastcomments.model.GetUserReactsPublicResponse; +import com.fastcomments.model.GetUsersInfoResponse; +import com.fastcomments.model.GetV1PageLikesResponse; +import com.fastcomments.model.GetV2PageReactUsersResponse1; +import com.fastcomments.model.GetV2PageReactsResponse; +import com.fastcomments.model.LockCommentResponse; import com.fastcomments.model.PagesSortBy; -import com.fastcomments.model.PublicAPIDeleteCommentResponse; -import com.fastcomments.model.PublicAPIGetCommentTextResponse; -import com.fastcomments.model.PublicAPISetCommentTextResponse; +import com.fastcomments.model.PinCommentResponse; import com.fastcomments.model.PublicBlockFromCommentParams; -import com.fastcomments.model.PublicFeedPostsResponse; import com.fastcomments.model.ReactBodyParams; -import com.fastcomments.model.ReactFeedPostResponse; -import com.fastcomments.model.ResetUserNotificationsResponse; -import com.fastcomments.model.SaveCommentsResponseWithPresence; -import com.fastcomments.model.SearchUsersResult; +import com.fastcomments.model.ReactFeedPostPublicResponse; +import com.fastcomments.model.ResetUserNotificationCountResponse; +import com.fastcomments.model.ResetUserNotificationsResponse1; +import com.fastcomments.model.SearchUsersResponse1; +import com.fastcomments.model.SetCommentTextResponse1; import com.fastcomments.model.SizePreset; import com.fastcomments.model.SortDirections; -import com.fastcomments.model.UnblockSuccess; +import com.fastcomments.model.UnBlockCommentPublicResponse; +import com.fastcomments.model.UnLockCommentResponse; +import com.fastcomments.model.UnPinCommentResponse; import com.fastcomments.model.UpdateFeedPostParams; +import com.fastcomments.model.UpdateFeedPostPublicResponse; 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.VoteDeleteResponse; -import com.fastcomments.model.VoteResponse; +import com.fastcomments.model.VoteCommentResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -201,16 +211,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; } @@ -251,7 +261,6 @@ 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 { @@ -260,34 +269,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute blockFromCommentPublic request - * @return BlockSuccess + * @return BlockFromCommentPublicResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public BlockSuccess execute() throws ApiException { - ApiResponse localVarResp = blockFromCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); + public BlockFromCommentPublicResponse execute() throws ApiException { + ApiResponse localVarResp = blockFromCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); return localVarResp.getData(); } /** * Execute blockFromCommentPublic request with HTTP info returned - * @return ApiResponse<BlockSuccess> + * @return ApiResponse<BlockFromCommentPublicResponse> * @throws ApiException If fail to call the API, e.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); } @@ -301,10 +308,9 @@ 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 blockFromCommentPublicAsync(tenantId, commentId, publicBlockFromCommentParams, sso, _callback); } } @@ -321,7 +327,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro Response 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) { @@ -400,16 +405,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; } @@ -447,7 +452,6 @@ 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 { @@ -456,34 +460,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute checkedCommentsForBlocked request - * @return CheckBlockedCommentsResponse + * @return CheckedCommentsForBlockedResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CheckBlockedCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = checkedCommentsForBlockedWithHttpInfo(tenantId, commentIds, sso); + public CheckedCommentsForBlockedResponse execute() throws ApiException { + ApiResponse localVarResp = checkedCommentsForBlockedWithHttpInfo(tenantId, commentIds, sso); return localVarResp.getData(); } /** * Execute checkedCommentsForBlocked request with HTTP info returned - * @return ApiResponse<CheckBlockedCommentsResponse> + * @return ApiResponse<CheckedCommentsForBlockedResponse> * @throws ApiException If fail to call the API, e.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); } @@ -497,10 +499,9 @@ 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 checkedCommentsForBlockedAsync(tenantId, commentIds, sso, _callback); } } @@ -516,7 +517,6 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcheckedCommentsForBlockedRequest checkedCommentsForBlocked(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentIds) { @@ -611,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; } @@ -676,7 +676,6 @@ 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 { @@ -685,34 +684,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createCommentPublic request - * @return SaveCommentsResponseWithPresence + * @return CreateCommentPublicResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public SaveCommentsResponseWithPresence execute() throws ApiException { - ApiResponse localVarResp = createCommentPublicWithHttpInfo(tenantId, urlId, broadcastId, commentData, sessionId, sso); + public CreateCommentPublicResponse execute() throws ApiException { + ApiResponse localVarResp = createCommentPublicWithHttpInfo(tenantId, urlId, broadcastId, commentData, sessionId, sso); return localVarResp.getData(); } /** * Execute createCommentPublic request with HTTP info returned - * @return ApiResponse<SaveCommentsResponseWithPresence> + * @return ApiResponse<CreateCommentPublicResponse> * @throws ApiException If fail to call the API, e.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); } @@ -726,10 +723,9 @@ public ApiResponse executeWithHttpInfo() throw 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); } } @@ -747,7 +743,6 @@ 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) { @@ -824,16 +819,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; } @@ -883,7 +878,6 @@ 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 { @@ -892,34 +886,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createFeedPostPublic request - * @return CreateFeedPostResponse + * @return CreateFeedPostPublicResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateFeedPostResponse execute() throws ApiException { - ApiResponse localVarResp = createFeedPostPublicWithHttpInfo(tenantId, createFeedPostParams, broadcastId, sso); + public CreateFeedPostPublicResponse execute() throws ApiException { + ApiResponse localVarResp = createFeedPostPublicWithHttpInfo(tenantId, createFeedPostParams, broadcastId, sso); return localVarResp.getData(); } /** * Execute createFeedPostPublic request with HTTP info returned - * @return ApiResponse<CreateFeedPostResponse> + * @return ApiResponse<CreateFeedPostPublicResponse> * @throws ApiException If fail to call the API, e.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); } @@ -933,10 +925,9 @@ 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 createFeedPostPublicAsync(tenantId, createFeedPostParams, broadcastId, sso, _callback); } } @@ -952,7 +943,6 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcreateFeedPostPublicRequest createFeedPostPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams) { @@ -1028,16 +1018,16 @@ private okhttp3.Call createV1PageReactValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse createV1PageReactWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String title) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createV1PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String title, 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 = createV1PageReactValidateBeforeCall(tenantId, urlId, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1075,7 +1065,6 @@ public APIcreateV1PageReactRequest title(@javax.annotation.Nullable String title Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -1084,34 +1073,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createV1PageReact request - * @return CreateV1PageReact + * @return CreateV1PageReactResponse * @throws ApiException If fail to call the API, e.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 = createV1PageReactWithHttpInfo(tenantId, urlId, title); + public CreateV1PageReactResponse execute() throws ApiException { + ApiResponse localVarResp = createV1PageReactWithHttpInfo(tenantId, urlId, title); return localVarResp.getData(); } /** * Execute createV1PageReact request with HTTP info returned - * @return ApiResponse<CreateV1PageReact> + * @return ApiResponse<CreateV1PageReactResponse> * @throws ApiException If fail to call the API, e.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 createV1PageReactWithHttpInfo(tenantId, urlId, title); } @@ -1125,10 +1112,9 @@ 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 createV1PageReactAsync(tenantId, urlId, title, _callback); } } @@ -1144,7 +1130,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcreateV1PageReactRequest createV1PageReact(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -1229,16 +1214,16 @@ private okhttp3.Call createV2PageReactValidateBeforeCall(@javax.annotation.Nonnu } - 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + 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 = createV2PageReactValidateBeforeCall(tenantId, urlId, id, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1279,7 +1264,6 @@ public APIcreateV2PageReactRequest title(@javax.annotation.Nullable String title Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -1288,34 +1272,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createV2PageReact request - * @return CreateV1PageReact + * @return CreateV2PageReactResponse * @throws ApiException If fail to call the API, e.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 = createV2PageReactWithHttpInfo(tenantId, urlId, id, title); + public CreateV2PageReactResponse execute() throws ApiException { + ApiResponse localVarResp = createV2PageReactWithHttpInfo(tenantId, urlId, id, title); return localVarResp.getData(); } /** * Execute createV2PageReact request with HTTP info returned - * @return ApiResponse<CreateV1PageReact> + * @return ApiResponse<CreateV2PageReactResponse> * @throws ApiException If fail to call the API, e.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 createV2PageReactWithHttpInfo(tenantId, urlId, id, title); } @@ -1329,10 +1311,9 @@ 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 createV2PageReactAsync(tenantId, urlId, id, title, _callback); } } @@ -1349,7 +1330,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIcreateV2PageReactRequest createV2PageReact(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) { @@ -1435,16 +1415,16 @@ private okhttp3.Call deleteCommentPublicValidateBeforeCall(@javax.annotation.Non } - 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 { + 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(); + 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 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 = deleteCommentPublicValidateBeforeCall(tenantId, commentId, broadcastId, editKey, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1497,7 +1477,6 @@ 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 { @@ -1506,34 +1485,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteCommentPublic request - * @return PublicAPIDeleteCommentResponse + * @return DeleteCommentPublicResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public PublicAPIDeleteCommentResponse execute() throws ApiException { - ApiResponse localVarResp = deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso); + public DeleteCommentPublicResponse execute() throws ApiException { + ApiResponse localVarResp = deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso); return localVarResp.getData(); } /** * Execute deleteCommentPublic request with HTTP info returned - * @return ApiResponse<PublicAPIDeleteCommentResponse> + * @return ApiResponse<DeleteCommentPublicResponse> * @throws ApiException If fail to call the API, e.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 deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso); } @@ -1547,10 +1524,9 @@ 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 deleteCommentPublicAsync(tenantId, commentId, broadcastId, editKey, sso, _callback); } } @@ -1567,7 +1543,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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) { @@ -1668,16 +1643,16 @@ private okhttp3.Call deleteCommentVoteValidateBeforeCall(@javax.annotation.Nonnu } - 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 { + 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(); + 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 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 = deleteCommentVoteValidateBeforeCall(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1736,7 +1711,6 @@ 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 { @@ -1745,34 +1719,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteCommentVote request - * @return VoteDeleteResponse + * @return DeleteCommentVoteResponse * @throws ApiException If fail to call the API, e.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 = deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso); + public DeleteCommentVoteResponse execute() throws ApiException { + ApiResponse localVarResp = deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso); return localVarResp.getData(); } /** * Execute deleteCommentVote request with HTTP info returned - * @return ApiResponse<VoteDeleteResponse> + * @return ApiResponse<DeleteCommentVoteResponse> * @throws ApiException If fail to call the API, e.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 deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso); } @@ -1786,10 +1758,9 @@ 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 deleteCommentVoteAsync(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); } } @@ -1808,7 +1779,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback 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) { @@ -1944,7 +1914,6 @@ 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 { @@ -1960,7 +1929,6 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public DeleteFeedPostPublicResponse execute() throws ApiException { @@ -1977,7 +1945,6 @@ public DeleteFeedPostPublicResponse execute() throws ApiException { Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -1994,7 +1961,6 @@ 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 { @@ -2013,7 +1979,6 @@ 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) { @@ -2085,16 +2050,16 @@ private okhttp3.Call deleteV1PageReactValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse deleteV1PageReactWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteV1PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, 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 = deleteV1PageReactValidateBeforeCall(tenantId, urlId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2120,7 +2085,6 @@ private APIdeleteV1PageReactRequest(@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 { @@ -2129,34 +2093,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteV1PageReact request - * @return CreateV1PageReact + * @return DeleteV1PageReactResponse * @throws ApiException If fail to call the API, e.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 = deleteV1PageReactWithHttpInfo(tenantId, urlId); + public DeleteV1PageReactResponse execute() throws ApiException { + ApiResponse localVarResp = deleteV1PageReactWithHttpInfo(tenantId, urlId); return localVarResp.getData(); } /** * Execute deleteV1PageReact request with HTTP info returned - * @return ApiResponse<CreateV1PageReact> + * @return ApiResponse<DeleteV1PageReactResponse> * @throws ApiException If fail to call the API, e.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 deleteV1PageReactWithHttpInfo(tenantId, urlId); } @@ -2170,10 +2132,9 @@ 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 deleteV1PageReactAsync(tenantId, urlId, _callback); } } @@ -2189,7 +2150,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIdeleteV1PageReactRequest deleteV1PageReact(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -2270,16 +2230,16 @@ private okhttp3.Call deleteV2PageReactValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse deleteV2PageReactWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteV2PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteV2PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteV2PageReactValidateBeforeCall(tenantId, urlId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2308,7 +2268,6 @@ private APIdeleteV2PageReactRequest(@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 { @@ -2317,34 +2276,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteV2PageReact request - * @return CreateV1PageReact + * @return DeleteV2PageReactResponse * @throws ApiException If fail to call the API, e.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); + public DeleteV2PageReactResponse execute() throws ApiException { + ApiResponse localVarResp = deleteV2PageReactWithHttpInfo(tenantId, urlId, id); return localVarResp.getData(); } /** * Execute deleteV2PageReact request with HTTP info returned - * @return ApiResponse<CreateV1PageReact> + * @return ApiResponse<DeleteV2PageReactResponse> * @throws ApiException If fail to call the API, e.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 deleteV2PageReactWithHttpInfo(tenantId, urlId, id); } @@ -2358,10 +2315,9 @@ 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 deleteV2PageReactAsync(tenantId, urlId, id, _callback); } } @@ -2378,7 +2334,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -2463,16 +2418,16 @@ private okhttp3.Call flagCommentPublicValidateBeforeCall(@javax.annotation.Nonnu } - 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 { + 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(); + 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 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 = flagCommentPublicValidateBeforeCall(tenantId, commentId, isFlagged, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2513,7 +2468,6 @@ 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 { @@ -2522,34 +2476,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute flagCommentPublic request - * @return APIEmptyResponse + * @return FlagCommentPublicResponse * @throws ApiException If fail to call the API, e.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); + public FlagCommentPublicResponse execute() throws ApiException { + ApiResponse localVarResp = flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso); return localVarResp.getData(); } /** * Execute flagCommentPublic request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<FlagCommentPublicResponse> * @throws ApiException If fail to call the API, e.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 flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso); } @@ -2563,10 +2515,9 @@ 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 flagCommentPublicAsync(tenantId, commentId, isFlagged, sso, _callback); } } @@ -2583,7 +2534,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -2660,16 +2610,16 @@ private okhttp3.Call getCommentTextValidateBeforeCall(@javax.annotation.Nonnull } - 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 { + 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(); + 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 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2719,7 +2669,6 @@ 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 { @@ -2728,34 +2677,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCommentText request - * @return PublicAPIGetCommentTextResponse + * @return GetCommentTextResponse1 * @throws ApiException If fail to call the API, e.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); + public GetCommentTextResponse1 execute() throws ApiException { + ApiResponse localVarResp = getCommentTextWithHttpInfo(tenantId, commentId, editKey, sso); return localVarResp.getData(); } /** * Execute getCommentText request with HTTP info returned - * @return ApiResponse<PublicAPIGetCommentTextResponse> + * @return ApiResponse<GetCommentTextResponse1> * @throws ApiException If fail to call the API, e.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 getCommentTextWithHttpInfo(tenantId, commentId, editKey, sso); } @@ -2769,10 +2716,9 @@ 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 getCommentTextAsync(tenantId, commentId, editKey, sso, _callback); } } @@ -2788,7 +2734,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetCommentTextRequest getCommentText(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { @@ -2870,16 +2815,16 @@ private okhttp3.Call getCommentVoteUserNamesValidateBeforeCall(@javax.annotation } - 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 { + 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(); + 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 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2920,7 +2865,6 @@ 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 { @@ -2929,34 +2873,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCommentVoteUserNames request - * @return GetCommentVoteUserNamesSuccessResponse + * @return GetCommentVoteUserNamesResponse * @throws ApiException If fail to call the API, e.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); + public GetCommentVoteUserNamesResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso); return localVarResp.getData(); } /** * Execute getCommentVoteUserNames request with HTTP info returned - * @return ApiResponse<GetCommentVoteUserNamesSuccessResponse> + * @return ApiResponse<GetCommentVoteUserNamesResponse> * @throws ApiException If fail to call the API, e.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 getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso); } @@ -2970,10 +2912,9 @@ 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 getCommentVoteUserNamesAsync(tenantId, commentId, dir, sso, _callback); } } @@ -2990,7 +2931,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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) { @@ -3075,16 +3015,16 @@ private okhttp3.Call getCommentsForUserValidateBeforeCall(@javax.annotation.Null } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3188,7 +3128,6 @@ public APIgetCommentsForUserRequest isCrawler(@javax.annotation.Nullable Boolean Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -3197,34 +3136,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCommentsForUser request - * @return GetCommentsForUserResponse + * @return GetCommentsForUserResponse1 * @throws ApiException If fail to call the API, e.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); + public GetCommentsForUserResponse1 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> + * @return ApiResponse<GetCommentsForUserResponse1> * @throws ApiException If fail to call the API, e.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 getCommentsForUserWithHttpInfo(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler); } @@ -3238,10 +3175,9 @@ 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 getCommentsForUserAsync(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler, _callback); } } @@ -3255,7 +3191,6 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetCommentsForUserRequest getCommentsForUser() { @@ -3431,16 +3366,16 @@ private okhttp3.Call getCommentsPublicValidateBeforeCall(@javax.annotation.Nonnu } - 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 { + 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(); + 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 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3778,7 +3713,6 @@ public APIgetCommentsPublicRequest beforeCommentId(@javax.annotation.Nullable St Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -3787,34 +3721,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCommentsPublic request - * @return GetCommentsResponseWithPresencePublicComment + * @return GetCommentsPublicResponse * @throws ApiException If fail to call the API, e.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); + public GetCommentsPublicResponse 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> + * @return ApiResponse<GetCommentsPublicResponse> * @throws ApiException If fail to call the API, e.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 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); } @@ -3828,10 +3760,9 @@ public ApiResponse executeWithHttp 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 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); } } @@ -3847,7 +3778,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetCommentsPublicRequest getCommentsPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -3941,16 +3871,16 @@ private okhttp3.Call getEventLogValidateBeforeCall(@javax.annotation.Nonnull Str } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3994,7 +3924,6 @@ public APIgetEventLogRequest endTime(@javax.annotation.Nullable Long endTime) { Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -4003,34 +3932,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEventLog request - * @return GetEventLogResponse + * @return GetEventLogResponse1 * @throws ApiException If fail to call the API, e.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); + public GetEventLogResponse1 execute() throws ApiException { + ApiResponse localVarResp = getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); return localVarResp.getData(); } /** * Execute getEventLog request with HTTP info returned - * @return ApiResponse<GetEventLogResponse> + * @return ApiResponse<GetEventLogResponse1> * @throws ApiException If fail to call the API, e.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 getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); } @@ -4044,10 +3971,9 @@ 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 getEventLogAsync(tenantId, urlId, userIdWS, startTime, endTime, _callback); } } @@ -4065,7 +3991,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac 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) { @@ -4152,16 +4077,16 @@ private okhttp3.Call getFeedPostsPublicValidateBeforeCall(@javax.annotation.Nonn } - 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 { + 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(); + 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 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4256,7 +4181,6 @@ 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 { @@ -4265,34 +4189,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getFeedPostsPublic request - * @return PublicFeedPostsResponse + * @return GetFeedPostsPublicResponse * @throws ApiException If fail to call the API, e.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); + public GetFeedPostsPublicResponse 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> + * @return ApiResponse<GetFeedPostsPublicResponse> * @throws ApiException If fail to call the API, e.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 getFeedPostsPublicWithHttpInfo(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo); } @@ -4306,10 +4228,9 @@ 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 getFeedPostsPublicAsync(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback); } } @@ -4324,7 +4245,6 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetFeedPostsPublicRequest getFeedPostsPublic(@javax.annotation.Nonnull String tenantId) { @@ -4400,16 +4320,16 @@ private okhttp3.Call getFeedPostsStatsValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse getFeedPostsStatsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds, @javax.annotation.Nullable String sso) throws ApiException { + 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(); + 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 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4447,7 +4367,6 @@ public APIgetFeedPostsStatsRequest 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 { @@ -4456,34 +4375,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getFeedPostsStats request - * @return FeedPostsStatsResponse + * @return GetFeedPostsStatsResponse * @throws ApiException If fail to call the API, e.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); + public GetFeedPostsStatsResponse execute() throws ApiException { + ApiResponse localVarResp = getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso); return localVarResp.getData(); } /** * Execute getFeedPostsStats request with HTTP info returned - * @return ApiResponse<FeedPostsStatsResponse> + * @return ApiResponse<GetFeedPostsStatsResponse> * @throws ApiException If fail to call the API, e.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 getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso); } @@ -4497,10 +4414,9 @@ 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 getFeedPostsStatsAsync(tenantId, postIds, sso, _callback); } } @@ -4516,7 +4432,6 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetFeedPostsStatsRequest getFeedPostsStats(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds) { @@ -4588,16 +4503,16 @@ private okhttp3.Call getGifLargeValidateBeforeCall(@javax.annotation.Nonnull Str } - private ApiResponse getGifLargeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String largeInternalURLSanitized) throws ApiException { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4624,7 +4539,6 @@ private APIgetGifLargeRequest(@javax.annotation.Nonnull String tenantId, @javax. Status Code Description Response Headers 200 Ok - 422 Validation Failed - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -4633,7 +4547,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getGifLarge request - * @return GifGetLargeResponse + * @return GetGifLargeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4641,17 +4555,16 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { -
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public GifGetLargeResponse execute() throws ApiException { - ApiResponse localVarResp = getGifLargeWithHttpInfo(tenantId, largeInternalURLSanitized); + public GetGifLargeResponse execute() throws ApiException { + ApiResponse localVarResp = getGifLargeWithHttpInfo(tenantId, largeInternalURLSanitized); return localVarResp.getData(); } /** * Execute getGifLarge request with HTTP info returned - * @return ApiResponse<GifGetLargeResponse> + * @return ApiResponse<GetGifLargeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4659,10 +4572,9 @@ public GifGetLargeResponse execute() throws ApiException { -
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getGifLargeWithHttpInfo(tenantId, largeInternalURLSanitized); } @@ -4677,10 +4589,9 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio Status Code Description Response Headers 200 Ok - 422 Validation Failed - - 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getGifLargeAsync(tenantId, largeInternalURLSanitized, _callback); } } @@ -4697,7 +4608,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac 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) { @@ -4853,7 +4763,6 @@ public APIgetGifsSearchRequest page(@javax.annotation.Nullable Double page) { Status Code Description Response Headers 200 Ok - 422 Validation Failed - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -4870,7 +4779,6 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Status Code Description Response Headers 200 Ok - 422 Validation Failed - - 0 Error - */ public GetGifsSearchResponse execute() throws ApiException { @@ -4888,7 +4796,6 @@ public GetGifsSearchResponse execute() throws ApiException { Status Code Description Response Headers 200 Ok - 422 Validation Failed - - 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -4906,7 +4813,6 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Status Code Description Response Headers 200 Ok - 422 Validation Failed - - 0 Error - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { @@ -4926,7 +4832,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callb 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) { @@ -5226,16 +5131,16 @@ private okhttp3.Call getGlobalEventLogValidateBeforeCall(@javax.annotation.Nonnu } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5279,7 +5184,6 @@ public APIgetGlobalEventLogRequest endTime(@javax.annotation.Nullable Long endTi Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5288,34 +5192,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getGlobalEventLog request - * @return GetEventLogResponse + * @return GetGlobalEventLogResponse * @throws ApiException If fail to call the API, e.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); + public GetGlobalEventLogResponse execute() throws ApiException { + ApiResponse localVarResp = getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); return localVarResp.getData(); } /** * Execute getGlobalEventLog request with HTTP info returned - * @return ApiResponse<GetEventLogResponse> + * @return ApiResponse<GetGlobalEventLogResponse> * @throws ApiException If fail to call the API, e.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 getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); } @@ -5329,10 +5231,9 @@ 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 getGlobalEventLogAsync(tenantId, urlId, userIdWS, startTime, endTime, _callback); } } @@ -5350,7 +5251,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac 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) { @@ -5430,16 +5330,16 @@ private okhttp3.Call getOfflineUsersValidateBeforeCall(@javax.annotation.Nonnull } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5491,7 +5391,6 @@ public APIgetOfflineUsersRequest afterUserId(@javax.annotation.Nullable String a 200 Ok - 403 Forbidden - 422 Validation Failed - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5500,7 +5399,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getOfflineUsers request - * @return PageUsersOfflineResponse + * @return GetOfflineUsersResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5509,17 +5408,16 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { -
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
*/ - public PageUsersOfflineResponse execute() throws ApiException { - ApiResponse localVarResp = getOfflineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); + public GetOfflineUsersResponse execute() throws ApiException { + ApiResponse localVarResp = getOfflineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); return localVarResp.getData(); } /** * Execute getOfflineUsers request with HTTP info returned - * @return ApiResponse<PageUsersOfflineResponse> + * @return ApiResponse<GetOfflineUsersResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5528,10 +5426,9 @@ public PageUsersOfflineResponse execute() throws ApiException { -
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getOfflineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); } @@ -5547,10 +5444,9 @@ public ApiResponse executeWithHttpInfo() throws ApiExc 200 Ok - 403 Forbidden - 422 Validation Failed - - 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getOfflineUsersAsync(tenantId, urlId, afterName, afterUserId, _callback); } } @@ -5568,7 +5464,6 @@ public okhttp3.Call executeAsync(final ApiCallback _ca 200 Ok - 403 Forbidden - 422 Validation Failed - - 0 Error - */ public APIgetOfflineUsersRequest getOfflineUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -5648,16 +5543,16 @@ private okhttp3.Call getOnlineUsersValidateBeforeCall(@javax.annotation.Nonnull } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5709,7 +5604,6 @@ public APIgetOnlineUsersRequest afterUserId(@javax.annotation.Nullable String af 200 Ok - 403 Forbidden - 422 Validation Failed - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5718,7 +5612,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getOnlineUsers request - * @return PageUsersOnlineResponse + * @return GetOnlineUsersResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5727,17 +5621,16 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { -
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
*/ - public PageUsersOnlineResponse execute() throws ApiException { - ApiResponse localVarResp = getOnlineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); + public GetOnlineUsersResponse execute() throws ApiException { + ApiResponse localVarResp = getOnlineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); return localVarResp.getData(); } /** * Execute getOnlineUsers request with HTTP info returned - * @return ApiResponse<PageUsersOnlineResponse> + * @return ApiResponse<GetOnlineUsersResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5746,10 +5639,9 @@ public PageUsersOnlineResponse execute() throws ApiException { -
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getOnlineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); } @@ -5765,10 +5657,9 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 200 Ok - 403 Forbidden - 422 Validation Failed - - 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getOnlineUsersAsync(tenantId, urlId, afterName, afterUserId, _callback); } } @@ -5786,7 +5677,6 @@ public okhttp3.Call executeAsync(final ApiCallback _cal 200 Ok - 403 Forbidden - 422 Validation Failed - - 0 Error - */ public APIgetOnlineUsersRequest getOnlineUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -5869,16 +5759,16 @@ private okhttp3.Call getPagesPublicValidateBeforeCall(@javax.annotation.Nonnull } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5961,7 +5851,6 @@ public APIgetPagesPublicRequest hasComments(@javax.annotation.Nullable Boolean h Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5970,34 +5859,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getPagesPublic request - * @return GetPublicPagesResponse + * @return GetPagesPublicResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetPublicPagesResponse execute() throws ApiException { - ApiResponse localVarResp = getPagesPublicWithHttpInfo(tenantId, cursor, limit, q, sortBy, hasComments); + public GetPagesPublicResponse execute() throws ApiException { + ApiResponse localVarResp = getPagesPublicWithHttpInfo(tenantId, cursor, limit, q, sortBy, hasComments); return localVarResp.getData(); } /** * Execute getPagesPublic request with HTTP info returned - * @return ApiResponse<GetPublicPagesResponse> + * @return ApiResponse<GetPagesPublicResponse> * @throws ApiException If fail to call the API, e.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 getPagesPublicWithHttpInfo(tenantId, cursor, limit, q, sortBy, hasComments); } @@ -6011,10 +5898,9 @@ 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 getPagesPublicAsync(tenantId, cursor, limit, q, sortBy, hasComments, _callback); } } @@ -6029,7 +5915,6 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetPagesPublicRequest getPagesPublic(@javax.annotation.Nonnull String tenantId) { @@ -6106,16 +5991,16 @@ private okhttp3.Call getTranslationsValidateBeforeCall(@javax.annotation.Nonnull } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6167,7 +6052,6 @@ public APIgetTranslationsRequest useFullTranslationIds(@javax.annotation.Nullabl 200 Ok - 422 Validation Failed - 500 Internal - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6176,7 +6060,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTranslations request - * @return GetTranslationsResponse + * @return GetTranslationsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6185,17 +6069,16 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { -
200 Ok -
422 Validation Failed -
500 Internal -
0 Error -
*/ - public GetTranslationsResponse execute() throws ApiException { - ApiResponse localVarResp = getTranslationsWithHttpInfo(namespace, component, locale, useFullTranslationIds); + public GetTranslationsResponse1 execute() throws ApiException { + ApiResponse localVarResp = getTranslationsWithHttpInfo(namespace, component, locale, useFullTranslationIds); return localVarResp.getData(); } /** * Execute getTranslations request with HTTP info returned - * @return ApiResponse<GetTranslationsResponse> + * @return ApiResponse<GetTranslationsResponse1> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6204,10 +6087,9 @@ public GetTranslationsResponse execute() throws ApiException { -
200 Ok -
422 Validation Failed -
500 Internal -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTranslationsWithHttpInfo(namespace, component, locale, useFullTranslationIds); } @@ -6223,10 +6105,9 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 200 Ok - 422 Validation Failed - 500 Internal - - 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTranslationsAsync(namespace, component, locale, useFullTranslationIds, _callback); } } @@ -6244,7 +6125,6 @@ public okhttp3.Call executeAsync(final ApiCallback _cal 200 Ok - 422 Validation Failed - 500 Internal - - 0 Error - */ public APIgetTranslationsRequest getTranslations(@javax.annotation.Nonnull String namespace, @javax.annotation.Nonnull String component) { @@ -6314,16 +6194,16 @@ private okhttp3.Call getUserNotificationCountValidateBeforeCall(@javax.annotatio } - private ApiResponse getUserNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + 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(); + 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 getUserNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserNotificationCountValidateBeforeCall(tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6358,7 +6238,6 @@ public APIgetUserNotificationCountRequest 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 { @@ -6367,34 +6246,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserNotificationCount request - * @return GetUserNotificationCountResponse + * @return GetUserNotificationCountResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetUserNotificationCountResponse execute() throws ApiException { - ApiResponse localVarResp = getUserNotificationCountWithHttpInfo(tenantId, sso); + public GetUserNotificationCountResponse1 execute() throws ApiException { + ApiResponse localVarResp = getUserNotificationCountWithHttpInfo(tenantId, sso); return localVarResp.getData(); } /** * Execute getUserNotificationCount request with HTTP info returned - * @return ApiResponse<GetUserNotificationCountResponse> + * @return ApiResponse<GetUserNotificationCountResponse1> * @throws ApiException If fail to call the API, e.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 getUserNotificationCountWithHttpInfo(tenantId, sso); } @@ -6408,10 +6285,9 @@ public ApiResponse executeWithHttpInfo() throw 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 getUserNotificationCountAsync(tenantId, sso, _callback); } } @@ -6426,7 +6302,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetUserNotificationCountRequest getUserNotificationCount(@javax.annotation.Nonnull String tenantId) { @@ -6536,16 +6411,16 @@ private okhttp3.Call getUserNotificationsValidateBeforeCall(@javax.annotation.No } - 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + 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 = getUserNotificationsValidateBeforeCall(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6700,7 +6575,6 @@ 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 { @@ -6709,34 +6583,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserNotifications request - * @return GetMyNotificationsResponse + * @return GetUserNotificationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetMyNotificationsResponse execute() throws ApiException { - ApiResponse localVarResp = getUserNotificationsWithHttpInfo(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso); + public GetUserNotificationsResponse execute() throws ApiException { + ApiResponse localVarResp = getUserNotificationsWithHttpInfo(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso); return localVarResp.getData(); } /** * Execute getUserNotifications request with HTTP info returned - * @return ApiResponse<GetMyNotificationsResponse> + * @return ApiResponse<GetUserNotificationsResponse> * @throws ApiException If fail to call the API, e.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 getUserNotificationsWithHttpInfo(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso); } @@ -6750,10 +6622,9 @@ 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 getUserNotificationsAsync(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso, _callback); } } @@ -6768,7 +6639,6 @@ 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) { @@ -6852,16 +6722,16 @@ private okhttp3.Call getUserPresenceStatusesValidateBeforeCall(@javax.annotation } - private ApiResponse getUserPresenceStatusesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds) throws ApiException { + 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(); + 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 getUserPresenceStatusesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserPresenceStatusesValidateBeforeCall(tenantId, urlIdWS, userIds, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6891,7 +6761,6 @@ private APIgetUserPresenceStatusesRequest(@javax.annotation.Nonnull String tenan Status Code Description Response Headers 200 Ok - 422 Validation Failed - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6900,7 +6769,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserPresenceStatuses request - * @return GetUserPresenceStatusesResponse + * @return GetUserPresenceStatusesResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6908,17 +6777,16 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { -
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public GetUserPresenceStatusesResponse execute() throws ApiException { - ApiResponse localVarResp = getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds); + public GetUserPresenceStatusesResponse1 execute() throws ApiException { + ApiResponse localVarResp = getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds); return localVarResp.getData(); } /** * Execute getUserPresenceStatuses request with HTTP info returned - * @return ApiResponse<GetUserPresenceStatusesResponse> + * @return ApiResponse<GetUserPresenceStatusesResponse1> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6926,10 +6794,9 @@ public GetUserPresenceStatusesResponse execute() throws ApiException { -
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds); } @@ -6944,10 +6811,9 @@ public ApiResponse executeWithHttpInfo() throws Status Code Description Response Headers 200 Ok - 422 Validation Failed - - 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getUserPresenceStatusesAsync(tenantId, urlIdWS, userIds, _callback); } } @@ -6965,7 +6831,6 @@ public okhttp3.Call executeAsync(final ApiCallback 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) { @@ -7036,16 +6901,16 @@ private okhttp3.Call getUserReactsPublicValidateBeforeCall(@javax.annotation.Non } - private ApiResponse getUserReactsPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso) throws ApiException { + 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(); + 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 getUserReactsPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserReactsPublicValidateBeforeCall(tenantId, postIds, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7092,7 +6957,6 @@ 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 { @@ -7101,34 +6965,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserReactsPublic request - * @return UserReactsResponse + * @return GetUserReactsPublicResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public UserReactsResponse execute() throws ApiException { - ApiResponse localVarResp = getUserReactsPublicWithHttpInfo(tenantId, postIds, sso); + public GetUserReactsPublicResponse execute() throws ApiException { + ApiResponse localVarResp = getUserReactsPublicWithHttpInfo(tenantId, postIds, sso); return localVarResp.getData(); } /** * Execute getUserReactsPublic request with HTTP info returned - * @return ApiResponse<UserReactsResponse> + * @return ApiResponse<GetUserReactsPublicResponse> * @throws ApiException If fail to call the API, e.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 getUserReactsPublicWithHttpInfo(tenantId, postIds, sso); } @@ -7142,10 +7004,9 @@ 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 getUserReactsPublicAsync(tenantId, postIds, sso, _callback); } } @@ -7160,7 +7021,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetUserReactsPublicRequest getUserReactsPublic(@javax.annotation.Nonnull String tenantId) { @@ -7232,16 +7092,16 @@ private okhttp3.Call getUsersInfoValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse getUsersInfoWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUsersInfoAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids, 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 = getUsersInfoValidateBeforeCall(tenantId, ids, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7268,7 +7128,6 @@ private APIgetUsersInfoRequest(@javax.annotation.Nonnull String tenantId, @javax Status Code Description Response Headers 200 Ok - 422 Validation Failed - - 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -7277,7 +7136,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUsersInfo request - * @return PageUsersInfoResponse + * @return GetUsersInfoResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7285,17 +7144,16 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { -
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public PageUsersInfoResponse execute() throws ApiException { - ApiResponse localVarResp = getUsersInfoWithHttpInfo(tenantId, ids); + public GetUsersInfoResponse execute() throws ApiException { + ApiResponse localVarResp = getUsersInfoWithHttpInfo(tenantId, ids); return localVarResp.getData(); } /** * Execute getUsersInfo request with HTTP info returned - * @return ApiResponse<PageUsersInfoResponse> + * @return ApiResponse<GetUsersInfoResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7303,10 +7161,9 @@ public PageUsersInfoResponse execute() throws ApiException { -
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUsersInfoWithHttpInfo(tenantId, ids); } @@ -7321,10 +7178,9 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Status Code Description Response Headers 200 Ok - 422 Validation Failed - - 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getUsersInfoAsync(tenantId, ids, _callback); } } @@ -7341,7 +7197,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Status Code Description Response Headers 200 Ok - 422 Validation Failed - - 0 Error - */ public APIgetUsersInfoRequest getUsersInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids) { @@ -7413,16 +7268,16 @@ private okhttp3.Call getV1PageLikesValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse getV1PageLikesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getV1PageLikesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, 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 = getV1PageLikesValidateBeforeCall(tenantId, urlId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7448,7 +7303,6 @@ private APIgetV1PageLikesRequest(@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 { @@ -7457,34 +7311,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getV1PageLikes request - * @return GetV1PageLikes + * @return GetV1PageLikesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetV1PageLikes execute() throws ApiException { - ApiResponse localVarResp = getV1PageLikesWithHttpInfo(tenantId, urlId); + public GetV1PageLikesResponse execute() throws ApiException { + ApiResponse localVarResp = getV1PageLikesWithHttpInfo(tenantId, urlId); return localVarResp.getData(); } /** * Execute getV1PageLikes request with HTTP info returned - * @return ApiResponse<GetV1PageLikes> + * @return ApiResponse<GetV1PageLikesResponse> * @throws ApiException If fail to call the API, e.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 getV1PageLikesWithHttpInfo(tenantId, urlId); } @@ -7498,10 +7350,9 @@ 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 getV1PageLikesAsync(tenantId, urlId, _callback); } } @@ -7517,7 +7368,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetV1PageLikesRequest getV1PageLikes(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -7598,16 +7448,16 @@ private okhttp3.Call getV2PageReactUsersValidateBeforeCall(@javax.annotation.Non } - private ApiResponse getV2PageReactUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getV2PageReactUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, 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 = getV2PageReactUsersValidateBeforeCall(tenantId, urlId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7636,7 +7486,6 @@ private APIgetV2PageReactUsersRequest(@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 { @@ -7645,34 +7494,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getV2PageReactUsers request - * @return GetV2PageReactUsersResponse + * @return GetV2PageReactUsersResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetV2PageReactUsersResponse execute() throws ApiException { - ApiResponse localVarResp = getV2PageReactUsersWithHttpInfo(tenantId, urlId, id); + public GetV2PageReactUsersResponse1 execute() throws ApiException { + ApiResponse localVarResp = getV2PageReactUsersWithHttpInfo(tenantId, urlId, id); return localVarResp.getData(); } /** * Execute getV2PageReactUsers request with HTTP info returned - * @return ApiResponse<GetV2PageReactUsersResponse> + * @return ApiResponse<GetV2PageReactUsersResponse1> * @throws ApiException If fail to call the API, e.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 getV2PageReactUsersWithHttpInfo(tenantId, urlId, id); } @@ -7686,10 +7533,9 @@ 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 getV2PageReactUsersAsync(tenantId, urlId, id, _callback); } } @@ -7706,7 +7552,6 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetV2PageReactUsersRequest getV2PageReactUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) { @@ -7778,16 +7623,16 @@ private okhttp3.Call getV2PageReactsValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse getV2PageReactsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getV2PageReactsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, 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 = getV2PageReactsValidateBeforeCall(tenantId, urlId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7813,7 +7658,6 @@ private APIgetV2PageReactsRequest(@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 { @@ -7822,34 +7666,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getV2PageReacts request - * @return GetV2PageReacts + * @return GetV2PageReactsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public GetV2PageReacts execute() throws ApiException { - ApiResponse localVarResp = getV2PageReactsWithHttpInfo(tenantId, urlId); + public GetV2PageReactsResponse execute() throws ApiException { + ApiResponse localVarResp = getV2PageReactsWithHttpInfo(tenantId, urlId); return localVarResp.getData(); } /** * Execute getV2PageReacts request with HTTP info returned - * @return ApiResponse<GetV2PageReacts> + * @return ApiResponse<GetV2PageReactsResponse> * @throws ApiException If fail to call the API, e.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 getV2PageReactsWithHttpInfo(tenantId, urlId); } @@ -7863,10 +7705,9 @@ 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 getV2PageReactsAsync(tenantId, urlId, _callback); } } @@ -7882,7 +7723,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIgetV2PageReactsRequest getV2PageReacts(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -7964,16 +7804,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; } @@ -8014,7 +7854,6 @@ 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 { @@ -8023,34 +7862,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute lockComment request - * @return APIEmptyResponse + * @return LockCommentResponse * @throws ApiException If fail to call the API, e.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 = lockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); + public LockCommentResponse execute() throws ApiException { + ApiResponse localVarResp = lockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } /** * Execute lockComment request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<LockCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -8064,10 +7901,9 @@ 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 lockCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -8084,7 +7920,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -8314,16 +8149,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; } @@ -8364,7 +8199,6 @@ 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 { @@ -8373,34 +8207,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute pinComment request - * @return ChangeCommentPinStatusResponse + * @return PinCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ChangeCommentPinStatusResponse execute() throws ApiException { - ApiResponse localVarResp = pinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); + public PinCommentResponse execute() throws ApiException { + ApiResponse localVarResp = pinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } /** * Execute pinComment request with HTTP info returned - * @return ApiResponse<ChangeCommentPinStatusResponse> + * @return ApiResponse<PinCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -8414,10 +8246,9 @@ 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 pinCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -8434,7 +8265,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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) { @@ -8521,16 +8351,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; } @@ -8595,7 +8425,6 @@ 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 { @@ -8604,34 +8433,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute reactFeedPostPublic request - * @return ReactFeedPostResponse + * @return ReactFeedPostPublicResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ReactFeedPostResponse execute() throws ApiException { - ApiResponse localVarResp = reactFeedPostPublicWithHttpInfo(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso); + public ReactFeedPostPublicResponse execute() throws ApiException { + ApiResponse localVarResp = reactFeedPostPublicWithHttpInfo(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso); return localVarResp.getData(); } /** * Execute reactFeedPostPublic request with HTTP info returned - * @return ApiResponse<ReactFeedPostResponse> + * @return ApiResponse<ReactFeedPostPublicResponse> * @throws ApiException If fail to call the API, e.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); } @@ -8645,10 +8472,9 @@ 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 reactFeedPostPublicAsync(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso, _callback); } } @@ -8665,7 +8491,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response 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) { @@ -8735,16 +8560,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; } @@ -8779,7 +8604,6 @@ 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 { @@ -8788,34 +8612,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute resetUserNotificationCount request - * @return ResetUserNotificationsResponse + * @return ResetUserNotificationCountResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ResetUserNotificationsResponse execute() throws ApiException { - ApiResponse localVarResp = resetUserNotificationCountWithHttpInfo(tenantId, sso); + public ResetUserNotificationCountResponse execute() throws ApiException { + ApiResponse localVarResp = resetUserNotificationCountWithHttpInfo(tenantId, sso); return localVarResp.getData(); } /** * Execute resetUserNotificationCount request with HTTP info returned - * @return ApiResponse<ResetUserNotificationsResponse> + * @return ApiResponse<ResetUserNotificationCountResponse> * @throws ApiException If fail to call the API, e.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); } @@ -8829,10 +8651,9 @@ 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 resetUserNotificationCountAsync(tenantId, sso, _callback); } } @@ -8847,7 +8668,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIresetUserNotificationCountRequest resetUserNotificationCount(@javax.annotation.Nonnull String tenantId) { @@ -8937,16 +8757,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; } @@ -9041,7 +8861,6 @@ 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 { @@ -9050,34 +8869,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute resetUserNotifications request - * @return ResetUserNotificationsResponse + * @return ResetUserNotificationsResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ResetUserNotificationsResponse execute() throws ApiException { - ApiResponse localVarResp = resetUserNotificationsWithHttpInfo(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso); + public ResetUserNotificationsResponse1 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<ResetUserNotificationsResponse> + * @return ApiResponse<ResetUserNotificationsResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -9091,10 +8908,9 @@ 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 resetUserNotificationsAsync(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso, _callback); } } @@ -9109,7 +8925,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIresetUserNotificationsRequest resetUserNotifications(@javax.annotation.Nonnull String tenantId) { @@ -9197,16 +9012,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; } @@ -9280,7 +9095,6 @@ 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 { @@ -9289,34 +9103,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute searchUsers request - * @return SearchUsersResult + * @return SearchUsersResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public SearchUsersResult execute() throws ApiException { - ApiResponse localVarResp = searchUsersWithHttpInfo(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection); + public SearchUsersResponse1 execute() throws ApiException { + ApiResponse localVarResp = searchUsersWithHttpInfo(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection); return localVarResp.getData(); } /** * Execute searchUsers request with HTTP info returned - * @return ApiResponse<SearchUsersResult> + * @return ApiResponse<SearchUsersResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -9330,10 +9142,9 @@ 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 searchUsersAsync(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection, _callback); } } @@ -9349,7 +9160,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public APIsearchUsersRequest searchUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -9441,16 +9251,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; } @@ -9506,7 +9316,6 @@ 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 { @@ -9515,34 +9324,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute setCommentText request - * @return PublicAPISetCommentTextResponse + * @return SetCommentTextResponse1 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public PublicAPISetCommentTextResponse execute() throws ApiException { - ApiResponse localVarResp = setCommentTextWithHttpInfo(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso); + public SetCommentTextResponse1 execute() throws ApiException { + ApiResponse localVarResp = setCommentTextWithHttpInfo(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso); return localVarResp.getData(); } /** * Execute setCommentText request with HTTP info returned - * @return ApiResponse<PublicAPISetCommentTextResponse> + * @return ApiResponse<SetCommentTextResponse1> * @throws ApiException If fail to call the API, e.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); } @@ -9556,10 +9363,9 @@ 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 setCommentTextAsync(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso, _callback); } } @@ -9577,7 +9383,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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) { @@ -9659,16 +9464,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; } @@ -9709,7 +9514,6 @@ 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 { @@ -9718,34 +9522,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unBlockCommentPublic request - * @return UnblockSuccess + * @return UnBlockCommentPublicResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public UnblockSuccess execute() throws ApiException { - ApiResponse localVarResp = unBlockCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); + public UnBlockCommentPublicResponse execute() throws ApiException { + ApiResponse localVarResp = unBlockCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); return localVarResp.getData(); } /** * Execute unBlockCommentPublic request with HTTP info returned - * @return ApiResponse<UnblockSuccess> + * @return ApiResponse<UnBlockCommentPublicResponse> * @throws ApiException If fail to call the API, e.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); } @@ -9759,10 +9561,9 @@ 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 unBlockCommentPublicAsync(tenantId, commentId, publicBlockFromCommentParams, sso, _callback); } } @@ -9779,7 +9580,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th Response 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) { @@ -9861,16 +9661,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; } @@ -9911,7 +9711,6 @@ 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 { @@ -9920,34 +9719,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unLockComment request - * @return APIEmptyResponse + * @return UnLockCommentResponse * @throws ApiException If fail to call the API, e.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 = unLockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); + public UnLockCommentResponse execute() throws ApiException { + ApiResponse localVarResp = unLockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } /** * Execute unLockComment request with HTTP info returned - * @return ApiResponse<APIEmptyResponse> + * @return ApiResponse<UnLockCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -9961,10 +9758,9 @@ 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 unLockCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -9981,7 +9777,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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) { @@ -10063,16 +9858,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; } @@ -10113,7 +9908,6 @@ 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 { @@ -10122,34 +9916,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unPinComment request - * @return ChangeCommentPinStatusResponse + * @return UnPinCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public ChangeCommentPinStatusResponse execute() throws ApiException { - ApiResponse localVarResp = unPinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); + public UnPinCommentResponse execute() throws ApiException { + ApiResponse localVarResp = unPinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } /** * Execute unPinComment request with HTTP info returned - * @return ApiResponse<ChangeCommentPinStatusResponse> + * @return ApiResponse<UnPinCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -10163,10 +9955,9 @@ 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 unPinCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -10183,7 +9974,6 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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) { @@ -10266,16 +10056,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; } @@ -10328,7 +10118,6 @@ 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 { @@ -10337,34 +10126,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateFeedPostPublic request - * @return CreateFeedPostResponse + * @return UpdateFeedPostPublicResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 Ok -
0 Error -
*/ - public CreateFeedPostResponse execute() throws ApiException { - ApiResponse localVarResp = updateFeedPostPublicWithHttpInfo(tenantId, postId, updateFeedPostParams, broadcastId, sso); + public UpdateFeedPostPublicResponse execute() throws ApiException { + ApiResponse localVarResp = updateFeedPostPublicWithHttpInfo(tenantId, postId, updateFeedPostParams, broadcastId, sso); return localVarResp.getData(); } /** * Execute updateFeedPostPublic request with HTTP info returned - * @return ApiResponse<CreateFeedPostResponse> + * @return ApiResponse<UpdateFeedPostPublicResponse> * @throws ApiException If fail to call the API, e.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); } @@ -10378,10 +10165,9 @@ 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 updateFeedPostPublicAsync(tenantId, postId, updateFeedPostParams, broadcastId, sso, _callback); } } @@ -10398,7 +10184,6 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response 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) { @@ -10542,7 +10327,6 @@ 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 { @@ -10558,7 +10342,6 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public UpdateUserNotificationCommentSubscriptionStatusResponse execute() throws ApiException { @@ -10575,7 +10358,6 @@ public UpdateUserNotificationCommentSubscriptionStatusResponse execute() throws Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -10592,7 +10374,6 @@ public ApiResponse exec Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { @@ -10613,7 +10394,6 @@ 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) { @@ -10772,7 +10552,6 @@ 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 { @@ -10788,7 +10567,6 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public UpdateUserNotificationPageSubscriptionStatusResponse execute() throws ApiException { @@ -10805,7 +10583,6 @@ public UpdateUserNotificationPageSubscriptionStatusResponse execute() throws Api Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -10822,7 +10599,6 @@ public ApiResponse execute Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { @@ -10844,7 +10620,6 @@ 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) { @@ -10976,7 +10751,6 @@ 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 { @@ -10992,7 +10766,6 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public UpdateUserNotificationStatusResponse execute() throws ApiException { @@ -11009,7 +10782,6 @@ public UpdateUserNotificationStatusResponse execute() throws ApiException { Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -11026,7 +10798,6 @@ public ApiResponse executeWithHttpInfo() t Response Details Status Code Description Response Headers 200 Ok - - 0 Error - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { @@ -11046,7 +10817,6 @@ 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) { @@ -11351,16 +11121,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; } @@ -11419,7 +11189,6 @@ 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 { @@ -11428,34 +11197,32 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute voteComment request - * @return VoteResponse + * @return VoteCommentResponse * @throws ApiException If fail to call the API, e.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 = voteCommentWithHttpInfo(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso); + public VoteCommentResponse 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<VoteResponse> + * @return ApiResponse<VoteCommentResponse> * @throws ApiException If fail to call the API, e.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); } @@ -11469,10 +11236,9 @@ 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 voteCommentAsync(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso, _callback); } } @@ -11491,7 +11257,6 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro 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/JSON.java b/client/src/main/java/com/fastcomments/invoker/JSON.java index efd3c5bf..e9eaaf35 100644 --- a/client/src/main/java/com/fastcomments/invoker/JSON.java +++ b/client/src/main/java/com/fastcomments/invoker/JSON.java @@ -130,11 +130,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddDomainConfigParams.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddDomainConfigResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddDomainConfigResponseAnyOf.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddHashTagResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddHashTagsBulkResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddPageAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddSSOUserAPIResponse.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.AggregateQuestionResultsResponse1.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()); @@ -151,12 +154,15 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.BlockFromCommentPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BlockSuccess.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BlockUserFromCommentResponse.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.BulkAggregateQuestionResultsRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkAggregateQuestionResultsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkAggregateQuestionResultsResponse1.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()); @@ -166,7 +172,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeCommentPinStatusResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeTicketStateBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeTicketStateResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeTicketStateResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CheckBlockedCommentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CheckedCommentsForBlockedResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CombineCommentsWithQuestionResultsResponse.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()); @@ -180,39 +189,74 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.CreateCommentPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateEmailTemplateBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateEmailTemplateResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateEmailTemplateResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostResponse1.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.CreateModeratorBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateModeratorResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateModeratorResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionConfigBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionConfigResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionConfigResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionResultBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionResultResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionResultResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateSubscriptionAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantPackageBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantPackageResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantPackageResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantUserBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantUserResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantUserResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTicketBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTicketResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTicketResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateUserBadgeParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateUserBadgeResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateV1PageReact.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateV1PageReactResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateV2PageReactResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateVoteResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CustomConfigParameters.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CustomEmailTemplate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteCommentPublicResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteCommentResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteCommentVoteResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteDomainConfigResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteEmailTemplateRenderErrorResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteEmailTemplateResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteFeedPostPublicResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteFeedPostPublicResponseAnyOf.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteHashTagRequestBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteHashTagResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteModerationVoteResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteModeratorResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteNotificationCountResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeletePageAPIResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeletePendingWebhookEventResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteQuestionConfigResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteQuestionResultResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteSSOUserAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteSubscriptionAPIResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteTenantPackageResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteTenantResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteTenantUserResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteUserBadgeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteV1PageReactResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteV2PageReactResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteVoteResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeletedCommentResultComment.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.EmailTemplateDefinition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.EmailTemplateRenderErrorResponse.CustomTypeAdapterFactory()); @@ -227,72 +271,154 @@ 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.FlagCommentPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.FlagCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.FlagCommentResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetApiCommentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetApiExportStatusResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetApiIdsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetAuditLogsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetAuditLogsResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetBanUsersFromCommentResponse.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.GetCachedNotificationCountResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentBanStatusResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentBanStatusResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentChildrenResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentTextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentTextResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentVoteUserNamesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentVoteUserNamesSuccessResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsForUserResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsForUserResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsPublicResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsResponsePublicComment.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsResponseWithPresencePublicComment.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCountResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCountsResponse.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.GetEmailTemplateDefinitionsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateRenderErrorsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateRenderErrorsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplatesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplatesResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEventLogResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEventLogResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPostsPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPostsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPostsResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPostsStatsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetGifLargeResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetGifsSearchResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetGifsTrendingResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetGlobalEventLogResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetHashTagsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetHashTagsResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetLogsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetManualBadgesForUserResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetManualBadgesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModerationCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModerationCommentTextResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModeratorResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModeratorResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModeratorsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModeratorsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetMyNotificationsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotificationCountResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotificationCountResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotificationsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotificationsResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetOfflineUsersResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetOnlineUsersResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPageByURLIdAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPagesAPIResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPagesPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEventCountResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEventCountResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEventsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEventsResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPreBanSummaryResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPublicFeedPostsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPublicPagesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfigResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfigResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfigsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfigsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResultResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResultResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResultsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResultsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSSOUserByEmailAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSSOUserByIdAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSSOUsersResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSearchCommentsSummaryResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSearchPagesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSearchSitesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSearchSuggestResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSearchUsersResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSubscriptionsAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantDailyUsagesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantDailyUsagesResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantManualBadgesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackageResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackageResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackagesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackagesResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUserResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUserResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUsersResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUsersResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTicketResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTicketResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTicketsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTicketsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTranslationsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTranslationsResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTrustFactorResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgeProgressByIdResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgeProgressByUserIdResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgeProgressListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBanPreferenceResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserInternalProfileResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserInternalProfileResponse1.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.GetUserNotificationCountResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserNotificationsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserPresenceStatusesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserPresenceStatusesResponse1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserReactsPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserTrustFactorResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUsersInfoResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV1PageLikes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV1PageLikesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV2PageReactUsersResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV2PageReactUsersResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV2PageReacts.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV2PageReactsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotesForUserResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotesForUserResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotesResponse1.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()); @@ -302,6 +428,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.LockCommentResponse.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()); @@ -331,10 +458,26 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PageUsersOnlineResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchDomainConfigParams.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchDomainConfigResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchHashTagResponse.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.PinCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostAdjustCommentVotesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostApiExportResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostBanUserFromCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostBanUserUndoResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostBulkPreBanSummaryResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostCommentsByIdsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostFlagCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostRemoveCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostRestoreDeletedCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostSetCommentApprovalStatusResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostSetCommentReviewStatusResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostSetCommentSpamStatusResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostSetCommentTextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostUnFlagCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostVoteResponse.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()); @@ -348,7 +491,11 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.PutAwardBadgeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PutCloseThreadResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PutDomainConfigResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PutRemoveBadgeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PutReopenThreadResponse.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()); @@ -358,52 +505,81 @@ 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.ReactFeedPostPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReactFeedPostResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RecordStringBeforeStringOrNullAfterStringOrNullValue.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.RenderEmailTemplateResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RenderableUserNotification.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReplaceTenantPackageBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReplaceTenantPackageResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReplaceTenantUserBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReplaceTenantUserResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ResetUserNotificationCountResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ResetUserNotificationsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ResetUserNotificationsResponse1.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.SearchUsersResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SearchUsersResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SearchUsersResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SearchUsersSectionedResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SendInviteResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SendLoginLinkResponse.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.SetCommentTextResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SetCommentTextResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SetTrustFactorResponse.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.UnBlockCommentPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnBlockFromCommentParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnBlockUserFromCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnFlagCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnLockCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnPinCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnblockSuccess.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdatableCommentParams.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateAPIPageData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateAPISSOUserData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateAPIUserSubscriptionData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateDomainConfigParams.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateEmailTemplateBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateEmailTemplateResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateFeedPostParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateFeedPostPublicResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateFeedPostResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateHashTagBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateHashTagResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateModeratorBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateModeratorResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateNotificationBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateNotificationResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateQuestionConfigBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateQuestionConfigResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateQuestionResultBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateQuestionResultResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateSubscriptionAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantPackageBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantPackageResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantUserBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantUserResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateUserBadgeParams.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateUserBadgeResponse.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()); @@ -420,6 +596,7 @@ 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.VoteCommentResponse.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/model/AddHashTagResponse.java b/client/src/main/java/com/fastcomments/model/AddHashTagResponse.java new file mode 100644 index 00000000..e68a2844 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/AddHashTagResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CreateHashTagResponse; +import com.fastcomments.model.CustomConfigParameters; +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.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 AddHashTagResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(AddHashTagResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AddHashTagResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddHashTagResponse' 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() { + @Override + public void write(JsonWriter out, AddHashTagResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `CreateHashTagResponse` + if (value.getActualInstance() instanceof CreateHashTagResponse) { + JsonElement element = adapterCreateHashTagResponse.toJsonTree((CreateHashTagResponse)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, CreateHashTagResponse"); + } + + @Override + public AddHashTagResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize CreateHashTagResponse + try { + // validate the JSON object to see if any exception is thrown + CreateHashTagResponse.validateJsonElement(jsonElement); + actualAdapter = adapterCreateHashTagResponse; + AddHashTagResponse ret = new AddHashTagResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateHashTagResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'CreateHashTagResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + AddHashTagResponse ret = new AddHashTagResponse(); + 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 AddHashTagResponse: 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 AddHashTagResponse() { + super("anyOf", Boolean.FALSE); + } + + public AddHashTagResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateHashTagResponse", CreateHashTagResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return AddHashTagResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, CreateHashTagResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof CreateHashTagResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, CreateHashTagResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, CreateHashTagResponse + * + * @return The actual instance (APIError, CreateHashTagResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `CreateHashTagResponse`. If the actual instance is not `CreateHashTagResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CreateHashTagResponse` + * @throws ClassCastException if the instance is not `CreateHashTagResponse` + */ + public CreateHashTagResponse getCreateHashTagResponse() throws ClassCastException { + return (CreateHashTagResponse)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 AddHashTagResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with CreateHashTagResponse + try { + CreateHashTagResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateHashTagResponse 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 AddHashTagResponse 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 AddHashTagResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of AddHashTagResponse + * @throws IOException if the JSON string is invalid with respect to AddHashTagResponse + */ + public static AddHashTagResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AddHashTagResponse.class); + } + + /** + * Convert an instance of AddHashTagResponse 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/AddHashTagsBulkResponse.java b/client/src/main/java/com/fastcomments/model/AddHashTagsBulkResponse.java new file mode 100644 index 00000000..b41de5c7 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/AddHashTagsBulkResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.BulkCreateHashTagsResponse; +import com.fastcomments.model.BulkCreateHashTagsResponseResultsInner; +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.23.0-SNAPSHOT") +public class AddHashTagsBulkResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(AddHashTagsBulkResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AddHashTagsBulkResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddHashTagsBulkResponse' 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, AddHashTagsBulkResponse 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 AddHashTagsBulkResponse 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; + AddHashTagsBulkResponse ret = new AddHashTagsBulkResponse(); + 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; + AddHashTagsBulkResponse ret = new AddHashTagsBulkResponse(); + 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 AddHashTagsBulkResponse: 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 AddHashTagsBulkResponse() { + super("anyOf", Boolean.FALSE); + } + + public AddHashTagsBulkResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("BulkCreateHashTagsResponse", BulkCreateHashTagsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return AddHashTagsBulkResponse.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 AddHashTagsBulkResponse + */ + 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 AddHashTagsBulkResponse 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 AddHashTagsBulkResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of AddHashTagsBulkResponse + * @throws IOException if the JSON string is invalid with respect to AddHashTagsBulkResponse + */ + public static AddHashTagsBulkResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AddHashTagsBulkResponse.class); + } + + /** + * Convert an instance of AddHashTagsBulkResponse 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/AggregateQuestionResultsResponse1.java b/client/src/main/java/com/fastcomments/model/AggregateQuestionResultsResponse1.java new file mode 100644 index 00000000..737adc9e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/AggregateQuestionResultsResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class AggregateQuestionResultsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(AggregateQuestionResultsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AggregateQuestionResultsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AggregateQuestionResultsResponse1' 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, AggregateQuestionResultsResponse1 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 AggregateQuestionResultsResponse1 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; + AggregateQuestionResultsResponse1 ret = new AggregateQuestionResultsResponse1(); + 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; + AggregateQuestionResultsResponse1 ret = new AggregateQuestionResultsResponse1(); + 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 AggregateQuestionResultsResponse1: 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 AggregateQuestionResultsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public AggregateQuestionResultsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AggregateQuestionResultsResponse", AggregateQuestionResultsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return AggregateQuestionResultsResponse1.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 AggregateQuestionResultsResponse1 + */ + 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 AggregateQuestionResultsResponse1 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 AggregateQuestionResultsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of AggregateQuestionResultsResponse1 + * @throws IOException if the JSON string is invalid with respect to AggregateQuestionResultsResponse1 + */ + public static AggregateQuestionResultsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AggregateQuestionResultsResponse1.class); + } + + /** + * Convert an instance of AggregateQuestionResultsResponse1 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/BlockFromCommentPublicResponse.java b/client/src/main/java/com/fastcomments/model/BlockFromCommentPublicResponse.java new file mode 100644 index 00000000..e6a95200 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/BlockFromCommentPublicResponse.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class BlockFromCommentPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(BlockFromCommentPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BlockFromCommentPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BlockFromCommentPublicResponse' 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, BlockFromCommentPublicResponse 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 BlockFromCommentPublicResponse 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; + BlockFromCommentPublicResponse ret = new BlockFromCommentPublicResponse(); + 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; + BlockFromCommentPublicResponse ret = new BlockFromCommentPublicResponse(); + 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 BlockFromCommentPublicResponse: 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 BlockFromCommentPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public BlockFromCommentPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("BlockSuccess", BlockSuccess.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return BlockFromCommentPublicResponse.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 BlockFromCommentPublicResponse + */ + 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 BlockFromCommentPublicResponse 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 BlockFromCommentPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of BlockFromCommentPublicResponse + * @throws IOException if the JSON string is invalid with respect to BlockFromCommentPublicResponse + */ + public static BlockFromCommentPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BlockFromCommentPublicResponse.class); + } + + /** + * Convert an instance of BlockFromCommentPublicResponse 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/BlockUserFromCommentResponse.java b/client/src/main/java/com/fastcomments/model/BlockUserFromCommentResponse.java new file mode 100644 index 00000000..2235d6f9 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/BlockUserFromCommentResponse.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class BlockUserFromCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(BlockUserFromCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BlockUserFromCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BlockUserFromCommentResponse' 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, BlockUserFromCommentResponse 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 BlockUserFromCommentResponse 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; + BlockUserFromCommentResponse ret = new BlockUserFromCommentResponse(); + 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; + BlockUserFromCommentResponse ret = new BlockUserFromCommentResponse(); + 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 BlockUserFromCommentResponse: 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 BlockUserFromCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public BlockUserFromCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("BlockSuccess", BlockSuccess.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return BlockUserFromCommentResponse.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 BlockUserFromCommentResponse + */ + 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 BlockUserFromCommentResponse 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 BlockUserFromCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of BlockUserFromCommentResponse + * @throws IOException if the JSON string is invalid with respect to BlockUserFromCommentResponse + */ + public static BlockUserFromCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BlockUserFromCommentResponse.class); + } + + /** + * Convert an instance of BlockUserFromCommentResponse 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/BulkAggregateQuestionResultsResponse1.java b/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1.java new file mode 100644 index 00000000..4b04a2fc --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class BulkAggregateQuestionResultsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(BulkAggregateQuestionResultsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!BulkAggregateQuestionResultsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'BulkAggregateQuestionResultsResponse1' 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, BulkAggregateQuestionResultsResponse1 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 BulkAggregateQuestionResultsResponse1 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; + BulkAggregateQuestionResultsResponse1 ret = new BulkAggregateQuestionResultsResponse1(); + 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; + BulkAggregateQuestionResultsResponse1 ret = new BulkAggregateQuestionResultsResponse1(); + 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 BulkAggregateQuestionResultsResponse1: 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 BulkAggregateQuestionResultsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public BulkAggregateQuestionResultsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("BulkAggregateQuestionResultsResponse", BulkAggregateQuestionResultsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return BulkAggregateQuestionResultsResponse1.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 BulkAggregateQuestionResultsResponse1 + */ + 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 BulkAggregateQuestionResultsResponse1 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 BulkAggregateQuestionResultsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of BulkAggregateQuestionResultsResponse1 + * @throws IOException if the JSON string is invalid with respect to BulkAggregateQuestionResultsResponse1 + */ + public static BulkAggregateQuestionResultsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, BulkAggregateQuestionResultsResponse1.class); + } + + /** + * Convert an instance of BulkAggregateQuestionResultsResponse1 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/ChangeTicketStateResponse1.java b/client/src/main/java/com/fastcomments/model/ChangeTicketStateResponse1.java new file mode 100644 index 00000000..2e1bfcb5 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ChangeTicketStateResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class ChangeTicketStateResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(ChangeTicketStateResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ChangeTicketStateResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ChangeTicketStateResponse1' 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, ChangeTicketStateResponse1 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 ChangeTicketStateResponse1 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; + ChangeTicketStateResponse1 ret = new ChangeTicketStateResponse1(); + 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; + ChangeTicketStateResponse1 ret = new ChangeTicketStateResponse1(); + 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 ChangeTicketStateResponse1: 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 ChangeTicketStateResponse1() { + super("anyOf", Boolean.FALSE); + } + + public ChangeTicketStateResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ChangeTicketStateResponse", ChangeTicketStateResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return ChangeTicketStateResponse1.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 ChangeTicketStateResponse1 + */ + 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 ChangeTicketStateResponse1 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 ChangeTicketStateResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of ChangeTicketStateResponse1 + * @throws IOException if the JSON string is invalid with respect to ChangeTicketStateResponse1 + */ + public static ChangeTicketStateResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ChangeTicketStateResponse1.class); + } + + /** + * Convert an instance of ChangeTicketStateResponse1 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/CheckedCommentsForBlockedResponse.java b/client/src/main/java/com/fastcomments/model/CheckedCommentsForBlockedResponse.java new file mode 100644 index 00000000..939bbc18 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CheckedCommentsForBlockedResponse.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.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 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 CheckedCommentsForBlockedResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CheckedCommentsForBlockedResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CheckedCommentsForBlockedResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CheckedCommentsForBlockedResponse' 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)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CheckedCommentsForBlockedResponse 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()); + 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, CheckBlockedCommentsResponse"); + } + + @Override + public CheckedCommentsForBlockedResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize CheckBlockedCommentsResponse + try { + // validate the JSON object to see if any exception is thrown + CheckBlockedCommentsResponse.validateJsonElement(jsonElement); + actualAdapter = adapterCheckBlockedCommentsResponse; + CheckedCommentsForBlockedResponse ret = new CheckedCommentsForBlockedResponse(); + 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); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + CheckedCommentsForBlockedResponse ret = new CheckedCommentsForBlockedResponse(); + 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 CheckedCommentsForBlockedResponse: 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 CheckedCommentsForBlockedResponse() { + super("anyOf", Boolean.FALSE); + } + + public CheckedCommentsForBlockedResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CheckBlockedCommentsResponse", CheckBlockedCommentsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CheckedCommentsForBlockedResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, CheckBlockedCommentsResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof CheckBlockedCommentsResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, CheckBlockedCommentsResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, CheckBlockedCommentsResponse + * + * @return The actual instance (APIError, CheckBlockedCommentsResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `CheckBlockedCommentsResponse`. If the actual instance is not `CheckBlockedCommentsResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CheckBlockedCommentsResponse` + * @throws ClassCastException if the instance is not `CheckBlockedCommentsResponse` + */ + public CheckBlockedCommentsResponse getCheckBlockedCommentsResponse() throws ClassCastException { + return (CheckBlockedCommentsResponse)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 CheckedCommentsForBlockedResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with CheckBlockedCommentsResponse + try { + CheckBlockedCommentsResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CheckBlockedCommentsResponse 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 CheckedCommentsForBlockedResponse 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())); + } + + /** + * Create an instance of CheckedCommentsForBlockedResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CheckedCommentsForBlockedResponse + * @throws IOException if the JSON string is invalid with respect to CheckedCommentsForBlockedResponse + */ + public static CheckedCommentsForBlockedResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CheckedCommentsForBlockedResponse.class); + } + + /** + * Convert an instance of CheckedCommentsForBlockedResponse 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/CombineCommentsWithQuestionResultsResponse.java b/client/src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponse.java new file mode 100644 index 00000000..45276e5e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CombineCommentsWithQuestionResultsResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CombineCommentsWithQuestionResultsResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CombineCommentsWithQuestionResultsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CombineCommentsWithQuestionResultsResponse' 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, CombineCommentsWithQuestionResultsResponse 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 CombineCommentsWithQuestionResultsResponse 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; + CombineCommentsWithQuestionResultsResponse ret = new CombineCommentsWithQuestionResultsResponse(); + 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; + CombineCommentsWithQuestionResultsResponse ret = new CombineCommentsWithQuestionResultsResponse(); + 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 CombineCommentsWithQuestionResultsResponse: 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 CombineCommentsWithQuestionResultsResponse() { + super("anyOf", Boolean.FALSE); + } + + public CombineCommentsWithQuestionResultsResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CombineQuestionResultsWithCommentsResponse", CombineQuestionResultsWithCommentsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CombineCommentsWithQuestionResultsResponse.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 CombineCommentsWithQuestionResultsResponse + */ + 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 CombineCommentsWithQuestionResultsResponse 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 CombineCommentsWithQuestionResultsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CombineCommentsWithQuestionResultsResponse + * @throws IOException if the JSON string is invalid with respect to CombineCommentsWithQuestionResultsResponse + */ + public static CombineCommentsWithQuestionResultsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CombineCommentsWithQuestionResultsResponse.class); + } + + /** + * Convert an instance of CombineCommentsWithQuestionResultsResponse 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/CreateCommentPublicResponse.java b/client/src/main/java/com/fastcomments/model/CreateCommentPublicResponse.java new file mode 100644 index 00000000..2099f11b --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateCommentPublicResponse.java @@ -0,0 +1,273 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateCommentPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateCommentPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateCommentPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateCommentPublicResponse' 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, CreateCommentPublicResponse 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 CreateCommentPublicResponse 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; + CreateCommentPublicResponse ret = new CreateCommentPublicResponse(); + 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; + CreateCommentPublicResponse ret = new CreateCommentPublicResponse(); + 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 CreateCommentPublicResponse: 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 CreateCommentPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public CreateCommentPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("SaveCommentsResponseWithPresence", SaveCommentsResponseWithPresence.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateCommentPublicResponse.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 CreateCommentPublicResponse + */ + 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 CreateCommentPublicResponse 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 CreateCommentPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateCommentPublicResponse + * @throws IOException if the JSON string is invalid with respect to CreateCommentPublicResponse + */ + public static CreateCommentPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateCommentPublicResponse.class); + } + + /** + * Convert an instance of CreateCommentPublicResponse 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/CreateEmailTemplateResponse1.java b/client/src/main/java/com/fastcomments/model/CreateEmailTemplateResponse1.java new file mode 100644 index 00000000..f1b5d70e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateEmailTemplateResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateEmailTemplateResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateEmailTemplateResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateEmailTemplateResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateEmailTemplateResponse1' 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, CreateEmailTemplateResponse1 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 CreateEmailTemplateResponse1 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; + CreateEmailTemplateResponse1 ret = new CreateEmailTemplateResponse1(); + 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; + CreateEmailTemplateResponse1 ret = new CreateEmailTemplateResponse1(); + 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 CreateEmailTemplateResponse1: 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 CreateEmailTemplateResponse1() { + super("anyOf", Boolean.FALSE); + } + + public CreateEmailTemplateResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateEmailTemplateResponse", CreateEmailTemplateResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateEmailTemplateResponse1.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 CreateEmailTemplateResponse1 + */ + 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 CreateEmailTemplateResponse1 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 CreateEmailTemplateResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateEmailTemplateResponse1 + * @throws IOException if the JSON string is invalid with respect to CreateEmailTemplateResponse1 + */ + public static CreateEmailTemplateResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateEmailTemplateResponse1.class); + } + + /** + * Convert an instance of CreateEmailTemplateResponse1 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/CreateFeedPostPublicResponse.java b/client/src/main/java/com/fastcomments/model/CreateFeedPostPublicResponse.java new file mode 100644 index 00000000..63d1e459 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateFeedPostPublicResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateFeedPostPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateFeedPostPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateFeedPostPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateFeedPostPublicResponse' 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, CreateFeedPostPublicResponse 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 CreateFeedPostPublicResponse 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; + CreateFeedPostPublicResponse ret = new CreateFeedPostPublicResponse(); + 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; + CreateFeedPostPublicResponse ret = new CreateFeedPostPublicResponse(); + 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 CreateFeedPostPublicResponse: 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 CreateFeedPostPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public CreateFeedPostPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateFeedPostResponse", CreateFeedPostResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateFeedPostPublicResponse.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 CreateFeedPostPublicResponse + */ + 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 CreateFeedPostPublicResponse 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 CreateFeedPostPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateFeedPostPublicResponse + * @throws IOException if the JSON string is invalid with respect to CreateFeedPostPublicResponse + */ + public static CreateFeedPostPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateFeedPostPublicResponse.class); + } + + /** + * Convert an instance of CreateFeedPostPublicResponse 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/CreateFeedPostResponse1.java b/client/src/main/java/com/fastcomments/model/CreateFeedPostResponse1.java new file mode 100644 index 00000000..307f2252 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateFeedPostResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateFeedPostResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateFeedPostResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateFeedPostResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateFeedPostResponse1' 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, CreateFeedPostResponse1 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 CreateFeedPostResponse1 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; + CreateFeedPostResponse1 ret = new CreateFeedPostResponse1(); + 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; + CreateFeedPostResponse1 ret = new CreateFeedPostResponse1(); + 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 CreateFeedPostResponse1: 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 CreateFeedPostResponse1() { + super("anyOf", Boolean.FALSE); + } + + public CreateFeedPostResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateFeedPostsResponse", CreateFeedPostsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateFeedPostResponse1.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 CreateFeedPostResponse1 + */ + 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 CreateFeedPostResponse1 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 CreateFeedPostResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateFeedPostResponse1 + * @throws IOException if the JSON string is invalid with respect to CreateFeedPostResponse1 + */ + public static CreateFeedPostResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateFeedPostResponse1.class); + } + + /** + * Convert an instance of CreateFeedPostResponse1 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/CreateModeratorResponse1.java b/client/src/main/java/com/fastcomments/model/CreateModeratorResponse1.java new file mode 100644 index 00000000..50cba239 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateModeratorResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateModeratorResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateModeratorResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateModeratorResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateModeratorResponse1' 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, CreateModeratorResponse1 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 CreateModeratorResponse1 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; + CreateModeratorResponse1 ret = new CreateModeratorResponse1(); + 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; + CreateModeratorResponse1 ret = new CreateModeratorResponse1(); + 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 CreateModeratorResponse1: 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 CreateModeratorResponse1() { + super("anyOf", Boolean.FALSE); + } + + public CreateModeratorResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateModeratorResponse", CreateModeratorResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateModeratorResponse1.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 CreateModeratorResponse1 + */ + 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 CreateModeratorResponse1 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 CreateModeratorResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateModeratorResponse1 + * @throws IOException if the JSON string is invalid with respect to CreateModeratorResponse1 + */ + public static CreateModeratorResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateModeratorResponse1.class); + } + + /** + * Convert an instance of CreateModeratorResponse1 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/CreateQuestionConfigResponse1.java b/client/src/main/java/com/fastcomments/model/CreateQuestionConfigResponse1.java new file mode 100644 index 00000000..ddeb1197 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateQuestionConfigResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateQuestionConfigResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateQuestionConfigResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateQuestionConfigResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateQuestionConfigResponse1' 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, CreateQuestionConfigResponse1 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 CreateQuestionConfigResponse1 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; + CreateQuestionConfigResponse1 ret = new CreateQuestionConfigResponse1(); + 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; + CreateQuestionConfigResponse1 ret = new CreateQuestionConfigResponse1(); + 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 CreateQuestionConfigResponse1: 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 CreateQuestionConfigResponse1() { + super("anyOf", Boolean.FALSE); + } + + public CreateQuestionConfigResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateQuestionConfigResponse", CreateQuestionConfigResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateQuestionConfigResponse1.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 CreateQuestionConfigResponse1 + */ + 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 CreateQuestionConfigResponse1 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 CreateQuestionConfigResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateQuestionConfigResponse1 + * @throws IOException if the JSON string is invalid with respect to CreateQuestionConfigResponse1 + */ + public static CreateQuestionConfigResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateQuestionConfigResponse1.class); + } + + /** + * Convert an instance of CreateQuestionConfigResponse1 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/CreateQuestionResultResponse1.java b/client/src/main/java/com/fastcomments/model/CreateQuestionResultResponse1.java new file mode 100644 index 00000000..748c1b0b --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateQuestionResultResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateQuestionResultResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateQuestionResultResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateQuestionResultResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateQuestionResultResponse1' 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, CreateQuestionResultResponse1 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 CreateQuestionResultResponse1 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; + CreateQuestionResultResponse1 ret = new CreateQuestionResultResponse1(); + 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; + CreateQuestionResultResponse1 ret = new CreateQuestionResultResponse1(); + 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 CreateQuestionResultResponse1: 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 CreateQuestionResultResponse1() { + super("anyOf", Boolean.FALSE); + } + + public CreateQuestionResultResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateQuestionResultResponse", CreateQuestionResultResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateQuestionResultResponse1.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 CreateQuestionResultResponse1 + */ + 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 CreateQuestionResultResponse1 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 CreateQuestionResultResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateQuestionResultResponse1 + * @throws IOException if the JSON string is invalid with respect to CreateQuestionResultResponse1 + */ + public static CreateQuestionResultResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateQuestionResultResponse1.class); + } + + /** + * Convert an instance of CreateQuestionResultResponse1 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/CreateTenantPackageResponse1.java b/client/src/main/java/com/fastcomments/model/CreateTenantPackageResponse1.java new file mode 100644 index 00000000..1f152cb1 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateTenantPackageResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateTenantPackageResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateTenantPackageResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateTenantPackageResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateTenantPackageResponse1' 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, CreateTenantPackageResponse1 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 CreateTenantPackageResponse1 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; + CreateTenantPackageResponse1 ret = new CreateTenantPackageResponse1(); + 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; + CreateTenantPackageResponse1 ret = new CreateTenantPackageResponse1(); + 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 CreateTenantPackageResponse1: 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 CreateTenantPackageResponse1() { + super("anyOf", Boolean.FALSE); + } + + public CreateTenantPackageResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateTenantPackageResponse", CreateTenantPackageResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateTenantPackageResponse1.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 CreateTenantPackageResponse1 + */ + 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 CreateTenantPackageResponse1 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 CreateTenantPackageResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateTenantPackageResponse1 + * @throws IOException if the JSON string is invalid with respect to CreateTenantPackageResponse1 + */ + public static CreateTenantPackageResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateTenantPackageResponse1.class); + } + + /** + * Convert an instance of CreateTenantPackageResponse1 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/CreateTenantResponse1.java b/client/src/main/java/com/fastcomments/model/CreateTenantResponse1.java new file mode 100644 index 00000000..b115c5ae --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateTenantResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateTenantResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateTenantResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateTenantResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateTenantResponse1' 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, CreateTenantResponse1 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 CreateTenantResponse1 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; + CreateTenantResponse1 ret = new CreateTenantResponse1(); + 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; + CreateTenantResponse1 ret = new CreateTenantResponse1(); + 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 CreateTenantResponse1: 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 CreateTenantResponse1() { + super("anyOf", Boolean.FALSE); + } + + public CreateTenantResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateTenantResponse", CreateTenantResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateTenantResponse1.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 CreateTenantResponse1 + */ + 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 CreateTenantResponse1 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 CreateTenantResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateTenantResponse1 + * @throws IOException if the JSON string is invalid with respect to CreateTenantResponse1 + */ + public static CreateTenantResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateTenantResponse1.class); + } + + /** + * Convert an instance of CreateTenantResponse1 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/CreateTenantUserResponse1.java b/client/src/main/java/com/fastcomments/model/CreateTenantUserResponse1.java new file mode 100644 index 00000000..d2927105 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateTenantUserResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateTenantUserResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateTenantUserResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateTenantUserResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateTenantUserResponse1' 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, CreateTenantUserResponse1 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 CreateTenantUserResponse1 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; + CreateTenantUserResponse1 ret = new CreateTenantUserResponse1(); + 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; + CreateTenantUserResponse1 ret = new CreateTenantUserResponse1(); + 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 CreateTenantUserResponse1: 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 CreateTenantUserResponse1() { + super("anyOf", Boolean.FALSE); + } + + public CreateTenantUserResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateTenantUserResponse", CreateTenantUserResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateTenantUserResponse1.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 CreateTenantUserResponse1 + */ + 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 CreateTenantUserResponse1 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 CreateTenantUserResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateTenantUserResponse1 + * @throws IOException if the JSON string is invalid with respect to CreateTenantUserResponse1 + */ + public static CreateTenantUserResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateTenantUserResponse1.class); + } + + /** + * Convert an instance of CreateTenantUserResponse1 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/CreateTicketResponse1.java b/client/src/main/java/com/fastcomments/model/CreateTicketResponse1.java new file mode 100644 index 00000000..4c5bc820 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateTicketResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateTicketResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateTicketResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateTicketResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateTicketResponse1' 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, CreateTicketResponse1 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 CreateTicketResponse1 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; + CreateTicketResponse1 ret = new CreateTicketResponse1(); + 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; + CreateTicketResponse1 ret = new CreateTicketResponse1(); + 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 CreateTicketResponse1: 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 CreateTicketResponse1() { + super("anyOf", Boolean.FALSE); + } + + public CreateTicketResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateTicketResponse", CreateTicketResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateTicketResponse1.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 CreateTicketResponse1 + */ + 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 CreateTicketResponse1 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 CreateTicketResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateTicketResponse1 + * @throws IOException if the JSON string is invalid with respect to CreateTicketResponse1 + */ + public static CreateTicketResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateTicketResponse1.class); + } + + /** + * Convert an instance of CreateTicketResponse1 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/CreateUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/CreateUserBadgeResponse.java new file mode 100644 index 00000000..b0f65eb4 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateUserBadgeResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateUserBadgeResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateUserBadgeResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateUserBadgeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateUserBadgeResponse' 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, CreateUserBadgeResponse 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 CreateUserBadgeResponse 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; + CreateUserBadgeResponse ret = new CreateUserBadgeResponse(); + 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; + CreateUserBadgeResponse ret = new CreateUserBadgeResponse(); + 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 CreateUserBadgeResponse: 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 CreateUserBadgeResponse() { + super("anyOf", Boolean.FALSE); + } + + public CreateUserBadgeResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APICreateUserBadgeResponse", APICreateUserBadgeResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateUserBadgeResponse.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 CreateUserBadgeResponse + */ + 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 CreateUserBadgeResponse 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 CreateUserBadgeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateUserBadgeResponse + * @throws IOException if the JSON string is invalid with respect to CreateUserBadgeResponse + */ + public static CreateUserBadgeResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateUserBadgeResponse.class); + } + + /** + * Convert an instance of CreateUserBadgeResponse 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/CreateV1PageReactResponse.java b/client/src/main/java/com/fastcomments/model/CreateV1PageReactResponse.java new file mode 100644 index 00000000..75fbf8cc --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateV1PageReactResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CreateV1PageReact; +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.23.0-SNAPSHOT") +public class CreateV1PageReactResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateV1PageReactResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateV1PageReactResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateV1PageReactResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterCreateV1PageReact = gson.getDelegateAdapter(this, TypeToken.get(CreateV1PageReact.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CreateV1PageReactResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `CreateV1PageReact` + if (value.getActualInstance() instanceof CreateV1PageReact) { + JsonElement element = adapterCreateV1PageReact.toJsonTree((CreateV1PageReact)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, CreateV1PageReact"); + } + + @Override + public CreateV1PageReactResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize CreateV1PageReact + try { + // validate the JSON object to see if any exception is thrown + CreateV1PageReact.validateJsonElement(jsonElement); + actualAdapter = adapterCreateV1PageReact; + CreateV1PageReactResponse ret = new CreateV1PageReactResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'CreateV1PageReact'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + CreateV1PageReactResponse ret = new CreateV1PageReactResponse(); + 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 CreateV1PageReactResponse: 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 CreateV1PageReactResponse() { + super("anyOf", Boolean.FALSE); + } + + public CreateV1PageReactResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateV1PageReact", CreateV1PageReact.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateV1PageReactResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, CreateV1PageReact + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof CreateV1PageReact) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, CreateV1PageReact"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, CreateV1PageReact + * + * @return The actual instance (APIError, CreateV1PageReact) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `CreateV1PageReact`. If the actual instance is not `CreateV1PageReact`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CreateV1PageReact` + * @throws ClassCastException if the instance is not `CreateV1PageReact` + */ + public CreateV1PageReact getCreateV1PageReact() throws ClassCastException { + return (CreateV1PageReact)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 CreateV1PageReactResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with CreateV1PageReact + try { + CreateV1PageReact.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact 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 CreateV1PageReactResponse with anyOf schemas: APIError, CreateV1PageReact. 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 CreateV1PageReactResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateV1PageReactResponse + * @throws IOException if the JSON string is invalid with respect to CreateV1PageReactResponse + */ + public static CreateV1PageReactResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateV1PageReactResponse.class); + } + + /** + * Convert an instance of CreateV1PageReactResponse 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/CreateV2PageReactResponse.java b/client/src/main/java/com/fastcomments/model/CreateV2PageReactResponse.java new file mode 100644 index 00000000..1d3a2731 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateV2PageReactResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CreateV1PageReact; +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.23.0-SNAPSHOT") +public class CreateV2PageReactResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateV2PageReactResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateV2PageReactResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateV2PageReactResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterCreateV1PageReact = gson.getDelegateAdapter(this, TypeToken.get(CreateV1PageReact.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CreateV2PageReactResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `CreateV1PageReact` + if (value.getActualInstance() instanceof CreateV1PageReact) { + JsonElement element = adapterCreateV1PageReact.toJsonTree((CreateV1PageReact)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, CreateV1PageReact"); + } + + @Override + public CreateV2PageReactResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize CreateV1PageReact + try { + // validate the JSON object to see if any exception is thrown + CreateV1PageReact.validateJsonElement(jsonElement); + actualAdapter = adapterCreateV1PageReact; + CreateV2PageReactResponse ret = new CreateV2PageReactResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'CreateV1PageReact'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + CreateV2PageReactResponse ret = new CreateV2PageReactResponse(); + 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 CreateV2PageReactResponse: 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 CreateV2PageReactResponse() { + super("anyOf", Boolean.FALSE); + } + + public CreateV2PageReactResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateV1PageReact", CreateV1PageReact.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateV2PageReactResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, CreateV1PageReact + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof CreateV1PageReact) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, CreateV1PageReact"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, CreateV1PageReact + * + * @return The actual instance (APIError, CreateV1PageReact) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `CreateV1PageReact`. If the actual instance is not `CreateV1PageReact`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CreateV1PageReact` + * @throws ClassCastException if the instance is not `CreateV1PageReact` + */ + public CreateV1PageReact getCreateV1PageReact() throws ClassCastException { + return (CreateV1PageReact)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 CreateV2PageReactResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with CreateV1PageReact + try { + CreateV1PageReact.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact 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 CreateV2PageReactResponse with anyOf schemas: APIError, CreateV1PageReact. 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 CreateV2PageReactResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateV2PageReactResponse + * @throws IOException if the JSON string is invalid with respect to CreateV2PageReactResponse + */ + public static CreateV2PageReactResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateV2PageReactResponse.class); + } + + /** + * Convert an instance of CreateV2PageReactResponse 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/CreateVoteResponse.java b/client/src/main/java/com/fastcomments/model/CreateVoteResponse.java new file mode 100644 index 00000000..005d120e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/CreateVoteResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class CreateVoteResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreateVoteResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateVoteResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateVoteResponse' 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, CreateVoteResponse 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 CreateVoteResponse 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; + CreateVoteResponse ret = new CreateVoteResponse(); + 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; + CreateVoteResponse ret = new CreateVoteResponse(); + 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 CreateVoteResponse: 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 CreateVoteResponse() { + super("anyOf", Boolean.FALSE); + } + + public CreateVoteResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("VoteResponse", VoteResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return CreateVoteResponse.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 CreateVoteResponse + */ + 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 CreateVoteResponse 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 CreateVoteResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateVoteResponse + * @throws IOException if the JSON string is invalid with respect to CreateVoteResponse + */ + public static CreateVoteResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateVoteResponse.class); + } + + /** + * Convert an instance of CreateVoteResponse 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/DeleteCommentPublicResponse.java b/client/src/main/java/com/fastcomments/model/DeleteCommentPublicResponse.java new file mode 100644 index 00000000..b8ec8914 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteCommentPublicResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteCommentPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteCommentPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteCommentPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCommentPublicResponse' 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, DeleteCommentPublicResponse 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 DeleteCommentPublicResponse 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; + DeleteCommentPublicResponse ret = new DeleteCommentPublicResponse(); + 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; + DeleteCommentPublicResponse ret = new DeleteCommentPublicResponse(); + 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 DeleteCommentPublicResponse: 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 DeleteCommentPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteCommentPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("PublicAPIDeleteCommentResponse", PublicAPIDeleteCommentResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteCommentPublicResponse.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 DeleteCommentPublicResponse + */ + 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 DeleteCommentPublicResponse 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 DeleteCommentPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteCommentPublicResponse + * @throws IOException if the JSON string is invalid with respect to DeleteCommentPublicResponse + */ + public static DeleteCommentPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteCommentPublicResponse.class); + } + + /** + * Convert an instance of DeleteCommentPublicResponse 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/DeleteCommentResponse.java b/client/src/main/java/com/fastcomments/model/DeleteCommentResponse.java new file mode 100644 index 00000000..843c4308 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteCommentResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.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 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 DeleteCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCommentResponse' 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)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCommentResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `DeleteCommentResult` + if (value.getActualInstance() instanceof DeleteCommentResult) { + JsonElement element = adapterDeleteCommentResult.toJsonTree((DeleteCommentResult)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, DeleteCommentResult"); + } + + @Override + public DeleteCommentResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize DeleteCommentResult + try { + // validate the JSON object to see if any exception is thrown + DeleteCommentResult.validateJsonElement(jsonElement); + actualAdapter = adapterDeleteCommentResult; + DeleteCommentResponse ret = new DeleteCommentResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + 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 + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + DeleteCommentResponse ret = new DeleteCommentResponse(); + 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 DeleteCommentResponse: 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 DeleteCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("DeleteCommentResult", DeleteCommentResult.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteCommentResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, DeleteCommentResult + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof DeleteCommentResult) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, DeleteCommentResult"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, DeleteCommentResult + * + * @return The actual instance (APIError, DeleteCommentResult) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `DeleteCommentResult`. If the actual instance is not `DeleteCommentResult`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `DeleteCommentResult` + * @throws ClassCastException if the instance is not `DeleteCommentResult` + */ + public DeleteCommentResult getDeleteCommentResult() throws ClassCastException { + return (DeleteCommentResult)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 DeleteCommentResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with DeleteCommentResult + try { + DeleteCommentResult.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + 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 + 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 DeleteCommentResponse 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())); + } + + /** + * Create an instance of DeleteCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteCommentResponse + * @throws IOException if the JSON string is invalid with respect to DeleteCommentResponse + */ + public static DeleteCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteCommentResponse.class); + } + + /** + * Convert an instance of DeleteCommentResponse 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/DeleteCommentVoteResponse.java b/client/src/main/java/com/fastcomments/model/DeleteCommentVoteResponse.java new file mode 100644 index 00000000..98c4eb38 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteCommentVoteResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteCommentVoteResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteCommentVoteResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteCommentVoteResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCommentVoteResponse' 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, DeleteCommentVoteResponse 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 DeleteCommentVoteResponse 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; + DeleteCommentVoteResponse ret = new DeleteCommentVoteResponse(); + 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; + DeleteCommentVoteResponse ret = new DeleteCommentVoteResponse(); + 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 DeleteCommentVoteResponse: 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 DeleteCommentVoteResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteCommentVoteResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("VoteDeleteResponse", VoteDeleteResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteCommentVoteResponse.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 DeleteCommentVoteResponse + */ + 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 DeleteCommentVoteResponse 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 DeleteCommentVoteResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteCommentVoteResponse + * @throws IOException if the JSON string is invalid with respect to DeleteCommentVoteResponse + */ + public static DeleteCommentVoteResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteCommentVoteResponse.class); + } + + /** + * Convert an instance of DeleteCommentVoteResponse 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/DeleteEmailTemplateRenderErrorResponse.java b/client/src/main/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponse.java new file mode 100644 index 00000000..35fa5bd9 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteEmailTemplateRenderErrorResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteEmailTemplateRenderErrorResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteEmailTemplateRenderErrorResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteEmailTemplateRenderErrorResponse' 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, DeleteEmailTemplateRenderErrorResponse 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 DeleteEmailTemplateRenderErrorResponse 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; + DeleteEmailTemplateRenderErrorResponse ret = new DeleteEmailTemplateRenderErrorResponse(); + 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; + DeleteEmailTemplateRenderErrorResponse ret = new DeleteEmailTemplateRenderErrorResponse(); + 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 DeleteEmailTemplateRenderErrorResponse: 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 DeleteEmailTemplateRenderErrorResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteEmailTemplateRenderErrorResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteEmailTemplateRenderErrorResponse.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 DeleteEmailTemplateRenderErrorResponse + */ + 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 DeleteEmailTemplateRenderErrorResponse 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 DeleteEmailTemplateRenderErrorResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteEmailTemplateRenderErrorResponse + * @throws IOException if the JSON string is invalid with respect to DeleteEmailTemplateRenderErrorResponse + */ + public static DeleteEmailTemplateRenderErrorResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteEmailTemplateRenderErrorResponse.class); + } + + /** + * Convert an instance of DeleteEmailTemplateRenderErrorResponse 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/DeleteEmailTemplateResponse.java b/client/src/main/java/com/fastcomments/model/DeleteEmailTemplateResponse.java new file mode 100644 index 00000000..9891a8fe --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteEmailTemplateResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteEmailTemplateResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteEmailTemplateResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteEmailTemplateResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteEmailTemplateResponse' 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, DeleteEmailTemplateResponse 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 DeleteEmailTemplateResponse 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; + DeleteEmailTemplateResponse ret = new DeleteEmailTemplateResponse(); + 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; + DeleteEmailTemplateResponse ret = new DeleteEmailTemplateResponse(); + 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 DeleteEmailTemplateResponse: 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 DeleteEmailTemplateResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteEmailTemplateResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteEmailTemplateResponse.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 DeleteEmailTemplateResponse + */ + 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 DeleteEmailTemplateResponse 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 DeleteEmailTemplateResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteEmailTemplateResponse + * @throws IOException if the JSON string is invalid with respect to DeleteEmailTemplateResponse + */ + public static DeleteEmailTemplateResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteEmailTemplateResponse.class); + } + + /** + * Convert an instance of DeleteEmailTemplateResponse 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/DeleteFeedPostPublicResponse.java b/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java index 320d9a6f..677dbf81 100644 --- a/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java +++ b/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java @@ -14,7 +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.DeleteFeedPostPublicResponseAnyOf; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -23,268 +26,244 @@ 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.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.TypeAdapter; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; +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 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.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; -/** - * DeleteFeedPostPublicResponse - */ @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 DeleteFeedPostPublicResponse() { - } - - public DeleteFeedPostPublicResponse 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 DeleteFeedPostPublicResponse instance itself - */ - public DeleteFeedPostPublicResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); +public class DeleteFeedPostPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteFeedPostPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + 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 adapterDeleteFeedPostPublicResponseAnyOf = gson.getDelegateAdapter(this, TypeToken.get(DeleteFeedPostPublicResponseAnyOf.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteFeedPostPublicResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `DeleteFeedPostPublicResponseAnyOf` + if (value.getActualInstance() instanceof DeleteFeedPostPublicResponseAnyOf) { + JsonElement element = adapterDeleteFeedPostPublicResponseAnyOf.toJsonTree((DeleteFeedPostPublicResponseAnyOf)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, DeleteFeedPostPublicResponseAnyOf"); + } + + @Override + public DeleteFeedPostPublicResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize DeleteFeedPostPublicResponseAnyOf + try { + // validate the JSON object to see if any exception is thrown + DeleteFeedPostPublicResponseAnyOf.validateJsonElement(jsonElement); + actualAdapter = adapterDeleteFeedPostPublicResponseAnyOf; + DeleteFeedPostPublicResponse ret = new DeleteFeedPostPublicResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for DeleteFeedPostPublicResponseAnyOf failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'DeleteFeedPostPublicResponseAnyOf'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + DeleteFeedPostPublicResponse ret = new DeleteFeedPostPublicResponse(); + 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 DeleteFeedPostPublicResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + } + }.nullSafe(); + } } - this.additionalProperties.put(key, value); - return this; - } - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } + // store a list of schema names defined in anyOf + public static final Map> schemas = new HashMap>(); - /** - * 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; + public DeleteFeedPostPublicResponse() { + super("anyOf", Boolean.FALSE); } - return this.additionalProperties.get(key); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public DeleteFeedPostPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeleteFeedPostPublicResponse deleteFeedPostPublicResponse = (DeleteFeedPostPublicResponse) o; - return Objects.equals(this.status, deleteFeedPostPublicResponse.status)&& - Objects.equals(this.additionalProperties, deleteFeedPostPublicResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(status, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DeleteFeedPostPublicResponse {\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("status")); + static { + schemas.put("DeleteFeedPostPublicResponseAnyOf", DeleteFeedPostPublicResponseAnyOf.class); + schemas.put("APIError", APIError.class); + } - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("status")); - } + @Override + public Map> getSchemas() { + return DeleteFeedPostPublicResponse.schemas; + } - /** - * 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 DeleteFeedPostPublicResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - 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())); + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, DeleteFeedPostPublicResponseAnyOf + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof DeleteFeedPostPublicResponseAnyOf) { + super.setActualInstance(instance); + return; } - } - // check to make sure all required properties/fields are present in the JSON string - 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())); + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `status` - APIStatus.validateJsonElement(jsonObj.get("status")); - } - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + throw new RuntimeException("Invalid instance type. Must be APIError, DeleteFeedPostPublicResponseAnyOf"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, DeleteFeedPostPublicResponseAnyOf + * + * @return The actual instance (APIError, DeleteFeedPostPublicResponseAnyOf) + */ @SuppressWarnings("unchecked") @Override - public TypeAdapter create(Gson gson, TypeToken type) { - 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(DeleteFeedPostPublicResponse.class)); + public Object getActualInstance() { + return super.getActualInstance(); + } - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteFeedPostPublicResponse 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); - } + /** + * Get the actual instance of `DeleteFeedPostPublicResponseAnyOf`. If the actual instance is not `DeleteFeedPostPublicResponseAnyOf`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `DeleteFeedPostPublicResponseAnyOf` + * @throws ClassCastException if the instance is not `DeleteFeedPostPublicResponseAnyOf` + */ + public DeleteFeedPostPublicResponseAnyOf getDeleteFeedPostPublicResponseAnyOf() throws ClassCastException { + return (DeleteFeedPostPublicResponseAnyOf)super.getActualInstance(); + } - @Override - 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 - DeleteFeedPostPublicResponse 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; - } + /** + * 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(); + } - }.nullSafe(); + /** + * 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 DeleteFeedPostPublicResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with DeleteFeedPostPublicResponseAnyOf + try { + DeleteFeedPostPublicResponseAnyOf.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for DeleteFeedPostPublicResponseAnyOf 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 DeleteFeedPostPublicResponse with anyOf schemas: APIError, DeleteFeedPostPublicResponseAnyOf. 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 DeleteFeedPostPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteFeedPostPublicResponse - * @throws IOException if the JSON string is invalid with respect to DeleteFeedPostPublicResponse - */ - public static DeleteFeedPostPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteFeedPostPublicResponse.class); - } + /** + * Create an instance of DeleteFeedPostPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteFeedPostPublicResponse + * @throws IOException if the JSON string is invalid with respect to DeleteFeedPostPublicResponse + */ + public static DeleteFeedPostPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteFeedPostPublicResponse.class); + } - /** - * Convert an instance of DeleteFeedPostPublicResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } + /** + * Convert an instance of DeleteFeedPostPublicResponse 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/DeleteFeedPostPublicResponseAnyOf.java b/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOf.java new file mode 100644 index 00000000..74d1c2ce --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOf.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.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; + +/** + * DeleteFeedPostPublicResponseAnyOf + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") +public class DeleteFeedPostPublicResponseAnyOf { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; + + public DeleteFeedPostPublicResponseAnyOf() { + } + + public DeleteFeedPostPublicResponseAnyOf 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 DeleteFeedPostPublicResponseAnyOf instance itself + */ + public DeleteFeedPostPublicResponseAnyOf 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; + } + DeleteFeedPostPublicResponseAnyOf deleteFeedPostPublicResponseAnyOf = (DeleteFeedPostPublicResponseAnyOf) o; + return Objects.equals(this.status, deleteFeedPostPublicResponseAnyOf.status)&& + Objects.equals(this.additionalProperties, deleteFeedPostPublicResponseAnyOf.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteFeedPostPublicResponseAnyOf {\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("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 DeleteFeedPostPublicResponseAnyOf + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DeleteFeedPostPublicResponseAnyOf.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 DeleteFeedPostPublicResponseAnyOf is not found in the empty JSON string", DeleteFeedPostPublicResponseAnyOf.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DeleteFeedPostPublicResponseAnyOf.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 (!DeleteFeedPostPublicResponseAnyOf.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteFeedPostPublicResponseAnyOf' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteFeedPostPublicResponseAnyOf.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteFeedPostPublicResponseAnyOf 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 DeleteFeedPostPublicResponseAnyOf read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + DeleteFeedPostPublicResponseAnyOf 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 DeleteFeedPostPublicResponseAnyOf given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteFeedPostPublicResponseAnyOf + * @throws IOException if the JSON string is invalid with respect to DeleteFeedPostPublicResponseAnyOf + */ + public static DeleteFeedPostPublicResponseAnyOf fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteFeedPostPublicResponseAnyOf.class); + } + + /** + * Convert an instance of DeleteFeedPostPublicResponseAnyOf 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/DeleteHashTagResponse.java b/client/src/main/java/com/fastcomments/model/DeleteHashTagResponse.java new file mode 100644 index 00000000..a45d9eb7 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteHashTagResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteHashTagResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteHashTagResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteHashTagResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteHashTagResponse' 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, DeleteHashTagResponse 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 DeleteHashTagResponse 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; + DeleteHashTagResponse ret = new DeleteHashTagResponse(); + 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; + DeleteHashTagResponse ret = new DeleteHashTagResponse(); + 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 DeleteHashTagResponse: 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 DeleteHashTagResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteHashTagResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteHashTagResponse.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 DeleteHashTagResponse + */ + 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 DeleteHashTagResponse 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 DeleteHashTagResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteHashTagResponse + * @throws IOException if the JSON string is invalid with respect to DeleteHashTagResponse + */ + public static DeleteHashTagResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteHashTagResponse.class); + } + + /** + * Convert an instance of DeleteHashTagResponse 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/DeleteModerationVoteResponse.java b/client/src/main/java/com/fastcomments/model/DeleteModerationVoteResponse.java new file mode 100644 index 00000000..914244aa --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteModerationVoteResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteModerationVoteResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteModerationVoteResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteModerationVoteResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteModerationVoteResponse' 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, DeleteModerationVoteResponse 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 DeleteModerationVoteResponse 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; + DeleteModerationVoteResponse ret = new DeleteModerationVoteResponse(); + 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; + DeleteModerationVoteResponse ret = new DeleteModerationVoteResponse(); + 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 DeleteModerationVoteResponse: 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 DeleteModerationVoteResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteModerationVoteResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("VoteDeleteResponse", VoteDeleteResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteModerationVoteResponse.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 DeleteModerationVoteResponse + */ + 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 DeleteModerationVoteResponse 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 DeleteModerationVoteResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteModerationVoteResponse + * @throws IOException if the JSON string is invalid with respect to DeleteModerationVoteResponse + */ + public static DeleteModerationVoteResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteModerationVoteResponse.class); + } + + /** + * Convert an instance of DeleteModerationVoteResponse 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/DeleteModeratorResponse.java b/client/src/main/java/com/fastcomments/model/DeleteModeratorResponse.java new file mode 100644 index 00000000..3e1b1e01 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteModeratorResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteModeratorResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteModeratorResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteModeratorResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteModeratorResponse' 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, DeleteModeratorResponse 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 DeleteModeratorResponse 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; + DeleteModeratorResponse ret = new DeleteModeratorResponse(); + 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; + DeleteModeratorResponse ret = new DeleteModeratorResponse(); + 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 DeleteModeratorResponse: 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 DeleteModeratorResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteModeratorResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteModeratorResponse.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 DeleteModeratorResponse + */ + 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 DeleteModeratorResponse 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 DeleteModeratorResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteModeratorResponse + * @throws IOException if the JSON string is invalid with respect to DeleteModeratorResponse + */ + public static DeleteModeratorResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteModeratorResponse.class); + } + + /** + * Convert an instance of DeleteModeratorResponse 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/DeleteNotificationCountResponse.java b/client/src/main/java/com/fastcomments/model/DeleteNotificationCountResponse.java new file mode 100644 index 00000000..9a5d48d8 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteNotificationCountResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteNotificationCountResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteNotificationCountResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteNotificationCountResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteNotificationCountResponse' 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, DeleteNotificationCountResponse 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 DeleteNotificationCountResponse 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; + DeleteNotificationCountResponse ret = new DeleteNotificationCountResponse(); + 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; + DeleteNotificationCountResponse ret = new DeleteNotificationCountResponse(); + 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 DeleteNotificationCountResponse: 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 DeleteNotificationCountResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteNotificationCountResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteNotificationCountResponse.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 DeleteNotificationCountResponse + */ + 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 DeleteNotificationCountResponse 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 DeleteNotificationCountResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteNotificationCountResponse + * @throws IOException if the JSON string is invalid with respect to DeleteNotificationCountResponse + */ + public static DeleteNotificationCountResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteNotificationCountResponse.class); + } + + /** + * Convert an instance of DeleteNotificationCountResponse 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/DeletePendingWebhookEventResponse.java b/client/src/main/java/com/fastcomments/model/DeletePendingWebhookEventResponse.java new file mode 100644 index 00000000..ba08fc92 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeletePendingWebhookEventResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeletePendingWebhookEventResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeletePendingWebhookEventResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeletePendingWebhookEventResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeletePendingWebhookEventResponse' 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, DeletePendingWebhookEventResponse 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 DeletePendingWebhookEventResponse 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; + DeletePendingWebhookEventResponse ret = new DeletePendingWebhookEventResponse(); + 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; + DeletePendingWebhookEventResponse ret = new DeletePendingWebhookEventResponse(); + 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 DeletePendingWebhookEventResponse: 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 DeletePendingWebhookEventResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeletePendingWebhookEventResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeletePendingWebhookEventResponse.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 DeletePendingWebhookEventResponse + */ + 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 DeletePendingWebhookEventResponse 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 DeletePendingWebhookEventResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeletePendingWebhookEventResponse + * @throws IOException if the JSON string is invalid with respect to DeletePendingWebhookEventResponse + */ + public static DeletePendingWebhookEventResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeletePendingWebhookEventResponse.class); + } + + /** + * Convert an instance of DeletePendingWebhookEventResponse 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/DeleteQuestionConfigResponse.java b/client/src/main/java/com/fastcomments/model/DeleteQuestionConfigResponse.java new file mode 100644 index 00000000..d239e937 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteQuestionConfigResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteQuestionConfigResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteQuestionConfigResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteQuestionConfigResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteQuestionConfigResponse' 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, DeleteQuestionConfigResponse 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 DeleteQuestionConfigResponse 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; + DeleteQuestionConfigResponse ret = new DeleteQuestionConfigResponse(); + 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; + DeleteQuestionConfigResponse ret = new DeleteQuestionConfigResponse(); + 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 DeleteQuestionConfigResponse: 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 DeleteQuestionConfigResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteQuestionConfigResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteQuestionConfigResponse.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 DeleteQuestionConfigResponse + */ + 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 DeleteQuestionConfigResponse 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 DeleteQuestionConfigResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteQuestionConfigResponse + * @throws IOException if the JSON string is invalid with respect to DeleteQuestionConfigResponse + */ + public static DeleteQuestionConfigResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteQuestionConfigResponse.class); + } + + /** + * Convert an instance of DeleteQuestionConfigResponse 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/DeleteQuestionResultResponse.java b/client/src/main/java/com/fastcomments/model/DeleteQuestionResultResponse.java new file mode 100644 index 00000000..c30a3052 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteQuestionResultResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteQuestionResultResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteQuestionResultResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteQuestionResultResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteQuestionResultResponse' 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, DeleteQuestionResultResponse 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 DeleteQuestionResultResponse 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; + DeleteQuestionResultResponse ret = new DeleteQuestionResultResponse(); + 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; + DeleteQuestionResultResponse ret = new DeleteQuestionResultResponse(); + 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 DeleteQuestionResultResponse: 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 DeleteQuestionResultResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteQuestionResultResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteQuestionResultResponse.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 DeleteQuestionResultResponse + */ + 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 DeleteQuestionResultResponse 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 DeleteQuestionResultResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteQuestionResultResponse + * @throws IOException if the JSON string is invalid with respect to DeleteQuestionResultResponse + */ + public static DeleteQuestionResultResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteQuestionResultResponse.class); + } + + /** + * Convert an instance of DeleteQuestionResultResponse 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/DeleteTenantPackageResponse.java b/client/src/main/java/com/fastcomments/model/DeleteTenantPackageResponse.java new file mode 100644 index 00000000..8d1e8ac5 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteTenantPackageResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteTenantPackageResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteTenantPackageResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteTenantPackageResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteTenantPackageResponse' 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, DeleteTenantPackageResponse 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 DeleteTenantPackageResponse 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; + DeleteTenantPackageResponse ret = new DeleteTenantPackageResponse(); + 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; + DeleteTenantPackageResponse ret = new DeleteTenantPackageResponse(); + 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 DeleteTenantPackageResponse: 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 DeleteTenantPackageResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteTenantPackageResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteTenantPackageResponse.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 DeleteTenantPackageResponse + */ + 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 DeleteTenantPackageResponse 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 DeleteTenantPackageResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteTenantPackageResponse + * @throws IOException if the JSON string is invalid with respect to DeleteTenantPackageResponse + */ + public static DeleteTenantPackageResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteTenantPackageResponse.class); + } + + /** + * Convert an instance of DeleteTenantPackageResponse 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/DeleteTenantResponse.java b/client/src/main/java/com/fastcomments/model/DeleteTenantResponse.java new file mode 100644 index 00000000..81227a2c --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteTenantResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteTenantResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteTenantResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteTenantResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteTenantResponse' 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, DeleteTenantResponse 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 DeleteTenantResponse 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; + DeleteTenantResponse ret = new DeleteTenantResponse(); + 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; + DeleteTenantResponse ret = new DeleteTenantResponse(); + 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 DeleteTenantResponse: 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 DeleteTenantResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteTenantResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteTenantResponse.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 DeleteTenantResponse + */ + 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 DeleteTenantResponse 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 DeleteTenantResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteTenantResponse + * @throws IOException if the JSON string is invalid with respect to DeleteTenantResponse + */ + public static DeleteTenantResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteTenantResponse.class); + } + + /** + * Convert an instance of DeleteTenantResponse 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/DeleteTenantUserResponse.java b/client/src/main/java/com/fastcomments/model/DeleteTenantUserResponse.java new file mode 100644 index 00000000..e5c8f501 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteTenantUserResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteTenantUserResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteTenantUserResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteTenantUserResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteTenantUserResponse' 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, DeleteTenantUserResponse 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 DeleteTenantUserResponse 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; + DeleteTenantUserResponse ret = new DeleteTenantUserResponse(); + 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; + DeleteTenantUserResponse ret = new DeleteTenantUserResponse(); + 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 DeleteTenantUserResponse: 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 DeleteTenantUserResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteTenantUserResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteTenantUserResponse.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 DeleteTenantUserResponse + */ + 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 DeleteTenantUserResponse 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 DeleteTenantUserResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteTenantUserResponse + * @throws IOException if the JSON string is invalid with respect to DeleteTenantUserResponse + */ + public static DeleteTenantUserResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteTenantUserResponse.class); + } + + /** + * Convert an instance of DeleteTenantUserResponse 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/DeleteUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/DeleteUserBadgeResponse.java new file mode 100644 index 00000000..b651b771 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteUserBadgeResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.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 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 DeleteUserBadgeResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteUserBadgeResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteUserBadgeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteUserBadgeResponse' 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)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteUserBadgeResponse 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()); + 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: APIEmptySuccessResponse, APIError"); + } + + @Override + public DeleteUserBadgeResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize APIEmptySuccessResponse + try { + // validate the JSON object to see if any exception is thrown + APIEmptySuccessResponse.validateJsonElement(jsonElement); + actualAdapter = adapterAPIEmptySuccessResponse; + DeleteUserBadgeResponse ret = new DeleteUserBadgeResponse(); + 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); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + DeleteUserBadgeResponse ret = new DeleteUserBadgeResponse(); + 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 DeleteUserBadgeResponse: 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 DeleteUserBadgeResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteUserBadgeResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptySuccessResponse", APIEmptySuccessResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteUserBadgeResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIEmptySuccessResponse, APIError + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof APIEmptySuccessResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIEmptySuccessResponse, APIError"); + } + + /** + * Get the actual instance, which can be the following: + * APIEmptySuccessResponse, APIError + * + * @return The actual instance (APIEmptySuccessResponse, APIError) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `APIEmptySuccessResponse`. If the actual instance is not `APIEmptySuccessResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `APIEmptySuccessResponse` + * @throws ClassCastException if the instance is not `APIEmptySuccessResponse` + */ + public APIEmptySuccessResponse getAPIEmptySuccessResponse() throws ClassCastException { + return (APIEmptySuccessResponse)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 DeleteUserBadgeResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with APIEmptySuccessResponse + try { + APIEmptySuccessResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIEmptySuccessResponse 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 DeleteUserBadgeResponse 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())); + } + + /** + * Create an instance of DeleteUserBadgeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteUserBadgeResponse + * @throws IOException if the JSON string is invalid with respect to DeleteUserBadgeResponse + */ + public static DeleteUserBadgeResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteUserBadgeResponse.class); + } + + /** + * Convert an instance of DeleteUserBadgeResponse 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/DeleteV1PageReactResponse.java b/client/src/main/java/com/fastcomments/model/DeleteV1PageReactResponse.java new file mode 100644 index 00000000..55de369d --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteV1PageReactResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CreateV1PageReact; +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.23.0-SNAPSHOT") +public class DeleteV1PageReactResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteV1PageReactResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteV1PageReactResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteV1PageReactResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterCreateV1PageReact = gson.getDelegateAdapter(this, TypeToken.get(CreateV1PageReact.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteV1PageReactResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `CreateV1PageReact` + if (value.getActualInstance() instanceof CreateV1PageReact) { + JsonElement element = adapterCreateV1PageReact.toJsonTree((CreateV1PageReact)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, CreateV1PageReact"); + } + + @Override + public DeleteV1PageReactResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize CreateV1PageReact + try { + // validate the JSON object to see if any exception is thrown + CreateV1PageReact.validateJsonElement(jsonElement); + actualAdapter = adapterCreateV1PageReact; + DeleteV1PageReactResponse ret = new DeleteV1PageReactResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'CreateV1PageReact'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + DeleteV1PageReactResponse ret = new DeleteV1PageReactResponse(); + 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 DeleteV1PageReactResponse: 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 DeleteV1PageReactResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteV1PageReactResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateV1PageReact", CreateV1PageReact.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteV1PageReactResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, CreateV1PageReact + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof CreateV1PageReact) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, CreateV1PageReact"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, CreateV1PageReact + * + * @return The actual instance (APIError, CreateV1PageReact) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `CreateV1PageReact`. If the actual instance is not `CreateV1PageReact`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CreateV1PageReact` + * @throws ClassCastException if the instance is not `CreateV1PageReact` + */ + public CreateV1PageReact getCreateV1PageReact() throws ClassCastException { + return (CreateV1PageReact)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 DeleteV1PageReactResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with CreateV1PageReact + try { + CreateV1PageReact.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact 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 DeleteV1PageReactResponse with anyOf schemas: APIError, CreateV1PageReact. 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 DeleteV1PageReactResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteV1PageReactResponse + * @throws IOException if the JSON string is invalid with respect to DeleteV1PageReactResponse + */ + public static DeleteV1PageReactResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteV1PageReactResponse.class); + } + + /** + * Convert an instance of DeleteV1PageReactResponse 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/DeleteV2PageReactResponse.java b/client/src/main/java/com/fastcomments/model/DeleteV2PageReactResponse.java new file mode 100644 index 00000000..7c53e06e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteV2PageReactResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CreateV1PageReact; +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.23.0-SNAPSHOT") +public class DeleteV2PageReactResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteV2PageReactResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteV2PageReactResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteV2PageReactResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterCreateV1PageReact = gson.getDelegateAdapter(this, TypeToken.get(CreateV1PageReact.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteV2PageReactResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `CreateV1PageReact` + if (value.getActualInstance() instanceof CreateV1PageReact) { + JsonElement element = adapterCreateV1PageReact.toJsonTree((CreateV1PageReact)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, CreateV1PageReact"); + } + + @Override + public DeleteV2PageReactResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize CreateV1PageReact + try { + // validate the JSON object to see if any exception is thrown + CreateV1PageReact.validateJsonElement(jsonElement); + actualAdapter = adapterCreateV1PageReact; + DeleteV2PageReactResponse ret = new DeleteV2PageReactResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'CreateV1PageReact'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + DeleteV2PageReactResponse ret = new DeleteV2PageReactResponse(); + 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 DeleteV2PageReactResponse: 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 DeleteV2PageReactResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteV2PageReactResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateV1PageReact", CreateV1PageReact.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteV2PageReactResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, CreateV1PageReact + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof CreateV1PageReact) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, CreateV1PageReact"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, CreateV1PageReact + * + * @return The actual instance (APIError, CreateV1PageReact) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `CreateV1PageReact`. If the actual instance is not `CreateV1PageReact`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CreateV1PageReact` + * @throws ClassCastException if the instance is not `CreateV1PageReact` + */ + public CreateV1PageReact getCreateV1PageReact() throws ClassCastException { + return (CreateV1PageReact)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 DeleteV2PageReactResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with CreateV1PageReact + try { + CreateV1PageReact.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact 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 DeleteV2PageReactResponse with anyOf schemas: APIError, CreateV1PageReact. 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 DeleteV2PageReactResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteV2PageReactResponse + * @throws IOException if the JSON string is invalid with respect to DeleteV2PageReactResponse + */ + public static DeleteV2PageReactResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteV2PageReactResponse.class); + } + + /** + * Convert an instance of DeleteV2PageReactResponse 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/DeleteVoteResponse.java b/client/src/main/java/com/fastcomments/model/DeleteVoteResponse.java new file mode 100644 index 00000000..62eb4a32 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/DeleteVoteResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class DeleteVoteResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(DeleteVoteResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DeleteVoteResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteVoteResponse' 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, DeleteVoteResponse 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 DeleteVoteResponse 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; + DeleteVoteResponse ret = new DeleteVoteResponse(); + 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; + DeleteVoteResponse ret = new DeleteVoteResponse(); + 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 DeleteVoteResponse: 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 DeleteVoteResponse() { + super("anyOf", Boolean.FALSE); + } + + public DeleteVoteResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("VoteDeleteResponse", VoteDeleteResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return DeleteVoteResponse.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 DeleteVoteResponse + */ + 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 DeleteVoteResponse 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 DeleteVoteResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteVoteResponse + * @throws IOException if the JSON string is invalid with respect to DeleteVoteResponse + */ + public static DeleteVoteResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteVoteResponse.class); + } + + /** + * Convert an instance of DeleteVoteResponse 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/FlagCommentPublicResponse.java b/client/src/main/java/com/fastcomments/model/FlagCommentPublicResponse.java new file mode 100644 index 00000000..184843bd --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/FlagCommentPublicResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class FlagCommentPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(FlagCommentPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FlagCommentPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FlagCommentPublicResponse' 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, FlagCommentPublicResponse 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 FlagCommentPublicResponse 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; + FlagCommentPublicResponse ret = new FlagCommentPublicResponse(); + 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; + FlagCommentPublicResponse ret = new FlagCommentPublicResponse(); + 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 FlagCommentPublicResponse: 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 FlagCommentPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public FlagCommentPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return FlagCommentPublicResponse.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 FlagCommentPublicResponse + */ + 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 FlagCommentPublicResponse 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 FlagCommentPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of FlagCommentPublicResponse + * @throws IOException if the JSON string is invalid with respect to FlagCommentPublicResponse + */ + public static FlagCommentPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, FlagCommentPublicResponse.class); + } + + /** + * Convert an instance of FlagCommentPublicResponse 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/FlagCommentResponse1.java b/client/src/main/java/com/fastcomments/model/FlagCommentResponse1.java new file mode 100644 index 00000000..f80197ee --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/FlagCommentResponse1.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class FlagCommentResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(FlagCommentResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FlagCommentResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FlagCommentResponse1' 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, FlagCommentResponse1 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 FlagCommentResponse1 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; + FlagCommentResponse1 ret = new FlagCommentResponse1(); + 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; + FlagCommentResponse1 ret = new FlagCommentResponse1(); + 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 FlagCommentResponse1: 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 FlagCommentResponse1() { + super("anyOf", Boolean.FALSE); + } + + public FlagCommentResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("FlagCommentResponse", FlagCommentResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return FlagCommentResponse1.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 FlagCommentResponse1 + */ + 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 FlagCommentResponse1 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 FlagCommentResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of FlagCommentResponse1 + * @throws IOException if the JSON string is invalid with respect to FlagCommentResponse1 + */ + public static FlagCommentResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, FlagCommentResponse1.class); + } + + /** + * Convert an instance of FlagCommentResponse1 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/GetApiCommentsResponse.java b/client/src/main/java/com/fastcomments/model/GetApiCommentsResponse.java new file mode 100644 index 00000000..ffd7b7e9 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetApiCommentsResponse.java @@ -0,0 +1,273 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPIComment; +import com.fastcomments.model.ModerationAPIGetCommentsResponse; +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 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 GetApiCommentsResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetApiCommentsResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetApiCommentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetApiCommentsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationAPIGetCommentsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIGetCommentsResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetApiCommentsResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationAPIGetCommentsResponse` + if (value.getActualInstance() instanceof ModerationAPIGetCommentsResponse) { + JsonElement element = adapterModerationAPIGetCommentsResponse.toJsonTree((ModerationAPIGetCommentsResponse)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, ModerationAPIGetCommentsResponse"); + } + + @Override + public GetApiCommentsResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationAPIGetCommentsResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationAPIGetCommentsResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationAPIGetCommentsResponse; + GetApiCommentsResponse ret = new GetApiCommentsResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetCommentsResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationAPIGetCommentsResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetApiCommentsResponse ret = new GetApiCommentsResponse(); + 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 GetApiCommentsResponse: 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 GetApiCommentsResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetApiCommentsResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationAPIGetCommentsResponse", ModerationAPIGetCommentsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetApiCommentsResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationAPIGetCommentsResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationAPIGetCommentsResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPIGetCommentsResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationAPIGetCommentsResponse + * + * @return The actual instance (APIError, ModerationAPIGetCommentsResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationAPIGetCommentsResponse`. If the actual instance is not `ModerationAPIGetCommentsResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationAPIGetCommentsResponse` + * @throws ClassCastException if the instance is not `ModerationAPIGetCommentsResponse` + */ + public ModerationAPIGetCommentsResponse getModerationAPIGetCommentsResponse() throws ClassCastException { + return (ModerationAPIGetCommentsResponse)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 GetApiCommentsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationAPIGetCommentsResponse + try { + ModerationAPIGetCommentsResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetCommentsResponse 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 GetApiCommentsResponse with anyOf schemas: APIError, ModerationAPIGetCommentsResponse. 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 GetApiCommentsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetApiCommentsResponse + * @throws IOException if the JSON string is invalid with respect to GetApiCommentsResponse + */ + public static GetApiCommentsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetApiCommentsResponse.class); + } + + /** + * Convert an instance of GetApiCommentsResponse 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/GetApiExportStatusResponse.java b/client/src/main/java/com/fastcomments/model/GetApiExportStatusResponse.java new file mode 100644 index 00000000..68cfaee5 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetApiExportStatusResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationExportStatusResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetApiExportStatusResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetApiExportStatusResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetApiExportStatusResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetApiExportStatusResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationExportStatusResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationExportStatusResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetApiExportStatusResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationExportStatusResponse` + if (value.getActualInstance() instanceof ModerationExportStatusResponse) { + JsonElement element = adapterModerationExportStatusResponse.toJsonTree((ModerationExportStatusResponse)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, ModerationExportStatusResponse"); + } + + @Override + public GetApiExportStatusResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationExportStatusResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationExportStatusResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationExportStatusResponse; + GetApiExportStatusResponse ret = new GetApiExportStatusResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationExportStatusResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationExportStatusResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetApiExportStatusResponse ret = new GetApiExportStatusResponse(); + 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 GetApiExportStatusResponse: 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 GetApiExportStatusResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetApiExportStatusResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationExportStatusResponse", ModerationExportStatusResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetApiExportStatusResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationExportStatusResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationExportStatusResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationExportStatusResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationExportStatusResponse + * + * @return The actual instance (APIError, ModerationExportStatusResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationExportStatusResponse`. If the actual instance is not `ModerationExportStatusResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationExportStatusResponse` + * @throws ClassCastException if the instance is not `ModerationExportStatusResponse` + */ + public ModerationExportStatusResponse getModerationExportStatusResponse() throws ClassCastException { + return (ModerationExportStatusResponse)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 GetApiExportStatusResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationExportStatusResponse + try { + ModerationExportStatusResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationExportStatusResponse 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 GetApiExportStatusResponse with anyOf schemas: APIError, ModerationExportStatusResponse. 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 GetApiExportStatusResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetApiExportStatusResponse + * @throws IOException if the JSON string is invalid with respect to GetApiExportStatusResponse + */ + public static GetApiExportStatusResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetApiExportStatusResponse.class); + } + + /** + * Convert an instance of GetApiExportStatusResponse 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/GetApiIdsResponse.java b/client/src/main/java/com/fastcomments/model/GetApiIdsResponse.java new file mode 100644 index 00000000..b3ddb018 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetApiIdsResponse.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPIGetCommentIdsResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetApiIdsResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetApiIdsResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetApiIdsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetApiIdsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationAPIGetCommentIdsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIGetCommentIdsResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetApiIdsResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationAPIGetCommentIdsResponse` + if (value.getActualInstance() instanceof ModerationAPIGetCommentIdsResponse) { + JsonElement element = adapterModerationAPIGetCommentIdsResponse.toJsonTree((ModerationAPIGetCommentIdsResponse)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, ModerationAPIGetCommentIdsResponse"); + } + + @Override + public GetApiIdsResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationAPIGetCommentIdsResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationAPIGetCommentIdsResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationAPIGetCommentIdsResponse; + GetApiIdsResponse ret = new GetApiIdsResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetCommentIdsResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationAPIGetCommentIdsResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetApiIdsResponse ret = new GetApiIdsResponse(); + 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 GetApiIdsResponse: 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 GetApiIdsResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetApiIdsResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationAPIGetCommentIdsResponse", ModerationAPIGetCommentIdsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetApiIdsResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationAPIGetCommentIdsResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationAPIGetCommentIdsResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPIGetCommentIdsResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationAPIGetCommentIdsResponse + * + * @return The actual instance (APIError, ModerationAPIGetCommentIdsResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationAPIGetCommentIdsResponse`. If the actual instance is not `ModerationAPIGetCommentIdsResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationAPIGetCommentIdsResponse` + * @throws ClassCastException if the instance is not `ModerationAPIGetCommentIdsResponse` + */ + public ModerationAPIGetCommentIdsResponse getModerationAPIGetCommentIdsResponse() throws ClassCastException { + return (ModerationAPIGetCommentIdsResponse)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 GetApiIdsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationAPIGetCommentIdsResponse + try { + ModerationAPIGetCommentIdsResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetCommentIdsResponse 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 GetApiIdsResponse with anyOf schemas: APIError, ModerationAPIGetCommentIdsResponse. 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 GetApiIdsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetApiIdsResponse + * @throws IOException if the JSON string is invalid with respect to GetApiIdsResponse + */ + public static GetApiIdsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetApiIdsResponse.class); + } + + /** + * Convert an instance of GetApiIdsResponse 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/GetAuditLogsResponse1.java b/client/src/main/java/com/fastcomments/model/GetAuditLogsResponse1.java new file mode 100644 index 00000000..ec80223d --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetAuditLogsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetAuditLogsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetAuditLogsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetAuditLogsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetAuditLogsResponse1' 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, GetAuditLogsResponse1 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 GetAuditLogsResponse1 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; + GetAuditLogsResponse1 ret = new GetAuditLogsResponse1(); + 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; + GetAuditLogsResponse1 ret = new GetAuditLogsResponse1(); + 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 GetAuditLogsResponse1: 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 GetAuditLogsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetAuditLogsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetAuditLogsResponse", GetAuditLogsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetAuditLogsResponse1.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 GetAuditLogsResponse1 + */ + 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 GetAuditLogsResponse1 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 GetAuditLogsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetAuditLogsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetAuditLogsResponse1 + */ + public static GetAuditLogsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetAuditLogsResponse1.class); + } + + /** + * Convert an instance of GetAuditLogsResponse1 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/GetBanUsersFromCommentResponse.java b/client/src/main/java/com/fastcomments/model/GetBanUsersFromCommentResponse.java new file mode 100644 index 00000000..7911fbd2 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetBanUsersFromCommentResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.GetBannedUsersFromCommentResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetBanUsersFromCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetBanUsersFromCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetBanUsersFromCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetBanUsersFromCommentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetBannedUsersFromCommentResponse = gson.getDelegateAdapter(this, TypeToken.get(GetBannedUsersFromCommentResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetBanUsersFromCommentResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetBannedUsersFromCommentResponse` + if (value.getActualInstance() instanceof GetBannedUsersFromCommentResponse) { + JsonElement element = adapterGetBannedUsersFromCommentResponse.toJsonTree((GetBannedUsersFromCommentResponse)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, GetBannedUsersFromCommentResponse"); + } + + @Override + public GetBanUsersFromCommentResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetBannedUsersFromCommentResponse + try { + // validate the JSON object to see if any exception is thrown + GetBannedUsersFromCommentResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetBannedUsersFromCommentResponse; + GetBanUsersFromCommentResponse ret = new GetBanUsersFromCommentResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetBannedUsersFromCommentResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetBannedUsersFromCommentResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetBanUsersFromCommentResponse ret = new GetBanUsersFromCommentResponse(); + 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 GetBanUsersFromCommentResponse: 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 GetBanUsersFromCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetBanUsersFromCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetBannedUsersFromCommentResponse", GetBannedUsersFromCommentResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetBanUsersFromCommentResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetBannedUsersFromCommentResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetBannedUsersFromCommentResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetBannedUsersFromCommentResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetBannedUsersFromCommentResponse + * + * @return The actual instance (APIError, GetBannedUsersFromCommentResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetBannedUsersFromCommentResponse`. If the actual instance is not `GetBannedUsersFromCommentResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetBannedUsersFromCommentResponse` + * @throws ClassCastException if the instance is not `GetBannedUsersFromCommentResponse` + */ + public GetBannedUsersFromCommentResponse getGetBannedUsersFromCommentResponse() throws ClassCastException { + return (GetBannedUsersFromCommentResponse)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 GetBanUsersFromCommentResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetBannedUsersFromCommentResponse + try { + GetBannedUsersFromCommentResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetBannedUsersFromCommentResponse 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 GetBanUsersFromCommentResponse with anyOf schemas: APIError, GetBannedUsersFromCommentResponse. 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 GetBanUsersFromCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetBanUsersFromCommentResponse + * @throws IOException if the JSON string is invalid with respect to GetBanUsersFromCommentResponse + */ + public static GetBanUsersFromCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetBanUsersFromCommentResponse.class); + } + + /** + * Convert an instance of GetBanUsersFromCommentResponse 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/GetCachedNotificationCountResponse1.java b/client/src/main/java/com/fastcomments/model/GetCachedNotificationCountResponse1.java new file mode 100644 index 00000000..37a50395 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCachedNotificationCountResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetCachedNotificationCountResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetCachedNotificationCountResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCachedNotificationCountResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCachedNotificationCountResponse1' 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, GetCachedNotificationCountResponse1 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 GetCachedNotificationCountResponse1 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; + GetCachedNotificationCountResponse1 ret = new GetCachedNotificationCountResponse1(); + 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; + GetCachedNotificationCountResponse1 ret = new GetCachedNotificationCountResponse1(); + 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 GetCachedNotificationCountResponse1: 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 GetCachedNotificationCountResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetCachedNotificationCountResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetCachedNotificationCountResponse", GetCachedNotificationCountResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetCachedNotificationCountResponse1.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 GetCachedNotificationCountResponse1 + */ + 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 GetCachedNotificationCountResponse1 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 GetCachedNotificationCountResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCachedNotificationCountResponse1 + * @throws IOException if the JSON string is invalid with respect to GetCachedNotificationCountResponse1 + */ + public static GetCachedNotificationCountResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCachedNotificationCountResponse1.class); + } + + /** + * Convert an instance of GetCachedNotificationCountResponse1 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/GetCommentBanStatusResponse1.java b/client/src/main/java/com/fastcomments/model/GetCommentBanStatusResponse1.java new file mode 100644 index 00000000..90b0b318 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCommentBanStatusResponse1.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetCommentBanStatusResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetCommentBanStatusResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetCommentBanStatusResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCommentBanStatusResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCommentBanStatusResponse1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetCommentBanStatusResponse = gson.getDelegateAdapter(this, TypeToken.get(GetCommentBanStatusResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCommentBanStatusResponse1 value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetCommentBanStatusResponse` + if (value.getActualInstance() instanceof GetCommentBanStatusResponse) { + JsonElement element = adapterGetCommentBanStatusResponse.toJsonTree((GetCommentBanStatusResponse)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, GetCommentBanStatusResponse"); + } + + @Override + public GetCommentBanStatusResponse1 read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetCommentBanStatusResponse + try { + // validate the JSON object to see if any exception is thrown + GetCommentBanStatusResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetCommentBanStatusResponse; + GetCommentBanStatusResponse1 ret = new GetCommentBanStatusResponse1(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentBanStatusResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetCommentBanStatusResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetCommentBanStatusResponse1 ret = new GetCommentBanStatusResponse1(); + 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 GetCommentBanStatusResponse1: 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 GetCommentBanStatusResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetCommentBanStatusResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetCommentBanStatusResponse", GetCommentBanStatusResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetCommentBanStatusResponse1.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetCommentBanStatusResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetCommentBanStatusResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetCommentBanStatusResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetCommentBanStatusResponse + * + * @return The actual instance (APIError, GetCommentBanStatusResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetCommentBanStatusResponse`. If the actual instance is not `GetCommentBanStatusResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetCommentBanStatusResponse` + * @throws ClassCastException if the instance is not `GetCommentBanStatusResponse` + */ + public GetCommentBanStatusResponse getGetCommentBanStatusResponse() throws ClassCastException { + return (GetCommentBanStatusResponse)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 GetCommentBanStatusResponse1 + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetCommentBanStatusResponse + try { + GetCommentBanStatusResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentBanStatusResponse 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 GetCommentBanStatusResponse1 with anyOf schemas: APIError, GetCommentBanStatusResponse. 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 GetCommentBanStatusResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCommentBanStatusResponse1 + * @throws IOException if the JSON string is invalid with respect to GetCommentBanStatusResponse1 + */ + public static GetCommentBanStatusResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCommentBanStatusResponse1.class); + } + + /** + * Convert an instance of GetCommentBanStatusResponse1 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/GetCommentChildrenResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentChildrenResponse.java new file mode 100644 index 00000000..1c9a4d72 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCommentChildrenResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPIChildCommentsResponse; +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 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 GetCommentChildrenResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetCommentChildrenResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCommentChildrenResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCommentChildrenResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationAPIChildCommentsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIChildCommentsResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCommentChildrenResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationAPIChildCommentsResponse` + if (value.getActualInstance() instanceof ModerationAPIChildCommentsResponse) { + JsonElement element = adapterModerationAPIChildCommentsResponse.toJsonTree((ModerationAPIChildCommentsResponse)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, ModerationAPIChildCommentsResponse"); + } + + @Override + public GetCommentChildrenResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationAPIChildCommentsResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationAPIChildCommentsResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationAPIChildCommentsResponse; + GetCommentChildrenResponse ret = new GetCommentChildrenResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIChildCommentsResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationAPIChildCommentsResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetCommentChildrenResponse ret = new GetCommentChildrenResponse(); + 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 GetCommentChildrenResponse: 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 GetCommentChildrenResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetCommentChildrenResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationAPIChildCommentsResponse", ModerationAPIChildCommentsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetCommentChildrenResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationAPIChildCommentsResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationAPIChildCommentsResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPIChildCommentsResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationAPIChildCommentsResponse + * + * @return The actual instance (APIError, ModerationAPIChildCommentsResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationAPIChildCommentsResponse`. If the actual instance is not `ModerationAPIChildCommentsResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationAPIChildCommentsResponse` + * @throws ClassCastException if the instance is not `ModerationAPIChildCommentsResponse` + */ + public ModerationAPIChildCommentsResponse getModerationAPIChildCommentsResponse() throws ClassCastException { + return (ModerationAPIChildCommentsResponse)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 GetCommentChildrenResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationAPIChildCommentsResponse + try { + ModerationAPIChildCommentsResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIChildCommentsResponse 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 GetCommentChildrenResponse with anyOf schemas: APIError, ModerationAPIChildCommentsResponse. 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 GetCommentChildrenResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCommentChildrenResponse + * @throws IOException if the JSON string is invalid with respect to GetCommentChildrenResponse + */ + public static GetCommentChildrenResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCommentChildrenResponse.class); + } + + /** + * Convert an instance of GetCommentChildrenResponse 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/GetCommentResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentResponse.java new file mode 100644 index 00000000..b53efa84 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCommentResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCommentResponse' 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, GetCommentResponse 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 GetCommentResponse 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; + GetCommentResponse ret = new GetCommentResponse(); + 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; + GetCommentResponse ret = new GetCommentResponse(); + 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 GetCommentResponse: 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 GetCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIGetCommentResponse", APIGetCommentResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetCommentResponse.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 GetCommentResponse + */ + 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 GetCommentResponse 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 GetCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCommentResponse + * @throws IOException if the JSON string is invalid with respect to GetCommentResponse + */ + public static GetCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCommentResponse.class); + } + + /** + * Convert an instance of GetCommentResponse 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/GetCommentTextResponse1.java b/client/src/main/java/com/fastcomments/model/GetCommentTextResponse1.java new file mode 100644 index 00000000..fc1db913 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCommentTextResponse1.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetCommentTextResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetCommentTextResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCommentTextResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCommentTextResponse1' 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, GetCommentTextResponse1 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 GetCommentTextResponse1 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; + GetCommentTextResponse1 ret = new GetCommentTextResponse1(); + 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; + GetCommentTextResponse1 ret = new GetCommentTextResponse1(); + 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 GetCommentTextResponse1: 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 GetCommentTextResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetCommentTextResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("PublicAPIGetCommentTextResponse", PublicAPIGetCommentTextResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetCommentTextResponse1.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 GetCommentTextResponse1 + */ + 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 GetCommentTextResponse1 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 GetCommentTextResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCommentTextResponse1 + * @throws IOException if the JSON string is invalid with respect to GetCommentTextResponse1 + */ + public static GetCommentTextResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCommentTextResponse1.class); + } + + /** + * Convert an instance of GetCommentTextResponse1 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/GetCommentVoteUserNamesResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentVoteUserNamesResponse.java new file mode 100644 index 00000000..5322f52f --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCommentVoteUserNamesResponse.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetCommentVoteUserNamesResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetCommentVoteUserNamesResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCommentVoteUserNamesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCommentVoteUserNamesResponse' 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, GetCommentVoteUserNamesResponse 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 GetCommentVoteUserNamesResponse 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; + GetCommentVoteUserNamesResponse ret = new GetCommentVoteUserNamesResponse(); + 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; + GetCommentVoteUserNamesResponse ret = new GetCommentVoteUserNamesResponse(); + 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 GetCommentVoteUserNamesResponse: 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 GetCommentVoteUserNamesResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetCommentVoteUserNamesResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetCommentVoteUserNamesSuccessResponse", GetCommentVoteUserNamesSuccessResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetCommentVoteUserNamesResponse.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 GetCommentVoteUserNamesResponse + */ + 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 GetCommentVoteUserNamesResponse 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 GetCommentVoteUserNamesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCommentVoteUserNamesResponse + * @throws IOException if the JSON string is invalid with respect to GetCommentVoteUserNamesResponse + */ + public static GetCommentVoteUserNamesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCommentVoteUserNamesResponse.class); + } + + /** + * Convert an instance of GetCommentVoteUserNamesResponse 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/GetCommentsForUserResponse1.java b/client/src/main/java/com/fastcomments/model/GetCommentsForUserResponse1.java new file mode 100644 index 00000000..d59093ce --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCommentsForUserResponse1.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetCommentsForUserResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetCommentsForUserResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetCommentsForUserResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCommentsForUserResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCommentsForUserResponse1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetCommentsForUserResponse = gson.getDelegateAdapter(this, TypeToken.get(GetCommentsForUserResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCommentsForUserResponse1 value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetCommentsForUserResponse` + if (value.getActualInstance() instanceof GetCommentsForUserResponse) { + JsonElement element = adapterGetCommentsForUserResponse.toJsonTree((GetCommentsForUserResponse)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, GetCommentsForUserResponse"); + } + + @Override + public GetCommentsForUserResponse1 read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetCommentsForUserResponse + try { + // validate the JSON object to see if any exception is thrown + GetCommentsForUserResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetCommentsForUserResponse; + GetCommentsForUserResponse1 ret = new GetCommentsForUserResponse1(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentsForUserResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetCommentsForUserResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetCommentsForUserResponse1 ret = new GetCommentsForUserResponse1(); + 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 GetCommentsForUserResponse1: 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 GetCommentsForUserResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetCommentsForUserResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetCommentsForUserResponse", GetCommentsForUserResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetCommentsForUserResponse1.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetCommentsForUserResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetCommentsForUserResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetCommentsForUserResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetCommentsForUserResponse + * + * @return The actual instance (APIError, GetCommentsForUserResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetCommentsForUserResponse`. If the actual instance is not `GetCommentsForUserResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetCommentsForUserResponse` + * @throws ClassCastException if the instance is not `GetCommentsForUserResponse` + */ + public GetCommentsForUserResponse getGetCommentsForUserResponse() throws ClassCastException { + return (GetCommentsForUserResponse)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 GetCommentsForUserResponse1 + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetCommentsForUserResponse + try { + GetCommentsForUserResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentsForUserResponse 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 GetCommentsForUserResponse1 with anyOf schemas: APIError, GetCommentsForUserResponse. 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 GetCommentsForUserResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCommentsForUserResponse1 + * @throws IOException if the JSON string is invalid with respect to GetCommentsForUserResponse1 + */ + public static GetCommentsForUserResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCommentsForUserResponse1.class); + } + + /** + * Convert an instance of GetCommentsForUserResponse1 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/GetCommentsPublicResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentsPublicResponse.java new file mode 100644 index 00000000..0a7d2532 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCommentsPublicResponse.java @@ -0,0 +1,275 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetCommentsPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetCommentsPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCommentsPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCommentsPublicResponse' 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, GetCommentsPublicResponse 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 GetCommentsPublicResponse 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; + GetCommentsPublicResponse ret = new GetCommentsPublicResponse(); + 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; + GetCommentsPublicResponse ret = new GetCommentsPublicResponse(); + 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 GetCommentsPublicResponse: 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 GetCommentsPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetCommentsPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetCommentsResponseWithPresencePublicComment", GetCommentsResponseWithPresencePublicComment.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetCommentsPublicResponse.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 GetCommentsPublicResponse + */ + 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 GetCommentsPublicResponse 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 GetCommentsPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCommentsPublicResponse + * @throws IOException if the JSON string is invalid with respect to GetCommentsPublicResponse + */ + public static GetCommentsPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCommentsPublicResponse.class); + } + + /** + * Convert an instance of GetCommentsPublicResponse 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/GetCommentsResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentsResponse.java new file mode 100644 index 00000000..05db1826 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCommentsResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetCommentsResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetCommentsResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCommentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCommentsResponse' 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, GetCommentsResponse 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 GetCommentsResponse 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; + GetCommentsResponse ret = new GetCommentsResponse(); + 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; + GetCommentsResponse ret = new GetCommentsResponse(); + 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 GetCommentsResponse: 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 GetCommentsResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetCommentsResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIGetCommentsResponse", APIGetCommentsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetCommentsResponse.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 GetCommentsResponse + */ + 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 GetCommentsResponse 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 GetCommentsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCommentsResponse + * @throws IOException if the JSON string is invalid with respect to GetCommentsResponse + */ + public static GetCommentsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCommentsResponse.class); + } + + /** + * Convert an instance of GetCommentsResponse 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/GetCountResponse.java b/client/src/main/java/com/fastcomments/model/GetCountResponse.java new file mode 100644 index 00000000..227266f1 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCountResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPICountCommentsResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetCountResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetCountResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCountResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCountResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationAPICountCommentsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPICountCommentsResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCountResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationAPICountCommentsResponse` + if (value.getActualInstance() instanceof ModerationAPICountCommentsResponse) { + JsonElement element = adapterModerationAPICountCommentsResponse.toJsonTree((ModerationAPICountCommentsResponse)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, ModerationAPICountCommentsResponse"); + } + + @Override + public GetCountResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationAPICountCommentsResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationAPICountCommentsResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationAPICountCommentsResponse; + GetCountResponse ret = new GetCountResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPICountCommentsResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationAPICountCommentsResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetCountResponse ret = new GetCountResponse(); + 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 GetCountResponse: 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 GetCountResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetCountResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationAPICountCommentsResponse", ModerationAPICountCommentsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetCountResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationAPICountCommentsResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationAPICountCommentsResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPICountCommentsResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationAPICountCommentsResponse + * + * @return The actual instance (APIError, ModerationAPICountCommentsResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationAPICountCommentsResponse`. If the actual instance is not `ModerationAPICountCommentsResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationAPICountCommentsResponse` + * @throws ClassCastException if the instance is not `ModerationAPICountCommentsResponse` + */ + public ModerationAPICountCommentsResponse getModerationAPICountCommentsResponse() throws ClassCastException { + return (ModerationAPICountCommentsResponse)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 GetCountResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationAPICountCommentsResponse + try { + ModerationAPICountCommentsResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPICountCommentsResponse 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 GetCountResponse with anyOf schemas: APIError, ModerationAPICountCommentsResponse. 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 GetCountResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCountResponse + * @throws IOException if the JSON string is invalid with respect to GetCountResponse + */ + public static GetCountResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCountResponse.class); + } + + /** + * Convert an instance of GetCountResponse 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/GetCountsResponse.java b/client/src/main/java/com/fastcomments/model/GetCountsResponse.java new file mode 100644 index 00000000..bf02e984 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetCountsResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetBannedUsersCountResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetCountsResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetCountsResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetCountsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCountsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetBannedUsersCountResponse = gson.getDelegateAdapter(this, TypeToken.get(GetBannedUsersCountResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCountsResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetBannedUsersCountResponse` + if (value.getActualInstance() instanceof GetBannedUsersCountResponse) { + JsonElement element = adapterGetBannedUsersCountResponse.toJsonTree((GetBannedUsersCountResponse)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, GetBannedUsersCountResponse"); + } + + @Override + public GetCountsResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetBannedUsersCountResponse + try { + // validate the JSON object to see if any exception is thrown + GetBannedUsersCountResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetBannedUsersCountResponse; + GetCountsResponse ret = new GetCountsResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetBannedUsersCountResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetBannedUsersCountResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetCountsResponse ret = new GetCountsResponse(); + 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 GetCountsResponse: 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 GetCountsResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetCountsResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetBannedUsersCountResponse", GetBannedUsersCountResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetCountsResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetBannedUsersCountResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetBannedUsersCountResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetBannedUsersCountResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetBannedUsersCountResponse + * + * @return The actual instance (APIError, GetBannedUsersCountResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetBannedUsersCountResponse`. If the actual instance is not `GetBannedUsersCountResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetBannedUsersCountResponse` + * @throws ClassCastException if the instance is not `GetBannedUsersCountResponse` + */ + public GetBannedUsersCountResponse getGetBannedUsersCountResponse() throws ClassCastException { + return (GetBannedUsersCountResponse)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 GetCountsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetBannedUsersCountResponse + try { + GetBannedUsersCountResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetBannedUsersCountResponse 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 GetCountsResponse with anyOf schemas: APIError, GetBannedUsersCountResponse. 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 GetCountsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetCountsResponse + * @throws IOException if the JSON string is invalid with respect to GetCountsResponse + */ + public static GetCountsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetCountsResponse.class); + } + + /** + * Convert an instance of GetCountsResponse 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/GetEmailTemplateDefinitionsResponse1.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1.java new file mode 100644 index 00000000..5713ff49 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetEmailTemplateDefinitionsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetEmailTemplateDefinitionsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetEmailTemplateDefinitionsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEmailTemplateDefinitionsResponse1' 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, GetEmailTemplateDefinitionsResponse1 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 GetEmailTemplateDefinitionsResponse1 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; + GetEmailTemplateDefinitionsResponse1 ret = new GetEmailTemplateDefinitionsResponse1(); + 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; + GetEmailTemplateDefinitionsResponse1 ret = new GetEmailTemplateDefinitionsResponse1(); + 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 GetEmailTemplateDefinitionsResponse1: 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 GetEmailTemplateDefinitionsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetEmailTemplateDefinitionsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetEmailTemplateDefinitionsResponse", GetEmailTemplateDefinitionsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetEmailTemplateDefinitionsResponse1.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 GetEmailTemplateDefinitionsResponse1 + */ + 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 GetEmailTemplateDefinitionsResponse1 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 GetEmailTemplateDefinitionsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetEmailTemplateDefinitionsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetEmailTemplateDefinitionsResponse1 + */ + public static GetEmailTemplateDefinitionsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetEmailTemplateDefinitionsResponse1.class); + } + + /** + * Convert an instance of GetEmailTemplateDefinitionsResponse1 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/GetEmailTemplateRenderErrorsResponse1.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1.java new file mode 100644 index 00000000..5ee1c716 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetEmailTemplateRenderErrorsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetEmailTemplateRenderErrorsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetEmailTemplateRenderErrorsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEmailTemplateRenderErrorsResponse1' 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, GetEmailTemplateRenderErrorsResponse1 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 GetEmailTemplateRenderErrorsResponse1 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; + GetEmailTemplateRenderErrorsResponse1 ret = new GetEmailTemplateRenderErrorsResponse1(); + 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; + GetEmailTemplateRenderErrorsResponse1 ret = new GetEmailTemplateRenderErrorsResponse1(); + 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 GetEmailTemplateRenderErrorsResponse1: 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 GetEmailTemplateRenderErrorsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetEmailTemplateRenderErrorsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetEmailTemplateRenderErrorsResponse", GetEmailTemplateRenderErrorsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetEmailTemplateRenderErrorsResponse1.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 GetEmailTemplateRenderErrorsResponse1 + */ + 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 GetEmailTemplateRenderErrorsResponse1 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 GetEmailTemplateRenderErrorsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetEmailTemplateRenderErrorsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetEmailTemplateRenderErrorsResponse1 + */ + public static GetEmailTemplateRenderErrorsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetEmailTemplateRenderErrorsResponse1.class); + } + + /** + * Convert an instance of GetEmailTemplateRenderErrorsResponse1 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/GetEmailTemplateResponse1.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplateResponse1.java new file mode 100644 index 00000000..edd128eb --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetEmailTemplateResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetEmailTemplateResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetEmailTemplateResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetEmailTemplateResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEmailTemplateResponse1' 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, GetEmailTemplateResponse1 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 GetEmailTemplateResponse1 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; + GetEmailTemplateResponse1 ret = new GetEmailTemplateResponse1(); + 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; + GetEmailTemplateResponse1 ret = new GetEmailTemplateResponse1(); + 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 GetEmailTemplateResponse1: 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 GetEmailTemplateResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetEmailTemplateResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetEmailTemplateResponse", GetEmailTemplateResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetEmailTemplateResponse1.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 GetEmailTemplateResponse1 + */ + 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 GetEmailTemplateResponse1 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 GetEmailTemplateResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetEmailTemplateResponse1 + * @throws IOException if the JSON string is invalid with respect to GetEmailTemplateResponse1 + */ + public static GetEmailTemplateResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetEmailTemplateResponse1.class); + } + + /** + * Convert an instance of GetEmailTemplateResponse1 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/GetEmailTemplatesResponse1.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplatesResponse1.java new file mode 100644 index 00000000..d7ac9dff --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetEmailTemplatesResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetEmailTemplatesResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetEmailTemplatesResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetEmailTemplatesResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEmailTemplatesResponse1' 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, GetEmailTemplatesResponse1 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 GetEmailTemplatesResponse1 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; + GetEmailTemplatesResponse1 ret = new GetEmailTemplatesResponse1(); + 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; + GetEmailTemplatesResponse1 ret = new GetEmailTemplatesResponse1(); + 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 GetEmailTemplatesResponse1: 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 GetEmailTemplatesResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetEmailTemplatesResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetEmailTemplatesResponse", GetEmailTemplatesResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetEmailTemplatesResponse1.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 GetEmailTemplatesResponse1 + */ + 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 GetEmailTemplatesResponse1 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 GetEmailTemplatesResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetEmailTemplatesResponse1 + * @throws IOException if the JSON string is invalid with respect to GetEmailTemplatesResponse1 + */ + public static GetEmailTemplatesResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetEmailTemplatesResponse1.class); + } + + /** + * Convert an instance of GetEmailTemplatesResponse1 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/GetEventLogResponse1.java b/client/src/main/java/com/fastcomments/model/GetEventLogResponse1.java new file mode 100644 index 00000000..ae30bc8e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetEventLogResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetEventLogResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetEventLogResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetEventLogResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEventLogResponse1' 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, GetEventLogResponse1 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 GetEventLogResponse1 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; + GetEventLogResponse1 ret = new GetEventLogResponse1(); + 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; + GetEventLogResponse1 ret = new GetEventLogResponse1(); + 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 GetEventLogResponse1: 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 GetEventLogResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetEventLogResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetEventLogResponse", GetEventLogResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetEventLogResponse1.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 GetEventLogResponse1 + */ + 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 GetEventLogResponse1 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 GetEventLogResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetEventLogResponse1 + * @throws IOException if the JSON string is invalid with respect to GetEventLogResponse1 + */ + public static GetEventLogResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetEventLogResponse1.class); + } + + /** + * Convert an instance of GetEventLogResponse1 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/GetFeedPostsPublicResponse.java b/client/src/main/java/com/fastcomments/model/GetFeedPostsPublicResponse.java new file mode 100644 index 00000000..58678cfc --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetFeedPostsPublicResponse.java @@ -0,0 +1,275 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.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 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 GetFeedPostsPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetFeedPostsPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetFeedPostsPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetFeedPostsPublicResponse' 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)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetFeedPostsPublicResponse 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); + 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, PublicFeedPostsResponse"); + } + + @Override + public GetFeedPostsPublicResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize PublicFeedPostsResponse + try { + // validate the JSON object to see if any exception is thrown + PublicFeedPostsResponse.validateJsonElement(jsonElement); + actualAdapter = adapterPublicFeedPostsResponse; + GetFeedPostsPublicResponse ret = new GetFeedPostsPublicResponse(); + 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); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetFeedPostsPublicResponse ret = new GetFeedPostsPublicResponse(); + 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 GetFeedPostsPublicResponse: 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 GetFeedPostsPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetFeedPostsPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("PublicFeedPostsResponse", PublicFeedPostsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetFeedPostsPublicResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, PublicFeedPostsResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof PublicFeedPostsResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, PublicFeedPostsResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, PublicFeedPostsResponse + * + * @return The actual instance (APIError, PublicFeedPostsResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `PublicFeedPostsResponse`. If the actual instance is not `PublicFeedPostsResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PublicFeedPostsResponse` + * @throws ClassCastException if the instance is not `PublicFeedPostsResponse` + */ + public PublicFeedPostsResponse getPublicFeedPostsResponse() throws ClassCastException { + return (PublicFeedPostsResponse)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 GetFeedPostsPublicResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with PublicFeedPostsResponse + try { + PublicFeedPostsResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PublicFeedPostsResponse 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 GetFeedPostsPublicResponse 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())); + } + + /** + * Create an instance of GetFeedPostsPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetFeedPostsPublicResponse + * @throws IOException if the JSON string is invalid with respect to GetFeedPostsPublicResponse + */ + public static GetFeedPostsPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetFeedPostsPublicResponse.class); + } + + /** + * Convert an instance of GetFeedPostsPublicResponse 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/GetFeedPostsResponse1.java b/client/src/main/java/com/fastcomments/model/GetFeedPostsResponse1.java new file mode 100644 index 00000000..d0fa8d05 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetFeedPostsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.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 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 GetFeedPostsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetFeedPostsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetFeedPostsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetFeedPostsResponse1' 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)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetFeedPostsResponse1 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()); + 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, GetFeedPostsResponse"); + } + + @Override + public GetFeedPostsResponse1 read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetFeedPostsResponse + try { + // validate the JSON object to see if any exception is thrown + GetFeedPostsResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetFeedPostsResponse; + GetFeedPostsResponse1 ret = new GetFeedPostsResponse1(); + 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); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetFeedPostsResponse1 ret = new GetFeedPostsResponse1(); + 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 GetFeedPostsResponse1: 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 GetFeedPostsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetFeedPostsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetFeedPostsResponse", GetFeedPostsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetFeedPostsResponse1.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetFeedPostsResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetFeedPostsResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetFeedPostsResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetFeedPostsResponse + * + * @return The actual instance (APIError, GetFeedPostsResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetFeedPostsResponse`. If the actual instance is not `GetFeedPostsResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetFeedPostsResponse` + * @throws ClassCastException if the instance is not `GetFeedPostsResponse` + */ + public GetFeedPostsResponse getGetFeedPostsResponse() throws ClassCastException { + return (GetFeedPostsResponse)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 GetFeedPostsResponse1 + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetFeedPostsResponse + try { + GetFeedPostsResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetFeedPostsResponse 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 GetFeedPostsResponse1 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())); + } + + /** + * Create an instance of GetFeedPostsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetFeedPostsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetFeedPostsResponse1 + */ + public static GetFeedPostsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetFeedPostsResponse1.class); + } + + /** + * Convert an instance of GetFeedPostsResponse1 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/GetFeedPostsStatsResponse.java b/client/src/main/java/com/fastcomments/model/GetFeedPostsStatsResponse.java new file mode 100644 index 00000000..5aff0bc7 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetFeedPostsStatsResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetFeedPostsStatsResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetFeedPostsStatsResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetFeedPostsStatsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetFeedPostsStatsResponse' 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, GetFeedPostsStatsResponse 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 GetFeedPostsStatsResponse 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; + GetFeedPostsStatsResponse ret = new GetFeedPostsStatsResponse(); + 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; + GetFeedPostsStatsResponse ret = new GetFeedPostsStatsResponse(); + 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 GetFeedPostsStatsResponse: 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 GetFeedPostsStatsResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetFeedPostsStatsResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("FeedPostsStatsResponse", FeedPostsStatsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetFeedPostsStatsResponse.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 GetFeedPostsStatsResponse + */ + 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 GetFeedPostsStatsResponse 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 GetFeedPostsStatsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetFeedPostsStatsResponse + * @throws IOException if the JSON string is invalid with respect to GetFeedPostsStatsResponse + */ + public static GetFeedPostsStatsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetFeedPostsStatsResponse.class); + } + + /** + * Convert an instance of GetFeedPostsStatsResponse 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/GetGifLargeResponse.java b/client/src/main/java/com/fastcomments/model/GetGifLargeResponse.java new file mode 100644 index 00000000..8a35ba77 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetGifLargeResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GifGetLargeResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetGifLargeResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetGifLargeResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetGifLargeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetGifLargeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGifGetLargeResponse = gson.getDelegateAdapter(this, TypeToken.get(GifGetLargeResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetGifLargeResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GifGetLargeResponse` + if (value.getActualInstance() instanceof GifGetLargeResponse) { + JsonElement element = adapterGifGetLargeResponse.toJsonTree((GifGetLargeResponse)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, GifGetLargeResponse"); + } + + @Override + public GetGifLargeResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GifGetLargeResponse + try { + // validate the JSON object to see if any exception is thrown + GifGetLargeResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGifGetLargeResponse; + GetGifLargeResponse ret = new GetGifLargeResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifGetLargeResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GifGetLargeResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetGifLargeResponse ret = new GetGifLargeResponse(); + 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 GetGifLargeResponse: 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 GetGifLargeResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetGifLargeResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GifGetLargeResponse", GifGetLargeResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetGifLargeResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GifGetLargeResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GifGetLargeResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GifGetLargeResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GifGetLargeResponse + * + * @return The actual instance (APIError, GifGetLargeResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GifGetLargeResponse`. If the actual instance is not `GifGetLargeResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GifGetLargeResponse` + * @throws ClassCastException if the instance is not `GifGetLargeResponse` + */ + public GifGetLargeResponse getGifGetLargeResponse() throws ClassCastException { + return (GifGetLargeResponse)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 GetGifLargeResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GifGetLargeResponse + try { + GifGetLargeResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifGetLargeResponse 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 GetGifLargeResponse with anyOf schemas: APIError, GifGetLargeResponse. 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 GetGifLargeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetGifLargeResponse + * @throws IOException if the JSON string is invalid with respect to GetGifLargeResponse + */ + public static GetGifLargeResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetGifLargeResponse.class); + } + + /** + * Convert an instance of GetGifLargeResponse 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/GetGifsSearchResponse.java b/client/src/main/java/com/fastcomments/model/GetGifsSearchResponse.java index 4588a285..f03b2cd0 100644 --- a/client/src/main/java/com/fastcomments/model/GetGifsSearchResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetGifsSearchResponse.java @@ -14,7 +14,9 @@ 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.GifSearchInternalError; import com.fastcomments.model.GifSearchResponse; import com.fastcomments.model.GifSearchResponseImagesInnerInner; @@ -77,6 +79,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); final TypeAdapter adapterGifSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(GifSearchResponse.class)); final TypeAdapter adapterGifSearchInternalError = gson.getDelegateAdapter(this, TypeToken.get(GifSearchInternalError.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); return (TypeAdapter) new TypeAdapter() { @Override @@ -98,7 +101,13 @@ public void write(JsonWriter out, GetGifsSearchResponse value) throws IOExceptio elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: GifSearchInternalError, GifSearchResponse"); + // 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, GifSearchInternalError, GifSearchResponse"); } @Override @@ -135,6 +144,19 @@ public GetGifsSearchResponse read(JsonReader in) throws IOException { 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); } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + 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); + } 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())); } @@ -157,6 +179,7 @@ public GetGifsSearchResponse(Object o) { static { schemas.put("GifSearchResponse", GifSearchResponse.class); schemas.put("GifSearchInternalError", GifSearchInternalError.class); + schemas.put("APIError", APIError.class); } @Override @@ -167,7 +190,7 @@ public Map> getSchemas() { /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * GifSearchInternalError, GifSearchResponse + * APIError, GifSearchInternalError, GifSearchResponse * * It could be an instance of the 'anyOf' schemas. */ @@ -183,14 +206,19 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be GifSearchInternalError, GifSearchResponse"); + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GifSearchInternalError, GifSearchResponse"); } /** * Get the actual instance, which can be the following: - * GifSearchInternalError, GifSearchResponse + * APIError, GifSearchInternalError, GifSearchResponse * - * @return The actual instance (GifSearchInternalError, GifSearchResponse) + * @return The actual instance (APIError, GifSearchInternalError, GifSearchResponse) */ @SuppressWarnings("unchecked") @Override @@ -220,6 +248,17 @@ public GifSearchInternalError getGifSearchInternalError() throws ClassCastExcept return (GifSearchInternalError)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 * @@ -245,7 +284,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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 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())); + // 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 GetGifsSearchResponse with anyOf schemas: APIError, GifSearchInternalError, GifSearchResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/client/src/main/java/com/fastcomments/model/GetGlobalEventLogResponse.java b/client/src/main/java/com/fastcomments/model/GetGlobalEventLogResponse.java new file mode 100644 index 00000000..29e1edc2 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetGlobalEventLogResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetGlobalEventLogResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetGlobalEventLogResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetGlobalEventLogResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetGlobalEventLogResponse' 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, GetGlobalEventLogResponse 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 GetGlobalEventLogResponse 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; + GetGlobalEventLogResponse ret = new GetGlobalEventLogResponse(); + 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; + GetGlobalEventLogResponse ret = new GetGlobalEventLogResponse(); + 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 GetGlobalEventLogResponse: 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 GetGlobalEventLogResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetGlobalEventLogResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetEventLogResponse", GetEventLogResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetGlobalEventLogResponse.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 GetGlobalEventLogResponse + */ + 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 GetGlobalEventLogResponse 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 GetGlobalEventLogResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetGlobalEventLogResponse + * @throws IOException if the JSON string is invalid with respect to GetGlobalEventLogResponse + */ + public static GetGlobalEventLogResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetGlobalEventLogResponse.class); + } + + /** + * Convert an instance of GetGlobalEventLogResponse 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/GetHashTagsResponse1.java b/client/src/main/java/com/fastcomments/model/GetHashTagsResponse1.java new file mode 100644 index 00000000..d9ab10a7 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetHashTagsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetHashTagsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetHashTagsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetHashTagsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetHashTagsResponse1' 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, GetHashTagsResponse1 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 GetHashTagsResponse1 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; + GetHashTagsResponse1 ret = new GetHashTagsResponse1(); + 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; + GetHashTagsResponse1 ret = new GetHashTagsResponse1(); + 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 GetHashTagsResponse1: 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 GetHashTagsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetHashTagsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetHashTagsResponse", GetHashTagsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetHashTagsResponse1.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 GetHashTagsResponse1 + */ + 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 GetHashTagsResponse1 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 GetHashTagsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetHashTagsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetHashTagsResponse1 + */ + public static GetHashTagsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetHashTagsResponse1.class); + } + + /** + * Convert an instance of GetHashTagsResponse1 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/GetLogsResponse.java b/client/src/main/java/com/fastcomments/model/GetLogsResponse.java new file mode 100644 index 00000000..912f3301 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetLogsResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPICommentLog; +import com.fastcomments.model.ModerationAPIGetLogsResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetLogsResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetLogsResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetLogsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetLogsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationAPIGetLogsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIGetLogsResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetLogsResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationAPIGetLogsResponse` + if (value.getActualInstance() instanceof ModerationAPIGetLogsResponse) { + JsonElement element = adapterModerationAPIGetLogsResponse.toJsonTree((ModerationAPIGetLogsResponse)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, ModerationAPIGetLogsResponse"); + } + + @Override + public GetLogsResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationAPIGetLogsResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationAPIGetLogsResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationAPIGetLogsResponse; + GetLogsResponse ret = new GetLogsResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetLogsResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationAPIGetLogsResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetLogsResponse ret = new GetLogsResponse(); + 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 GetLogsResponse: 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 GetLogsResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetLogsResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationAPIGetLogsResponse", ModerationAPIGetLogsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetLogsResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationAPIGetLogsResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationAPIGetLogsResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPIGetLogsResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationAPIGetLogsResponse + * + * @return The actual instance (APIError, ModerationAPIGetLogsResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationAPIGetLogsResponse`. If the actual instance is not `ModerationAPIGetLogsResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationAPIGetLogsResponse` + * @throws ClassCastException if the instance is not `ModerationAPIGetLogsResponse` + */ + public ModerationAPIGetLogsResponse getModerationAPIGetLogsResponse() throws ClassCastException { + return (ModerationAPIGetLogsResponse)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 GetLogsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationAPIGetLogsResponse + try { + ModerationAPIGetLogsResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetLogsResponse 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 GetLogsResponse with anyOf schemas: APIError, ModerationAPIGetLogsResponse. 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 GetLogsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetLogsResponse + * @throws IOException if the JSON string is invalid with respect to GetLogsResponse + */ + public static GetLogsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetLogsResponse.class); + } + + /** + * Convert an instance of GetLogsResponse 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/GetManualBadgesForUserResponse.java b/client/src/main/java/com/fastcomments/model/GetManualBadgesForUserResponse.java new file mode 100644 index 00000000..7b2f9359 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetManualBadgesForUserResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetUserManualBadgesResponse; +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.23.0-SNAPSHOT") +public class GetManualBadgesForUserResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetManualBadgesForUserResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetManualBadgesForUserResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetManualBadgesForUserResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetUserManualBadgesResponse = gson.getDelegateAdapter(this, TypeToken.get(GetUserManualBadgesResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetManualBadgesForUserResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetUserManualBadgesResponse` + if (value.getActualInstance() instanceof GetUserManualBadgesResponse) { + JsonElement element = adapterGetUserManualBadgesResponse.toJsonTree((GetUserManualBadgesResponse)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, GetUserManualBadgesResponse"); + } + + @Override + public GetManualBadgesForUserResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetUserManualBadgesResponse + try { + // validate the JSON object to see if any exception is thrown + GetUserManualBadgesResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetUserManualBadgesResponse; + GetManualBadgesForUserResponse ret = new GetManualBadgesForUserResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserManualBadgesResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetUserManualBadgesResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetManualBadgesForUserResponse ret = new GetManualBadgesForUserResponse(); + 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 GetManualBadgesForUserResponse: 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 GetManualBadgesForUserResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetManualBadgesForUserResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetUserManualBadgesResponse", GetUserManualBadgesResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetManualBadgesForUserResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetUserManualBadgesResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetUserManualBadgesResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetUserManualBadgesResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetUserManualBadgesResponse + * + * @return The actual instance (APIError, GetUserManualBadgesResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetUserManualBadgesResponse`. If the actual instance is not `GetUserManualBadgesResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetUserManualBadgesResponse` + * @throws ClassCastException if the instance is not `GetUserManualBadgesResponse` + */ + public GetUserManualBadgesResponse getGetUserManualBadgesResponse() throws ClassCastException { + return (GetUserManualBadgesResponse)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 GetManualBadgesForUserResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetUserManualBadgesResponse + try { + GetUserManualBadgesResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserManualBadgesResponse 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 GetManualBadgesForUserResponse with anyOf schemas: APIError, GetUserManualBadgesResponse. 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 GetManualBadgesForUserResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetManualBadgesForUserResponse + * @throws IOException if the JSON string is invalid with respect to GetManualBadgesForUserResponse + */ + public static GetManualBadgesForUserResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetManualBadgesForUserResponse.class); + } + + /** + * Convert an instance of GetManualBadgesForUserResponse 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/GetManualBadgesResponse.java b/client/src/main/java/com/fastcomments/model/GetManualBadgesResponse.java new file mode 100644 index 00000000..0ebeea95 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetManualBadgesResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetTenantManualBadgesResponse; +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 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 GetManualBadgesResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetManualBadgesResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetManualBadgesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetManualBadgesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetTenantManualBadgesResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTenantManualBadgesResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetManualBadgesResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetTenantManualBadgesResponse` + if (value.getActualInstance() instanceof GetTenantManualBadgesResponse) { + JsonElement element = adapterGetTenantManualBadgesResponse.toJsonTree((GetTenantManualBadgesResponse)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, GetTenantManualBadgesResponse"); + } + + @Override + public GetManualBadgesResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetTenantManualBadgesResponse + try { + // validate the JSON object to see if any exception is thrown + GetTenantManualBadgesResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetTenantManualBadgesResponse; + GetManualBadgesResponse ret = new GetManualBadgesResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantManualBadgesResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetTenantManualBadgesResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetManualBadgesResponse ret = new GetManualBadgesResponse(); + 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 GetManualBadgesResponse: 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 GetManualBadgesResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetManualBadgesResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetTenantManualBadgesResponse", GetTenantManualBadgesResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetManualBadgesResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetTenantManualBadgesResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetTenantManualBadgesResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetTenantManualBadgesResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetTenantManualBadgesResponse + * + * @return The actual instance (APIError, GetTenantManualBadgesResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetTenantManualBadgesResponse`. If the actual instance is not `GetTenantManualBadgesResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetTenantManualBadgesResponse` + * @throws ClassCastException if the instance is not `GetTenantManualBadgesResponse` + */ + public GetTenantManualBadgesResponse getGetTenantManualBadgesResponse() throws ClassCastException { + return (GetTenantManualBadgesResponse)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 GetManualBadgesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetTenantManualBadgesResponse + try { + GetTenantManualBadgesResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantManualBadgesResponse 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 GetManualBadgesResponse with anyOf schemas: APIError, GetTenantManualBadgesResponse. 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 GetManualBadgesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetManualBadgesResponse + * @throws IOException if the JSON string is invalid with respect to GetManualBadgesResponse + */ + public static GetManualBadgesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetManualBadgesResponse.class); + } + + /** + * Convert an instance of GetManualBadgesResponse 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/GetModerationCommentResponse.java b/client/src/main/java/com/fastcomments/model/GetModerationCommentResponse.java new file mode 100644 index 00000000..9c85a880 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetModerationCommentResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPIComment; +import com.fastcomments.model.ModerationAPICommentResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetModerationCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetModerationCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetModerationCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetModerationCommentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationAPICommentResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPICommentResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetModerationCommentResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationAPICommentResponse` + if (value.getActualInstance() instanceof ModerationAPICommentResponse) { + JsonElement element = adapterModerationAPICommentResponse.toJsonTree((ModerationAPICommentResponse)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, ModerationAPICommentResponse"); + } + + @Override + public GetModerationCommentResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationAPICommentResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationAPICommentResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationAPICommentResponse; + GetModerationCommentResponse ret = new GetModerationCommentResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPICommentResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationAPICommentResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetModerationCommentResponse ret = new GetModerationCommentResponse(); + 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 GetModerationCommentResponse: 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 GetModerationCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetModerationCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationAPICommentResponse", ModerationAPICommentResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetModerationCommentResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationAPICommentResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationAPICommentResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPICommentResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationAPICommentResponse + * + * @return The actual instance (APIError, ModerationAPICommentResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationAPICommentResponse`. If the actual instance is not `ModerationAPICommentResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationAPICommentResponse` + * @throws ClassCastException if the instance is not `ModerationAPICommentResponse` + */ + public ModerationAPICommentResponse getModerationAPICommentResponse() throws ClassCastException { + return (ModerationAPICommentResponse)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 GetModerationCommentResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationAPICommentResponse + try { + ModerationAPICommentResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPICommentResponse 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 GetModerationCommentResponse with anyOf schemas: APIError, ModerationAPICommentResponse. 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 GetModerationCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetModerationCommentResponse + * @throws IOException if the JSON string is invalid with respect to GetModerationCommentResponse + */ + public static GetModerationCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetModerationCommentResponse.class); + } + + /** + * Convert an instance of GetModerationCommentResponse 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/GetModerationCommentTextResponse.java b/client/src/main/java/com/fastcomments/model/GetModerationCommentTextResponse.java new file mode 100644 index 00000000..6d176733 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetModerationCommentTextResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetCommentTextResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetModerationCommentTextResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetModerationCommentTextResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetModerationCommentTextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetModerationCommentTextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetCommentTextResponse = gson.getDelegateAdapter(this, TypeToken.get(GetCommentTextResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetModerationCommentTextResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetCommentTextResponse` + if (value.getActualInstance() instanceof GetCommentTextResponse) { + JsonElement element = adapterGetCommentTextResponse.toJsonTree((GetCommentTextResponse)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, GetCommentTextResponse"); + } + + @Override + public GetModerationCommentTextResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetCommentTextResponse + try { + // validate the JSON object to see if any exception is thrown + GetCommentTextResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetCommentTextResponse; + GetModerationCommentTextResponse ret = new GetModerationCommentTextResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentTextResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetCommentTextResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetModerationCommentTextResponse ret = new GetModerationCommentTextResponse(); + 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 GetModerationCommentTextResponse: 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 GetModerationCommentTextResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetModerationCommentTextResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetCommentTextResponse", GetCommentTextResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetModerationCommentTextResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetCommentTextResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetCommentTextResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetCommentTextResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetCommentTextResponse + * + * @return The actual instance (APIError, GetCommentTextResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetCommentTextResponse`. If the actual instance is not `GetCommentTextResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetCommentTextResponse` + * @throws ClassCastException if the instance is not `GetCommentTextResponse` + */ + public GetCommentTextResponse getGetCommentTextResponse() throws ClassCastException { + return (GetCommentTextResponse)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 GetModerationCommentTextResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetCommentTextResponse + try { + GetCommentTextResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentTextResponse 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 GetModerationCommentTextResponse with anyOf schemas: APIError, GetCommentTextResponse. 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 GetModerationCommentTextResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetModerationCommentTextResponse + * @throws IOException if the JSON string is invalid with respect to GetModerationCommentTextResponse + */ + public static GetModerationCommentTextResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetModerationCommentTextResponse.class); + } + + /** + * Convert an instance of GetModerationCommentTextResponse 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/GetModeratorResponse1.java b/client/src/main/java/com/fastcomments/model/GetModeratorResponse1.java new file mode 100644 index 00000000..990e1e63 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetModeratorResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.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 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 GetModeratorResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetModeratorResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetModeratorResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetModeratorResponse1' 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)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetModeratorResponse1 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()); + 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, GetModeratorResponse"); + } + + @Override + public GetModeratorResponse1 read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetModeratorResponse + try { + // validate the JSON object to see if any exception is thrown + GetModeratorResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetModeratorResponse; + GetModeratorResponse1 ret = new GetModeratorResponse1(); + 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); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetModeratorResponse1 ret = new GetModeratorResponse1(); + 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 GetModeratorResponse1: 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 GetModeratorResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetModeratorResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetModeratorResponse", GetModeratorResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetModeratorResponse1.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetModeratorResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetModeratorResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetModeratorResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetModeratorResponse + * + * @return The actual instance (APIError, GetModeratorResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetModeratorResponse`. If the actual instance is not `GetModeratorResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetModeratorResponse` + * @throws ClassCastException if the instance is not `GetModeratorResponse` + */ + public GetModeratorResponse getGetModeratorResponse() throws ClassCastException { + return (GetModeratorResponse)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 GetModeratorResponse1 + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetModeratorResponse + try { + GetModeratorResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetModeratorResponse 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 GetModeratorResponse1 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())); + } + + /** + * Create an instance of GetModeratorResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetModeratorResponse1 + * @throws IOException if the JSON string is invalid with respect to GetModeratorResponse1 + */ + public static GetModeratorResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetModeratorResponse1.class); + } + + /** + * Convert an instance of GetModeratorResponse1 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/GetModeratorsResponse1.java b/client/src/main/java/com/fastcomments/model/GetModeratorsResponse1.java new file mode 100644 index 00000000..7935bd6b --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetModeratorsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetModeratorsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetModeratorsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetModeratorsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetModeratorsResponse1' 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, GetModeratorsResponse1 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 GetModeratorsResponse1 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; + GetModeratorsResponse1 ret = new GetModeratorsResponse1(); + 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; + GetModeratorsResponse1 ret = new GetModeratorsResponse1(); + 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 GetModeratorsResponse1: 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 GetModeratorsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetModeratorsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetModeratorsResponse", GetModeratorsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetModeratorsResponse1.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 GetModeratorsResponse1 + */ + 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 GetModeratorsResponse1 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 GetModeratorsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetModeratorsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetModeratorsResponse1 + */ + public static GetModeratorsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetModeratorsResponse1.class); + } + + /** + * Convert an instance of GetModeratorsResponse1 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/GetNotificationCountResponse1.java b/client/src/main/java/com/fastcomments/model/GetNotificationCountResponse1.java new file mode 100644 index 00000000..d3a49a28 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetNotificationCountResponse1.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetNotificationCountResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetNotificationCountResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetNotificationCountResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetNotificationCountResponse1' 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, GetNotificationCountResponse1 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 GetNotificationCountResponse1 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; + GetNotificationCountResponse1 ret = new GetNotificationCountResponse1(); + 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; + GetNotificationCountResponse1 ret = new GetNotificationCountResponse1(); + 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 GetNotificationCountResponse1: 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 GetNotificationCountResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetNotificationCountResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetNotificationCountResponse", GetNotificationCountResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetNotificationCountResponse1.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 GetNotificationCountResponse1 + */ + 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 GetNotificationCountResponse1 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 GetNotificationCountResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetNotificationCountResponse1 + * @throws IOException if the JSON string is invalid with respect to GetNotificationCountResponse1 + */ + public static GetNotificationCountResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetNotificationCountResponse1.class); + } + + /** + * Convert an instance of GetNotificationCountResponse1 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/GetNotificationsResponse1.java b/client/src/main/java/com/fastcomments/model/GetNotificationsResponse1.java new file mode 100644 index 00000000..3fe0c895 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetNotificationsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetNotificationsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetNotificationsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetNotificationsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetNotificationsResponse1' 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, GetNotificationsResponse1 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 GetNotificationsResponse1 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; + GetNotificationsResponse1 ret = new GetNotificationsResponse1(); + 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; + GetNotificationsResponse1 ret = new GetNotificationsResponse1(); + 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 GetNotificationsResponse1: 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 GetNotificationsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetNotificationsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetNotificationsResponse", GetNotificationsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetNotificationsResponse1.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 GetNotificationsResponse1 + */ + 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 GetNotificationsResponse1 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 GetNotificationsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetNotificationsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetNotificationsResponse1 + */ + public static GetNotificationsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetNotificationsResponse1.class); + } + + /** + * Convert an instance of GetNotificationsResponse1 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/GetOfflineUsersResponse.java b/client/src/main/java/com/fastcomments/model/GetOfflineUsersResponse.java new file mode 100644 index 00000000..dd84ba54 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetOfflineUsersResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.PageUserEntry; +import com.fastcomments.model.PageUsersOfflineResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetOfflineUsersResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetOfflineUsersResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetOfflineUsersResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOfflineUsersResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterPageUsersOfflineResponse = gson.getDelegateAdapter(this, TypeToken.get(PageUsersOfflineResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOfflineUsersResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `PageUsersOfflineResponse` + if (value.getActualInstance() instanceof PageUsersOfflineResponse) { + JsonElement element = adapterPageUsersOfflineResponse.toJsonTree((PageUsersOfflineResponse)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, PageUsersOfflineResponse"); + } + + @Override + public GetOfflineUsersResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize PageUsersOfflineResponse + try { + // validate the JSON object to see if any exception is thrown + PageUsersOfflineResponse.validateJsonElement(jsonElement); + actualAdapter = adapterPageUsersOfflineResponse; + GetOfflineUsersResponse ret = new GetOfflineUsersResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersOfflineResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'PageUsersOfflineResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetOfflineUsersResponse ret = new GetOfflineUsersResponse(); + 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 GetOfflineUsersResponse: 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 GetOfflineUsersResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetOfflineUsersResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("PageUsersOfflineResponse", PageUsersOfflineResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetOfflineUsersResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, PageUsersOfflineResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof PageUsersOfflineResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, PageUsersOfflineResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, PageUsersOfflineResponse + * + * @return The actual instance (APIError, PageUsersOfflineResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `PageUsersOfflineResponse`. If the actual instance is not `PageUsersOfflineResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PageUsersOfflineResponse` + * @throws ClassCastException if the instance is not `PageUsersOfflineResponse` + */ + public PageUsersOfflineResponse getPageUsersOfflineResponse() throws ClassCastException { + return (PageUsersOfflineResponse)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 GetOfflineUsersResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with PageUsersOfflineResponse + try { + PageUsersOfflineResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersOfflineResponse 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 GetOfflineUsersResponse with anyOf schemas: APIError, PageUsersOfflineResponse. 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 GetOfflineUsersResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetOfflineUsersResponse + * @throws IOException if the JSON string is invalid with respect to GetOfflineUsersResponse + */ + public static GetOfflineUsersResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetOfflineUsersResponse.class); + } + + /** + * Convert an instance of GetOfflineUsersResponse 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/GetOnlineUsersResponse.java b/client/src/main/java/com/fastcomments/model/GetOnlineUsersResponse.java new file mode 100644 index 00000000..0272dad3 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetOnlineUsersResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.PageUserEntry; +import com.fastcomments.model.PageUsersOnlineResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetOnlineUsersResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetOnlineUsersResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetOnlineUsersResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOnlineUsersResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterPageUsersOnlineResponse = gson.getDelegateAdapter(this, TypeToken.get(PageUsersOnlineResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOnlineUsersResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `PageUsersOnlineResponse` + if (value.getActualInstance() instanceof PageUsersOnlineResponse) { + JsonElement element = adapterPageUsersOnlineResponse.toJsonTree((PageUsersOnlineResponse)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, PageUsersOnlineResponse"); + } + + @Override + public GetOnlineUsersResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize PageUsersOnlineResponse + try { + // validate the JSON object to see if any exception is thrown + PageUsersOnlineResponse.validateJsonElement(jsonElement); + actualAdapter = adapterPageUsersOnlineResponse; + GetOnlineUsersResponse ret = new GetOnlineUsersResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersOnlineResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'PageUsersOnlineResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetOnlineUsersResponse ret = new GetOnlineUsersResponse(); + 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 GetOnlineUsersResponse: 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 GetOnlineUsersResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetOnlineUsersResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("PageUsersOnlineResponse", PageUsersOnlineResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetOnlineUsersResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, PageUsersOnlineResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof PageUsersOnlineResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, PageUsersOnlineResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, PageUsersOnlineResponse + * + * @return The actual instance (APIError, PageUsersOnlineResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `PageUsersOnlineResponse`. If the actual instance is not `PageUsersOnlineResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PageUsersOnlineResponse` + * @throws ClassCastException if the instance is not `PageUsersOnlineResponse` + */ + public PageUsersOnlineResponse getPageUsersOnlineResponse() throws ClassCastException { + return (PageUsersOnlineResponse)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 GetOnlineUsersResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with PageUsersOnlineResponse + try { + PageUsersOnlineResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersOnlineResponse 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 GetOnlineUsersResponse with anyOf schemas: APIError, PageUsersOnlineResponse. 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 GetOnlineUsersResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetOnlineUsersResponse + * @throws IOException if the JSON string is invalid with respect to GetOnlineUsersResponse + */ + public static GetOnlineUsersResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetOnlineUsersResponse.class); + } + + /** + * Convert an instance of GetOnlineUsersResponse 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/GetPagesPublicResponse.java b/client/src/main/java/com/fastcomments/model/GetPagesPublicResponse.java new file mode 100644 index 00000000..fe081329 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetPagesPublicResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetPublicPagesResponse; +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 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 GetPagesPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetPagesPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetPagesPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetPagesPublicResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetPublicPagesResponse = gson.getDelegateAdapter(this, TypeToken.get(GetPublicPagesResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetPagesPublicResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetPublicPagesResponse` + if (value.getActualInstance() instanceof GetPublicPagesResponse) { + JsonElement element = adapterGetPublicPagesResponse.toJsonTree((GetPublicPagesResponse)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, GetPublicPagesResponse"); + } + + @Override + public GetPagesPublicResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetPublicPagesResponse + try { + // validate the JSON object to see if any exception is thrown + GetPublicPagesResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetPublicPagesResponse; + GetPagesPublicResponse ret = new GetPagesPublicResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetPublicPagesResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetPublicPagesResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetPagesPublicResponse ret = new GetPagesPublicResponse(); + 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 GetPagesPublicResponse: 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 GetPagesPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetPagesPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetPublicPagesResponse", GetPublicPagesResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetPagesPublicResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetPublicPagesResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetPublicPagesResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetPublicPagesResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetPublicPagesResponse + * + * @return The actual instance (APIError, GetPublicPagesResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetPublicPagesResponse`. If the actual instance is not `GetPublicPagesResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetPublicPagesResponse` + * @throws ClassCastException if the instance is not `GetPublicPagesResponse` + */ + public GetPublicPagesResponse getGetPublicPagesResponse() throws ClassCastException { + return (GetPublicPagesResponse)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 GetPagesPublicResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetPublicPagesResponse + try { + GetPublicPagesResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetPublicPagesResponse 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 GetPagesPublicResponse with anyOf schemas: APIError, GetPublicPagesResponse. 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 GetPagesPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetPagesPublicResponse + * @throws IOException if the JSON string is invalid with respect to GetPagesPublicResponse + */ + public static GetPagesPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetPagesPublicResponse.class); + } + + /** + * Convert an instance of GetPagesPublicResponse 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/GetPendingWebhookEventCountResponse1.java b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1.java new file mode 100644 index 00000000..2f0238ef --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetPendingWebhookEventCountResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetPendingWebhookEventCountResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetPendingWebhookEventCountResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetPendingWebhookEventCountResponse1' 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, GetPendingWebhookEventCountResponse1 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 GetPendingWebhookEventCountResponse1 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; + GetPendingWebhookEventCountResponse1 ret = new GetPendingWebhookEventCountResponse1(); + 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; + GetPendingWebhookEventCountResponse1 ret = new GetPendingWebhookEventCountResponse1(); + 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 GetPendingWebhookEventCountResponse1: 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 GetPendingWebhookEventCountResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetPendingWebhookEventCountResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetPendingWebhookEventCountResponse", GetPendingWebhookEventCountResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetPendingWebhookEventCountResponse1.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 GetPendingWebhookEventCountResponse1 + */ + 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 GetPendingWebhookEventCountResponse1 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 GetPendingWebhookEventCountResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetPendingWebhookEventCountResponse1 + * @throws IOException if the JSON string is invalid with respect to GetPendingWebhookEventCountResponse1 + */ + public static GetPendingWebhookEventCountResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetPendingWebhookEventCountResponse1.class); + } + + /** + * Convert an instance of GetPendingWebhookEventCountResponse1 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/GetPendingWebhookEventsResponse1.java b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse1.java new file mode 100644 index 00000000..d49b7b23 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetPendingWebhookEventsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetPendingWebhookEventsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetPendingWebhookEventsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetPendingWebhookEventsResponse1' 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, GetPendingWebhookEventsResponse1 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 GetPendingWebhookEventsResponse1 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; + GetPendingWebhookEventsResponse1 ret = new GetPendingWebhookEventsResponse1(); + 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; + GetPendingWebhookEventsResponse1 ret = new GetPendingWebhookEventsResponse1(); + 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 GetPendingWebhookEventsResponse1: 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 GetPendingWebhookEventsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetPendingWebhookEventsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetPendingWebhookEventsResponse", GetPendingWebhookEventsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetPendingWebhookEventsResponse1.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 GetPendingWebhookEventsResponse1 + */ + 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 GetPendingWebhookEventsResponse1 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 GetPendingWebhookEventsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetPendingWebhookEventsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetPendingWebhookEventsResponse1 + */ + public static GetPendingWebhookEventsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetPendingWebhookEventsResponse1.class); + } + + /** + * Convert an instance of GetPendingWebhookEventsResponse1 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/GetPreBanSummaryResponse.java b/client/src/main/java/com/fastcomments/model/GetPreBanSummaryResponse.java new file mode 100644 index 00000000..e9fa2b7f --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetPreBanSummaryResponse.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.PreBanSummary; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetPreBanSummaryResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetPreBanSummaryResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetPreBanSummaryResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetPreBanSummaryResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterPreBanSummary = gson.getDelegateAdapter(this, TypeToken.get(PreBanSummary.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetPreBanSummaryResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `PreBanSummary` + if (value.getActualInstance() instanceof PreBanSummary) { + JsonElement element = adapterPreBanSummary.toJsonTree((PreBanSummary)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, PreBanSummary"); + } + + @Override + public GetPreBanSummaryResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize PreBanSummary + try { + // validate the JSON object to see if any exception is thrown + PreBanSummary.validateJsonElement(jsonElement); + actualAdapter = adapterPreBanSummary; + GetPreBanSummaryResponse ret = new GetPreBanSummaryResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PreBanSummary failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'PreBanSummary'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetPreBanSummaryResponse ret = new GetPreBanSummaryResponse(); + 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 GetPreBanSummaryResponse: 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 GetPreBanSummaryResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetPreBanSummaryResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("PreBanSummary", PreBanSummary.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetPreBanSummaryResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, PreBanSummary + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof PreBanSummary) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, PreBanSummary"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, PreBanSummary + * + * @return The actual instance (APIError, PreBanSummary) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `PreBanSummary`. If the actual instance is not `PreBanSummary`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PreBanSummary` + * @throws ClassCastException if the instance is not `PreBanSummary` + */ + public PreBanSummary getPreBanSummary() throws ClassCastException { + return (PreBanSummary)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 GetPreBanSummaryResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with PreBanSummary + try { + PreBanSummary.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PreBanSummary 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 GetPreBanSummaryResponse with anyOf schemas: APIError, PreBanSummary. 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 GetPreBanSummaryResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetPreBanSummaryResponse + * @throws IOException if the JSON string is invalid with respect to GetPreBanSummaryResponse + */ + public static GetPreBanSummaryResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetPreBanSummaryResponse.class); + } + + /** + * Convert an instance of GetPreBanSummaryResponse 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/GetQuestionConfigResponse1.java b/client/src/main/java/com/fastcomments/model/GetQuestionConfigResponse1.java new file mode 100644 index 00000000..80915676 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetQuestionConfigResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetQuestionConfigResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetQuestionConfigResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetQuestionConfigResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetQuestionConfigResponse1' 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, GetQuestionConfigResponse1 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 GetQuestionConfigResponse1 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; + GetQuestionConfigResponse1 ret = new GetQuestionConfigResponse1(); + 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; + GetQuestionConfigResponse1 ret = new GetQuestionConfigResponse1(); + 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 GetQuestionConfigResponse1: 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 GetQuestionConfigResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetQuestionConfigResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetQuestionConfigResponse", GetQuestionConfigResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetQuestionConfigResponse1.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 GetQuestionConfigResponse1 + */ + 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 GetQuestionConfigResponse1 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 GetQuestionConfigResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetQuestionConfigResponse1 + * @throws IOException if the JSON string is invalid with respect to GetQuestionConfigResponse1 + */ + public static GetQuestionConfigResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetQuestionConfigResponse1.class); + } + + /** + * Convert an instance of GetQuestionConfigResponse1 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/GetQuestionConfigsResponse1.java b/client/src/main/java/com/fastcomments/model/GetQuestionConfigsResponse1.java new file mode 100644 index 00000000..9b3eea8d --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetQuestionConfigsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetQuestionConfigsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetQuestionConfigsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetQuestionConfigsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetQuestionConfigsResponse1' 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, GetQuestionConfigsResponse1 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 GetQuestionConfigsResponse1 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; + GetQuestionConfigsResponse1 ret = new GetQuestionConfigsResponse1(); + 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; + GetQuestionConfigsResponse1 ret = new GetQuestionConfigsResponse1(); + 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 GetQuestionConfigsResponse1: 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 GetQuestionConfigsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetQuestionConfigsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetQuestionConfigsResponse", GetQuestionConfigsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetQuestionConfigsResponse1.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 GetQuestionConfigsResponse1 + */ + 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 GetQuestionConfigsResponse1 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 GetQuestionConfigsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetQuestionConfigsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetQuestionConfigsResponse1 + */ + public static GetQuestionConfigsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetQuestionConfigsResponse1.class); + } + + /** + * Convert an instance of GetQuestionConfigsResponse1 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/GetQuestionResultResponse1.java b/client/src/main/java/com/fastcomments/model/GetQuestionResultResponse1.java new file mode 100644 index 00000000..7e4060bc --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetQuestionResultResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetQuestionResultResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetQuestionResultResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetQuestionResultResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetQuestionResultResponse1' 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, GetQuestionResultResponse1 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 GetQuestionResultResponse1 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; + GetQuestionResultResponse1 ret = new GetQuestionResultResponse1(); + 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; + GetQuestionResultResponse1 ret = new GetQuestionResultResponse1(); + 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 GetQuestionResultResponse1: 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 GetQuestionResultResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetQuestionResultResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetQuestionResultResponse", GetQuestionResultResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetQuestionResultResponse1.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 GetQuestionResultResponse1 + */ + 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 GetQuestionResultResponse1 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 GetQuestionResultResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetQuestionResultResponse1 + * @throws IOException if the JSON string is invalid with respect to GetQuestionResultResponse1 + */ + public static GetQuestionResultResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetQuestionResultResponse1.class); + } + + /** + * Convert an instance of GetQuestionResultResponse1 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/GetQuestionResultsResponse1.java b/client/src/main/java/com/fastcomments/model/GetQuestionResultsResponse1.java new file mode 100644 index 00000000..2b65079f --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetQuestionResultsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetQuestionResultsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetQuestionResultsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetQuestionResultsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetQuestionResultsResponse1' 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, GetQuestionResultsResponse1 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 GetQuestionResultsResponse1 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; + GetQuestionResultsResponse1 ret = new GetQuestionResultsResponse1(); + 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; + GetQuestionResultsResponse1 ret = new GetQuestionResultsResponse1(); + 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 GetQuestionResultsResponse1: 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 GetQuestionResultsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetQuestionResultsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetQuestionResultsResponse", GetQuestionResultsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetQuestionResultsResponse1.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 GetQuestionResultsResponse1 + */ + 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 GetQuestionResultsResponse1 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 GetQuestionResultsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetQuestionResultsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetQuestionResultsResponse1 + */ + public static GetQuestionResultsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetQuestionResultsResponse1.class); + } + + /** + * Convert an instance of GetQuestionResultsResponse1 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/GetSearchCommentsSummaryResponse.java b/client/src/main/java/com/fastcomments/model/GetSearchCommentsSummaryResponse.java new file mode 100644 index 00000000..d4a9b965 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetSearchCommentsSummaryResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationCommentSearchResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetSearchCommentsSummaryResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetSearchCommentsSummaryResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetSearchCommentsSummaryResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSearchCommentsSummaryResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationCommentSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationCommentSearchResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSearchCommentsSummaryResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationCommentSearchResponse` + if (value.getActualInstance() instanceof ModerationCommentSearchResponse) { + JsonElement element = adapterModerationCommentSearchResponse.toJsonTree((ModerationCommentSearchResponse)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, ModerationCommentSearchResponse"); + } + + @Override + public GetSearchCommentsSummaryResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationCommentSearchResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationCommentSearchResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationCommentSearchResponse; + GetSearchCommentsSummaryResponse ret = new GetSearchCommentsSummaryResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationCommentSearchResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationCommentSearchResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetSearchCommentsSummaryResponse ret = new GetSearchCommentsSummaryResponse(); + 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 GetSearchCommentsSummaryResponse: 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 GetSearchCommentsSummaryResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetSearchCommentsSummaryResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationCommentSearchResponse", ModerationCommentSearchResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetSearchCommentsSummaryResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationCommentSearchResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationCommentSearchResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationCommentSearchResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationCommentSearchResponse + * + * @return The actual instance (APIError, ModerationCommentSearchResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationCommentSearchResponse`. If the actual instance is not `ModerationCommentSearchResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationCommentSearchResponse` + * @throws ClassCastException if the instance is not `ModerationCommentSearchResponse` + */ + public ModerationCommentSearchResponse getModerationCommentSearchResponse() throws ClassCastException { + return (ModerationCommentSearchResponse)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 GetSearchCommentsSummaryResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationCommentSearchResponse + try { + ModerationCommentSearchResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationCommentSearchResponse 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 GetSearchCommentsSummaryResponse with anyOf schemas: APIError, ModerationCommentSearchResponse. 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 GetSearchCommentsSummaryResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetSearchCommentsSummaryResponse + * @throws IOException if the JSON string is invalid with respect to GetSearchCommentsSummaryResponse + */ + public static GetSearchCommentsSummaryResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetSearchCommentsSummaryResponse.class); + } + + /** + * Convert an instance of GetSearchCommentsSummaryResponse 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/GetSearchPagesResponse.java b/client/src/main/java/com/fastcomments/model/GetSearchPagesResponse.java new file mode 100644 index 00000000..6f88b22e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetSearchPagesResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationPageSearchProjected; +import com.fastcomments.model.ModerationPageSearchResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetSearchPagesResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetSearchPagesResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetSearchPagesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSearchPagesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationPageSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationPageSearchResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSearchPagesResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationPageSearchResponse` + if (value.getActualInstance() instanceof ModerationPageSearchResponse) { + JsonElement element = adapterModerationPageSearchResponse.toJsonTree((ModerationPageSearchResponse)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, ModerationPageSearchResponse"); + } + + @Override + public GetSearchPagesResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationPageSearchResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationPageSearchResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationPageSearchResponse; + GetSearchPagesResponse ret = new GetSearchPagesResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationPageSearchResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationPageSearchResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetSearchPagesResponse ret = new GetSearchPagesResponse(); + 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 GetSearchPagesResponse: 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 GetSearchPagesResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetSearchPagesResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationPageSearchResponse", ModerationPageSearchResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetSearchPagesResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationPageSearchResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationPageSearchResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationPageSearchResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationPageSearchResponse + * + * @return The actual instance (APIError, ModerationPageSearchResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationPageSearchResponse`. If the actual instance is not `ModerationPageSearchResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationPageSearchResponse` + * @throws ClassCastException if the instance is not `ModerationPageSearchResponse` + */ + public ModerationPageSearchResponse getModerationPageSearchResponse() throws ClassCastException { + return (ModerationPageSearchResponse)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 GetSearchPagesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationPageSearchResponse + try { + ModerationPageSearchResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationPageSearchResponse 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 GetSearchPagesResponse with anyOf schemas: APIError, ModerationPageSearchResponse. 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 GetSearchPagesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetSearchPagesResponse + * @throws IOException if the JSON string is invalid with respect to GetSearchPagesResponse + */ + public static GetSearchPagesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetSearchPagesResponse.class); + } + + /** + * Convert an instance of GetSearchPagesResponse 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/GetSearchSitesResponse.java b/client/src/main/java/com/fastcomments/model/GetSearchSitesResponse.java new file mode 100644 index 00000000..f9563281 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetSearchSitesResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationSiteSearchProjected; +import com.fastcomments.model.ModerationSiteSearchResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetSearchSitesResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetSearchSitesResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetSearchSitesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSearchSitesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationSiteSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationSiteSearchResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSearchSitesResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationSiteSearchResponse` + if (value.getActualInstance() instanceof ModerationSiteSearchResponse) { + JsonElement element = adapterModerationSiteSearchResponse.toJsonTree((ModerationSiteSearchResponse)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, ModerationSiteSearchResponse"); + } + + @Override + public GetSearchSitesResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationSiteSearchResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationSiteSearchResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationSiteSearchResponse; + GetSearchSitesResponse ret = new GetSearchSitesResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationSiteSearchResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationSiteSearchResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetSearchSitesResponse ret = new GetSearchSitesResponse(); + 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 GetSearchSitesResponse: 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 GetSearchSitesResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetSearchSitesResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationSiteSearchResponse", ModerationSiteSearchResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetSearchSitesResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationSiteSearchResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationSiteSearchResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationSiteSearchResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationSiteSearchResponse + * + * @return The actual instance (APIError, ModerationSiteSearchResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationSiteSearchResponse`. If the actual instance is not `ModerationSiteSearchResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationSiteSearchResponse` + * @throws ClassCastException if the instance is not `ModerationSiteSearchResponse` + */ + public ModerationSiteSearchResponse getModerationSiteSearchResponse() throws ClassCastException { + return (ModerationSiteSearchResponse)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 GetSearchSitesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationSiteSearchResponse + try { + ModerationSiteSearchResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationSiteSearchResponse 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 GetSearchSitesResponse with anyOf schemas: APIError, ModerationSiteSearchResponse. 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 GetSearchSitesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetSearchSitesResponse + * @throws IOException if the JSON string is invalid with respect to GetSearchSitesResponse + */ + public static GetSearchSitesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetSearchSitesResponse.class); + } + + /** + * Convert an instance of GetSearchSitesResponse 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/GetSearchSuggestResponse.java b/client/src/main/java/com/fastcomments/model/GetSearchSuggestResponse.java new file mode 100644 index 00000000..73b1f52e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetSearchSuggestResponse.java @@ -0,0 +1,273 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationPageSearchProjected; +import com.fastcomments.model.ModerationSuggestResponse; +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 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 GetSearchSuggestResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetSearchSuggestResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetSearchSuggestResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSearchSuggestResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationSuggestResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationSuggestResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSearchSuggestResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationSuggestResponse` + if (value.getActualInstance() instanceof ModerationSuggestResponse) { + JsonElement element = adapterModerationSuggestResponse.toJsonTree((ModerationSuggestResponse)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, ModerationSuggestResponse"); + } + + @Override + public GetSearchSuggestResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationSuggestResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationSuggestResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationSuggestResponse; + GetSearchSuggestResponse ret = new GetSearchSuggestResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationSuggestResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationSuggestResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetSearchSuggestResponse ret = new GetSearchSuggestResponse(); + 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 GetSearchSuggestResponse: 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 GetSearchSuggestResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetSearchSuggestResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationSuggestResponse", ModerationSuggestResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetSearchSuggestResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationSuggestResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationSuggestResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationSuggestResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationSuggestResponse + * + * @return The actual instance (APIError, ModerationSuggestResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationSuggestResponse`. If the actual instance is not `ModerationSuggestResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationSuggestResponse` + * @throws ClassCastException if the instance is not `ModerationSuggestResponse` + */ + public ModerationSuggestResponse getModerationSuggestResponse() throws ClassCastException { + return (ModerationSuggestResponse)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 GetSearchSuggestResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationSuggestResponse + try { + ModerationSuggestResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationSuggestResponse 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 GetSearchSuggestResponse with anyOf schemas: APIError, ModerationSuggestResponse. 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 GetSearchSuggestResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetSearchSuggestResponse + * @throws IOException if the JSON string is invalid with respect to GetSearchSuggestResponse + */ + public static GetSearchSuggestResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetSearchSuggestResponse.class); + } + + /** + * Convert an instance of GetSearchSuggestResponse 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/GetSearchUsersResponse.java b/client/src/main/java/com/fastcomments/model/GetSearchUsersResponse.java new file mode 100644 index 00000000..118972f8 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetSearchUsersResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationUserSearchProjected; +import com.fastcomments.model.ModerationUserSearchResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetSearchUsersResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetSearchUsersResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetSearchUsersResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSearchUsersResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationUserSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationUserSearchResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSearchUsersResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationUserSearchResponse` + if (value.getActualInstance() instanceof ModerationUserSearchResponse) { + JsonElement element = adapterModerationUserSearchResponse.toJsonTree((ModerationUserSearchResponse)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, ModerationUserSearchResponse"); + } + + @Override + public GetSearchUsersResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationUserSearchResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationUserSearchResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationUserSearchResponse; + GetSearchUsersResponse ret = new GetSearchUsersResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationUserSearchResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationUserSearchResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetSearchUsersResponse ret = new GetSearchUsersResponse(); + 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 GetSearchUsersResponse: 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 GetSearchUsersResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetSearchUsersResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationUserSearchResponse", ModerationUserSearchResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetSearchUsersResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationUserSearchResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationUserSearchResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationUserSearchResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationUserSearchResponse + * + * @return The actual instance (APIError, ModerationUserSearchResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationUserSearchResponse`. If the actual instance is not `ModerationUserSearchResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationUserSearchResponse` + * @throws ClassCastException if the instance is not `ModerationUserSearchResponse` + */ + public ModerationUserSearchResponse getModerationUserSearchResponse() throws ClassCastException { + return (ModerationUserSearchResponse)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 GetSearchUsersResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationUserSearchResponse + try { + ModerationUserSearchResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationUserSearchResponse 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 GetSearchUsersResponse with anyOf schemas: APIError, ModerationUserSearchResponse. 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 GetSearchUsersResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetSearchUsersResponse + * @throws IOException if the JSON string is invalid with respect to GetSearchUsersResponse + */ + public static GetSearchUsersResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetSearchUsersResponse.class); + } + + /** + * Convert an instance of GetSearchUsersResponse 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/GetTenantDailyUsagesResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse1.java new file mode 100644 index 00000000..15b25216 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetTenantDailyUsagesResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetTenantDailyUsagesResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTenantDailyUsagesResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTenantDailyUsagesResponse1' 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, GetTenantDailyUsagesResponse1 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 GetTenantDailyUsagesResponse1 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; + GetTenantDailyUsagesResponse1 ret = new GetTenantDailyUsagesResponse1(); + 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; + GetTenantDailyUsagesResponse1 ret = new GetTenantDailyUsagesResponse1(); + 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 GetTenantDailyUsagesResponse1: 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 GetTenantDailyUsagesResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetTenantDailyUsagesResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetTenantDailyUsagesResponse", GetTenantDailyUsagesResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetTenantDailyUsagesResponse1.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 GetTenantDailyUsagesResponse1 + */ + 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 GetTenantDailyUsagesResponse1 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 GetTenantDailyUsagesResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTenantDailyUsagesResponse1 + * @throws IOException if the JSON string is invalid with respect to GetTenantDailyUsagesResponse1 + */ + public static GetTenantDailyUsagesResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTenantDailyUsagesResponse1.class); + } + + /** + * Convert an instance of GetTenantDailyUsagesResponse1 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/GetTenantPackageResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantPackageResponse1.java new file mode 100644 index 00000000..963f511e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTenantPackageResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetTenantPackageResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetTenantPackageResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTenantPackageResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTenantPackageResponse1' 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, GetTenantPackageResponse1 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 GetTenantPackageResponse1 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; + GetTenantPackageResponse1 ret = new GetTenantPackageResponse1(); + 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; + GetTenantPackageResponse1 ret = new GetTenantPackageResponse1(); + 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 GetTenantPackageResponse1: 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 GetTenantPackageResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetTenantPackageResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetTenantPackageResponse", GetTenantPackageResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetTenantPackageResponse1.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 GetTenantPackageResponse1 + */ + 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 GetTenantPackageResponse1 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 GetTenantPackageResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTenantPackageResponse1 + * @throws IOException if the JSON string is invalid with respect to GetTenantPackageResponse1 + */ + public static GetTenantPackageResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTenantPackageResponse1.class); + } + + /** + * Convert an instance of GetTenantPackageResponse1 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/GetTenantPackagesResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantPackagesResponse1.java new file mode 100644 index 00000000..dfcaa8dc --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTenantPackagesResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetTenantPackagesResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetTenantPackagesResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTenantPackagesResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTenantPackagesResponse1' 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, GetTenantPackagesResponse1 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 GetTenantPackagesResponse1 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; + GetTenantPackagesResponse1 ret = new GetTenantPackagesResponse1(); + 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; + GetTenantPackagesResponse1 ret = new GetTenantPackagesResponse1(); + 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 GetTenantPackagesResponse1: 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 GetTenantPackagesResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetTenantPackagesResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetTenantPackagesResponse", GetTenantPackagesResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetTenantPackagesResponse1.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 GetTenantPackagesResponse1 + */ + 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 GetTenantPackagesResponse1 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 GetTenantPackagesResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTenantPackagesResponse1 + * @throws IOException if the JSON string is invalid with respect to GetTenantPackagesResponse1 + */ + public static GetTenantPackagesResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTenantPackagesResponse1.class); + } + + /** + * Convert an instance of GetTenantPackagesResponse1 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/GetTenantResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantResponse1.java new file mode 100644 index 00000000..8c22595c --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTenantResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetTenantResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetTenantResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTenantResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTenantResponse1' 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, GetTenantResponse1 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 GetTenantResponse1 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; + GetTenantResponse1 ret = new GetTenantResponse1(); + 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; + GetTenantResponse1 ret = new GetTenantResponse1(); + 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 GetTenantResponse1: 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 GetTenantResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetTenantResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetTenantResponse", GetTenantResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetTenantResponse1.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 GetTenantResponse1 + */ + 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 GetTenantResponse1 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 GetTenantResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTenantResponse1 + * @throws IOException if the JSON string is invalid with respect to GetTenantResponse1 + */ + public static GetTenantResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTenantResponse1.class); + } + + /** + * Convert an instance of GetTenantResponse1 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/GetTenantUserResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantUserResponse1.java new file mode 100644 index 00000000..9cdf8c29 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTenantUserResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetTenantUserResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetTenantUserResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTenantUserResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTenantUserResponse1' 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, GetTenantUserResponse1 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 GetTenantUserResponse1 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; + GetTenantUserResponse1 ret = new GetTenantUserResponse1(); + 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; + GetTenantUserResponse1 ret = new GetTenantUserResponse1(); + 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 GetTenantUserResponse1: 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 GetTenantUserResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetTenantUserResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetTenantUserResponse", GetTenantUserResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetTenantUserResponse1.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 GetTenantUserResponse1 + */ + 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 GetTenantUserResponse1 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 GetTenantUserResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTenantUserResponse1 + * @throws IOException if the JSON string is invalid with respect to GetTenantUserResponse1 + */ + public static GetTenantUserResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTenantUserResponse1.class); + } + + /** + * Convert an instance of GetTenantUserResponse1 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/GetTenantUsersResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantUsersResponse1.java new file mode 100644 index 00000000..f515d581 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTenantUsersResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.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 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 GetTenantUsersResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetTenantUsersResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTenantUsersResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTenantUsersResponse1' 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)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetTenantUsersResponse1 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()); + 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, GetTenantUsersResponse"); + } + + @Override + public GetTenantUsersResponse1 read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetTenantUsersResponse + try { + // validate the JSON object to see if any exception is thrown + GetTenantUsersResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetTenantUsersResponse; + GetTenantUsersResponse1 ret = new GetTenantUsersResponse1(); + 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); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetTenantUsersResponse1 ret = new GetTenantUsersResponse1(); + 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 GetTenantUsersResponse1: 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 GetTenantUsersResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetTenantUsersResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetTenantUsersResponse", GetTenantUsersResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetTenantUsersResponse1.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetTenantUsersResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetTenantUsersResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetTenantUsersResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetTenantUsersResponse + * + * @return The actual instance (APIError, GetTenantUsersResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetTenantUsersResponse`. If the actual instance is not `GetTenantUsersResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetTenantUsersResponse` + * @throws ClassCastException if the instance is not `GetTenantUsersResponse` + */ + public GetTenantUsersResponse getGetTenantUsersResponse() throws ClassCastException { + return (GetTenantUsersResponse)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 GetTenantUsersResponse1 + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetTenantUsersResponse + try { + GetTenantUsersResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantUsersResponse 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 GetTenantUsersResponse1 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())); + } + + /** + * Create an instance of GetTenantUsersResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTenantUsersResponse1 + * @throws IOException if the JSON string is invalid with respect to GetTenantUsersResponse1 + */ + public static GetTenantUsersResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTenantUsersResponse1.class); + } + + /** + * Convert an instance of GetTenantUsersResponse1 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/GetTenantsResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantsResponse1.java new file mode 100644 index 00000000..c20c5208 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTenantsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetTenantsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetTenantsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTenantsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTenantsResponse1' 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, GetTenantsResponse1 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 GetTenantsResponse1 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; + GetTenantsResponse1 ret = new GetTenantsResponse1(); + 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; + GetTenantsResponse1 ret = new GetTenantsResponse1(); + 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 GetTenantsResponse1: 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 GetTenantsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetTenantsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetTenantsResponse", GetTenantsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetTenantsResponse1.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 GetTenantsResponse1 + */ + 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 GetTenantsResponse1 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 GetTenantsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTenantsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetTenantsResponse1 + */ + public static GetTenantsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTenantsResponse1.class); + } + + /** + * Convert an instance of GetTenantsResponse1 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/GetTicketResponse1.java b/client/src/main/java/com/fastcomments/model/GetTicketResponse1.java new file mode 100644 index 00000000..a5c6a60f --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTicketResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetTicketResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetTicketResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTicketResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTicketResponse1' 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, GetTicketResponse1 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 GetTicketResponse1 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; + GetTicketResponse1 ret = new GetTicketResponse1(); + 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; + GetTicketResponse1 ret = new GetTicketResponse1(); + 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 GetTicketResponse1: 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 GetTicketResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetTicketResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetTicketResponse", GetTicketResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetTicketResponse1.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 GetTicketResponse1 + */ + 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 GetTicketResponse1 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 GetTicketResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTicketResponse1 + * @throws IOException if the JSON string is invalid with respect to GetTicketResponse1 + */ + public static GetTicketResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTicketResponse1.class); + } + + /** + * Convert an instance of GetTicketResponse1 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/GetTicketsResponse1.java b/client/src/main/java/com/fastcomments/model/GetTicketsResponse1.java new file mode 100644 index 00000000..ad559daa --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTicketsResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.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 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 GetTicketsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetTicketsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTicketsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTicketsResponse1' 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)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetTicketsResponse1 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()); + 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, GetTicketsResponse"); + } + + @Override + public GetTicketsResponse1 read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetTicketsResponse + try { + // validate the JSON object to see if any exception is thrown + GetTicketsResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetTicketsResponse; + GetTicketsResponse1 ret = new GetTicketsResponse1(); + 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); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetTicketsResponse1 ret = new GetTicketsResponse1(); + 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 GetTicketsResponse1: 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 GetTicketsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetTicketsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetTicketsResponse", GetTicketsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetTicketsResponse1.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetTicketsResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetTicketsResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetTicketsResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetTicketsResponse + * + * @return The actual instance (APIError, GetTicketsResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetTicketsResponse`. If the actual instance is not `GetTicketsResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetTicketsResponse` + * @throws ClassCastException if the instance is not `GetTicketsResponse` + */ + public GetTicketsResponse getGetTicketsResponse() throws ClassCastException { + return (GetTicketsResponse)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 GetTicketsResponse1 + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetTicketsResponse + try { + GetTicketsResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTicketsResponse 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 GetTicketsResponse1 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())); + } + + /** + * Create an instance of GetTicketsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTicketsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetTicketsResponse1 + */ + public static GetTicketsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTicketsResponse1.class); + } + + /** + * Convert an instance of GetTicketsResponse1 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/GetTranslationsResponse1.java b/client/src/main/java/com/fastcomments/model/GetTranslationsResponse1.java new file mode 100644 index 00000000..970ebe39 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTranslationsResponse1.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetTranslationsResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetTranslationsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetTranslationsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTranslationsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTranslationsResponse1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetTranslationsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTranslationsResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetTranslationsResponse1 value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetTranslationsResponse` + if (value.getActualInstance() instanceof GetTranslationsResponse) { + JsonElement element = adapterGetTranslationsResponse.toJsonTree((GetTranslationsResponse)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, GetTranslationsResponse"); + } + + @Override + public GetTranslationsResponse1 read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetTranslationsResponse + try { + // validate the JSON object to see if any exception is thrown + GetTranslationsResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetTranslationsResponse; + GetTranslationsResponse1 ret = new GetTranslationsResponse1(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTranslationsResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetTranslationsResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetTranslationsResponse1 ret = new GetTranslationsResponse1(); + 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 GetTranslationsResponse1: 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 GetTranslationsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetTranslationsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetTranslationsResponse", GetTranslationsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetTranslationsResponse1.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetTranslationsResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetTranslationsResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetTranslationsResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetTranslationsResponse + * + * @return The actual instance (APIError, GetTranslationsResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetTranslationsResponse`. If the actual instance is not `GetTranslationsResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetTranslationsResponse` + * @throws ClassCastException if the instance is not `GetTranslationsResponse` + */ + public GetTranslationsResponse getGetTranslationsResponse() throws ClassCastException { + return (GetTranslationsResponse)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 GetTranslationsResponse1 + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetTranslationsResponse + try { + GetTranslationsResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTranslationsResponse 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 GetTranslationsResponse1 with anyOf schemas: APIError, GetTranslationsResponse. 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 GetTranslationsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTranslationsResponse1 + * @throws IOException if the JSON string is invalid with respect to GetTranslationsResponse1 + */ + public static GetTranslationsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTranslationsResponse1.class); + } + + /** + * Convert an instance of GetTranslationsResponse1 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/GetTrustFactorResponse.java b/client/src/main/java/com/fastcomments/model/GetTrustFactorResponse.java new file mode 100644 index 00000000..d1d6035b --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetTrustFactorResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetUserTrustFactorResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetTrustFactorResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetTrustFactorResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTrustFactorResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTrustFactorResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetUserTrustFactorResponse = gson.getDelegateAdapter(this, TypeToken.get(GetUserTrustFactorResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetTrustFactorResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetUserTrustFactorResponse` + if (value.getActualInstance() instanceof GetUserTrustFactorResponse) { + JsonElement element = adapterGetUserTrustFactorResponse.toJsonTree((GetUserTrustFactorResponse)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, GetUserTrustFactorResponse"); + } + + @Override + public GetTrustFactorResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetUserTrustFactorResponse + try { + // validate the JSON object to see if any exception is thrown + GetUserTrustFactorResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetUserTrustFactorResponse; + GetTrustFactorResponse ret = new GetTrustFactorResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserTrustFactorResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetUserTrustFactorResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetTrustFactorResponse ret = new GetTrustFactorResponse(); + 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 GetTrustFactorResponse: 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 GetTrustFactorResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetTrustFactorResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetUserTrustFactorResponse", GetUserTrustFactorResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetTrustFactorResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetUserTrustFactorResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetUserTrustFactorResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetUserTrustFactorResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetUserTrustFactorResponse + * + * @return The actual instance (APIError, GetUserTrustFactorResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetUserTrustFactorResponse`. If the actual instance is not `GetUserTrustFactorResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetUserTrustFactorResponse` + * @throws ClassCastException if the instance is not `GetUserTrustFactorResponse` + */ + public GetUserTrustFactorResponse getGetUserTrustFactorResponse() throws ClassCastException { + return (GetUserTrustFactorResponse)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 GetTrustFactorResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetUserTrustFactorResponse + try { + GetUserTrustFactorResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserTrustFactorResponse 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 GetTrustFactorResponse with anyOf schemas: APIError, GetUserTrustFactorResponse. 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 GetTrustFactorResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTrustFactorResponse + * @throws IOException if the JSON string is invalid with respect to GetTrustFactorResponse + */ + public static GetTrustFactorResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTrustFactorResponse.class); + } + + /** + * Convert an instance of GetTrustFactorResponse 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/GetUserBadgeProgressByIdResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByIdResponse.java new file mode 100644 index 00000000..3865ed07 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByIdResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetUserBadgeProgressByIdResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserBadgeProgressByIdResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserBadgeProgressByIdResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserBadgeProgressByIdResponse' 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, GetUserBadgeProgressByIdResponse 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 GetUserBadgeProgressByIdResponse 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; + GetUserBadgeProgressByIdResponse ret = new GetUserBadgeProgressByIdResponse(); + 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; + GetUserBadgeProgressByIdResponse ret = new GetUserBadgeProgressByIdResponse(); + 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 GetUserBadgeProgressByIdResponse: 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 GetUserBadgeProgressByIdResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetUserBadgeProgressByIdResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIGetUserBadgeProgressResponse", APIGetUserBadgeProgressResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserBadgeProgressByIdResponse.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 GetUserBadgeProgressByIdResponse + */ + 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 GetUserBadgeProgressByIdResponse 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 GetUserBadgeProgressByIdResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserBadgeProgressByIdResponse + * @throws IOException if the JSON string is invalid with respect to GetUserBadgeProgressByIdResponse + */ + public static GetUserBadgeProgressByIdResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserBadgeProgressByIdResponse.class); + } + + /** + * Convert an instance of GetUserBadgeProgressByIdResponse 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/GetUserBadgeProgressByUserIdResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponse.java new file mode 100644 index 00000000..dcc54ccb --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetUserBadgeProgressByUserIdResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserBadgeProgressByUserIdResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserBadgeProgressByUserIdResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserBadgeProgressByUserIdResponse' 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, GetUserBadgeProgressByUserIdResponse 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 GetUserBadgeProgressByUserIdResponse 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; + GetUserBadgeProgressByUserIdResponse ret = new GetUserBadgeProgressByUserIdResponse(); + 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; + GetUserBadgeProgressByUserIdResponse ret = new GetUserBadgeProgressByUserIdResponse(); + 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 GetUserBadgeProgressByUserIdResponse: 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 GetUserBadgeProgressByUserIdResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetUserBadgeProgressByUserIdResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIGetUserBadgeProgressResponse", APIGetUserBadgeProgressResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserBadgeProgressByUserIdResponse.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 GetUserBadgeProgressByUserIdResponse + */ + 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 GetUserBadgeProgressByUserIdResponse 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 GetUserBadgeProgressByUserIdResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserBadgeProgressByUserIdResponse + * @throws IOException if the JSON string is invalid with respect to GetUserBadgeProgressByUserIdResponse + */ + public static GetUserBadgeProgressByUserIdResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserBadgeProgressByUserIdResponse.class); + } + + /** + * Convert an instance of GetUserBadgeProgressByUserIdResponse 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/GetUserBadgeProgressListResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressListResponse.java new file mode 100644 index 00000000..3eabc9ab --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressListResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetUserBadgeProgressListResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserBadgeProgressListResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserBadgeProgressListResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserBadgeProgressListResponse' 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, GetUserBadgeProgressListResponse 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 GetUserBadgeProgressListResponse 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; + GetUserBadgeProgressListResponse ret = new GetUserBadgeProgressListResponse(); + 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; + GetUserBadgeProgressListResponse ret = new GetUserBadgeProgressListResponse(); + 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 GetUserBadgeProgressListResponse: 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 GetUserBadgeProgressListResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetUserBadgeProgressListResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIGetUserBadgeProgressListResponse", APIGetUserBadgeProgressListResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserBadgeProgressListResponse.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 GetUserBadgeProgressListResponse + */ + 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 GetUserBadgeProgressListResponse 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 GetUserBadgeProgressListResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserBadgeProgressListResponse + * @throws IOException if the JSON string is invalid with respect to GetUserBadgeProgressListResponse + */ + public static GetUserBadgeProgressListResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserBadgeProgressListResponse.class); + } + + /** + * Convert an instance of GetUserBadgeProgressListResponse 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/GetUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBadgeResponse.java new file mode 100644 index 00000000..4d9c93b8 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserBadgeResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetUserBadgeResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserBadgeResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserBadgeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserBadgeResponse' 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, GetUserBadgeResponse 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 GetUserBadgeResponse 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; + GetUserBadgeResponse ret = new GetUserBadgeResponse(); + 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; + GetUserBadgeResponse ret = new GetUserBadgeResponse(); + 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 GetUserBadgeResponse: 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 GetUserBadgeResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetUserBadgeResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIGetUserBadgeResponse", APIGetUserBadgeResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserBadgeResponse.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 GetUserBadgeResponse + */ + 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 GetUserBadgeResponse 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 GetUserBadgeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserBadgeResponse + * @throws IOException if the JSON string is invalid with respect to GetUserBadgeResponse + */ + public static GetUserBadgeResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserBadgeResponse.class); + } + + /** + * Convert an instance of GetUserBadgeResponse 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/GetUserBadgesResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBadgesResponse.java new file mode 100644 index 00000000..0dd6fc1d --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserBadgesResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.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 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 GetUserBadgesResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserBadgesResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserBadgesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserBadgesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterAPIGetUserBadgesResponse = gson.getDelegateAdapter(this, TypeToken.get(APIGetUserBadgesResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserBadgesResponse 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()); + 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, APIGetUserBadgesResponse"); + } + + @Override + public GetUserBadgesResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize APIGetUserBadgesResponse + try { + // validate the JSON object to see if any exception is thrown + APIGetUserBadgesResponse.validateJsonElement(jsonElement); + actualAdapter = adapterAPIGetUserBadgesResponse; + GetUserBadgesResponse ret = new GetUserBadgesResponse(); + 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); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetUserBadgesResponse ret = new GetUserBadgesResponse(); + 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 GetUserBadgesResponse: 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 GetUserBadgesResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetUserBadgesResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIGetUserBadgesResponse", APIGetUserBadgesResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserBadgesResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, APIGetUserBadgesResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof APIGetUserBadgesResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, APIGetUserBadgesResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, APIGetUserBadgesResponse + * + * @return The actual instance (APIError, APIGetUserBadgesResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `APIGetUserBadgesResponse`. If the actual instance is not `APIGetUserBadgesResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `APIGetUserBadgesResponse` + * @throws ClassCastException if the instance is not `APIGetUserBadgesResponse` + */ + public APIGetUserBadgesResponse getAPIGetUserBadgesResponse() throws ClassCastException { + return (APIGetUserBadgesResponse)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 GetUserBadgesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with APIGetUserBadgesResponse + try { + APIGetUserBadgesResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetUserBadgesResponse 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 GetUserBadgesResponse 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())); + } + + /** + * Create an instance of GetUserBadgesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserBadgesResponse + * @throws IOException if the JSON string is invalid with respect to GetUserBadgesResponse + */ + public static GetUserBadgesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserBadgesResponse.class); + } + + /** + * Convert an instance of GetUserBadgesResponse 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/GetUserBanPreferenceResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBanPreferenceResponse.java new file mode 100644 index 00000000..d68b52a4 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserBanPreferenceResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.APIModerateGetUserBanPreferencesResponse; +import com.fastcomments.model.APIModerateUserBanPreferences; +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.23.0-SNAPSHOT") +public class GetUserBanPreferenceResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserBanPreferenceResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserBanPreferenceResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserBanPreferenceResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterAPIModerateGetUserBanPreferencesResponse = gson.getDelegateAdapter(this, TypeToken.get(APIModerateGetUserBanPreferencesResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserBanPreferenceResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `APIModerateGetUserBanPreferencesResponse` + if (value.getActualInstance() instanceof APIModerateGetUserBanPreferencesResponse) { + JsonElement element = adapterAPIModerateGetUserBanPreferencesResponse.toJsonTree((APIModerateGetUserBanPreferencesResponse)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, APIModerateGetUserBanPreferencesResponse"); + } + + @Override + public GetUserBanPreferenceResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize APIModerateGetUserBanPreferencesResponse + try { + // validate the JSON object to see if any exception is thrown + APIModerateGetUserBanPreferencesResponse.validateJsonElement(jsonElement); + actualAdapter = adapterAPIModerateGetUserBanPreferencesResponse; + GetUserBanPreferenceResponse ret = new GetUserBanPreferenceResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIModerateGetUserBanPreferencesResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'APIModerateGetUserBanPreferencesResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetUserBanPreferenceResponse ret = new GetUserBanPreferenceResponse(); + 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 GetUserBanPreferenceResponse: 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 GetUserBanPreferenceResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetUserBanPreferenceResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIModerateGetUserBanPreferencesResponse", APIModerateGetUserBanPreferencesResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserBanPreferenceResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, APIModerateGetUserBanPreferencesResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof APIModerateGetUserBanPreferencesResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, APIModerateGetUserBanPreferencesResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, APIModerateGetUserBanPreferencesResponse + * + * @return The actual instance (APIError, APIModerateGetUserBanPreferencesResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `APIModerateGetUserBanPreferencesResponse`. If the actual instance is not `APIModerateGetUserBanPreferencesResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `APIModerateGetUserBanPreferencesResponse` + * @throws ClassCastException if the instance is not `APIModerateGetUserBanPreferencesResponse` + */ + public APIModerateGetUserBanPreferencesResponse getAPIModerateGetUserBanPreferencesResponse() throws ClassCastException { + return (APIModerateGetUserBanPreferencesResponse)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 GetUserBanPreferenceResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with APIModerateGetUserBanPreferencesResponse + try { + APIModerateGetUserBanPreferencesResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIModerateGetUserBanPreferencesResponse 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 GetUserBanPreferenceResponse with anyOf schemas: APIError, APIModerateGetUserBanPreferencesResponse. 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 GetUserBanPreferenceResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserBanPreferenceResponse + * @throws IOException if the JSON string is invalid with respect to GetUserBanPreferenceResponse + */ + public static GetUserBanPreferenceResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserBanPreferenceResponse.class); + } + + /** + * Convert an instance of GetUserBanPreferenceResponse 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/GetUserInternalProfileResponse1.java b/client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponse1.java new file mode 100644 index 00000000..f00a5efe --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetUserInternalProfileResponse; +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 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 GetUserInternalProfileResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserInternalProfileResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserInternalProfileResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserInternalProfileResponse1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetUserInternalProfileResponse = gson.getDelegateAdapter(this, TypeToken.get(GetUserInternalProfileResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserInternalProfileResponse1 value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetUserInternalProfileResponse` + if (value.getActualInstance() instanceof GetUserInternalProfileResponse) { + JsonElement element = adapterGetUserInternalProfileResponse.toJsonTree((GetUserInternalProfileResponse)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, GetUserInternalProfileResponse"); + } + + @Override + public GetUserInternalProfileResponse1 read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetUserInternalProfileResponse + try { + // validate the JSON object to see if any exception is thrown + GetUserInternalProfileResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetUserInternalProfileResponse; + GetUserInternalProfileResponse1 ret = new GetUserInternalProfileResponse1(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserInternalProfileResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetUserInternalProfileResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetUserInternalProfileResponse1 ret = new GetUserInternalProfileResponse1(); + 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 GetUserInternalProfileResponse1: 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 GetUserInternalProfileResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetUserInternalProfileResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetUserInternalProfileResponse", GetUserInternalProfileResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserInternalProfileResponse1.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetUserInternalProfileResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetUserInternalProfileResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetUserInternalProfileResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetUserInternalProfileResponse + * + * @return The actual instance (APIError, GetUserInternalProfileResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetUserInternalProfileResponse`. If the actual instance is not `GetUserInternalProfileResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetUserInternalProfileResponse` + * @throws ClassCastException if the instance is not `GetUserInternalProfileResponse` + */ + public GetUserInternalProfileResponse getGetUserInternalProfileResponse() throws ClassCastException { + return (GetUserInternalProfileResponse)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 GetUserInternalProfileResponse1 + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetUserInternalProfileResponse + try { + GetUserInternalProfileResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserInternalProfileResponse 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 GetUserInternalProfileResponse1 with anyOf schemas: APIError, GetUserInternalProfileResponse. 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 GetUserInternalProfileResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserInternalProfileResponse1 + * @throws IOException if the JSON string is invalid with respect to GetUserInternalProfileResponse1 + */ + public static GetUserInternalProfileResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserInternalProfileResponse1.class); + } + + /** + * Convert an instance of GetUserInternalProfileResponse1 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/GetUserNotificationCountResponse1.java b/client/src/main/java/com/fastcomments/model/GetUserNotificationCountResponse1.java new file mode 100644 index 00000000..8da89aa4 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserNotificationCountResponse1.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetUserNotificationCountResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserNotificationCountResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserNotificationCountResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserNotificationCountResponse1' 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, GetUserNotificationCountResponse1 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 GetUserNotificationCountResponse1 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; + GetUserNotificationCountResponse1 ret = new GetUserNotificationCountResponse1(); + 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; + GetUserNotificationCountResponse1 ret = new GetUserNotificationCountResponse1(); + 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 GetUserNotificationCountResponse1: 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 GetUserNotificationCountResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetUserNotificationCountResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetUserNotificationCountResponse", GetUserNotificationCountResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserNotificationCountResponse1.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 GetUserNotificationCountResponse1 + */ + 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 GetUserNotificationCountResponse1 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 GetUserNotificationCountResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserNotificationCountResponse1 + * @throws IOException if the JSON string is invalid with respect to GetUserNotificationCountResponse1 + */ + public static GetUserNotificationCountResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserNotificationCountResponse1.class); + } + + /** + * Convert an instance of GetUserNotificationCountResponse1 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/GetUserNotificationsResponse.java b/client/src/main/java/com/fastcomments/model/GetUserNotificationsResponse.java new file mode 100644 index 00000000..bc14ea23 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserNotificationsResponse.java @@ -0,0 +1,274 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetUserNotificationsResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserNotificationsResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserNotificationsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserNotificationsResponse' 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, GetUserNotificationsResponse 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 GetUserNotificationsResponse 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; + GetUserNotificationsResponse ret = new GetUserNotificationsResponse(); + 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; + GetUserNotificationsResponse ret = new GetUserNotificationsResponse(); + 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 GetUserNotificationsResponse: 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 GetUserNotificationsResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetUserNotificationsResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetMyNotificationsResponse", GetMyNotificationsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserNotificationsResponse.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 GetUserNotificationsResponse + */ + 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 GetUserNotificationsResponse 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 GetUserNotificationsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserNotificationsResponse + * @throws IOException if the JSON string is invalid with respect to GetUserNotificationsResponse + */ + public static GetUserNotificationsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserNotificationsResponse.class); + } + + /** + * Convert an instance of GetUserNotificationsResponse 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/GetUserPresenceStatusesResponse1.java b/client/src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse1.java new file mode 100644 index 00000000..8946890f --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse1.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetUserPresenceStatusesResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserPresenceStatusesResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserPresenceStatusesResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserPresenceStatusesResponse1' 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, GetUserPresenceStatusesResponse1 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 GetUserPresenceStatusesResponse1 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; + GetUserPresenceStatusesResponse1 ret = new GetUserPresenceStatusesResponse1(); + 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; + GetUserPresenceStatusesResponse1 ret = new GetUserPresenceStatusesResponse1(); + 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 GetUserPresenceStatusesResponse1: 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 GetUserPresenceStatusesResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetUserPresenceStatusesResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetUserPresenceStatusesResponse", GetUserPresenceStatusesResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserPresenceStatusesResponse1.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 GetUserPresenceStatusesResponse1 + */ + 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 GetUserPresenceStatusesResponse1 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 GetUserPresenceStatusesResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserPresenceStatusesResponse1 + * @throws IOException if the JSON string is invalid with respect to GetUserPresenceStatusesResponse1 + */ + public static GetUserPresenceStatusesResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserPresenceStatusesResponse1.class); + } + + /** + * Convert an instance of GetUserPresenceStatusesResponse1 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/GetUserReactsPublicResponse.java b/client/src/main/java/com/fastcomments/model/GetUserReactsPublicResponse.java new file mode 100644 index 00000000..1e2a9b3a --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserReactsPublicResponse.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetUserReactsPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserReactsPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserReactsPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserReactsPublicResponse' 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, GetUserReactsPublicResponse 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 GetUserReactsPublicResponse 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; + GetUserReactsPublicResponse ret = new GetUserReactsPublicResponse(); + 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; + GetUserReactsPublicResponse ret = new GetUserReactsPublicResponse(); + 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 GetUserReactsPublicResponse: 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 GetUserReactsPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetUserReactsPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("UserReactsResponse", UserReactsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserReactsPublicResponse.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 GetUserReactsPublicResponse + */ + 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 GetUserReactsPublicResponse 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 GetUserReactsPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserReactsPublicResponse + * @throws IOException if the JSON string is invalid with respect to GetUserReactsPublicResponse + */ + public static GetUserReactsPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserReactsPublicResponse.class); + } + + /** + * Convert an instance of GetUserReactsPublicResponse 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/GetUserResponse1.java b/client/src/main/java/com/fastcomments/model/GetUserResponse1.java new file mode 100644 index 00000000..ccc51c01 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUserResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetUserResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUserResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUserResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserResponse1' 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, GetUserResponse1 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 GetUserResponse1 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; + GetUserResponse1 ret = new GetUserResponse1(); + 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; + GetUserResponse1 ret = new GetUserResponse1(); + 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 GetUserResponse1: 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 GetUserResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetUserResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetUserResponse", GetUserResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUserResponse1.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 GetUserResponse1 + */ + 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 GetUserResponse1 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 GetUserResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUserResponse1 + * @throws IOException if the JSON string is invalid with respect to GetUserResponse1 + */ + public static GetUserResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUserResponse1.class); + } + + /** + * Convert an instance of GetUserResponse1 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/GetUsersInfoResponse.java b/client/src/main/java/com/fastcomments/model/GetUsersInfoResponse.java new file mode 100644 index 00000000..5d009f92 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetUsersInfoResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.PageUserEntry; +import com.fastcomments.model.PageUsersInfoResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetUsersInfoResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetUsersInfoResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetUsersInfoResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUsersInfoResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterPageUsersInfoResponse = gson.getDelegateAdapter(this, TypeToken.get(PageUsersInfoResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUsersInfoResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `PageUsersInfoResponse` + if (value.getActualInstance() instanceof PageUsersInfoResponse) { + JsonElement element = adapterPageUsersInfoResponse.toJsonTree((PageUsersInfoResponse)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, PageUsersInfoResponse"); + } + + @Override + public GetUsersInfoResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize PageUsersInfoResponse + try { + // validate the JSON object to see if any exception is thrown + PageUsersInfoResponse.validateJsonElement(jsonElement); + actualAdapter = adapterPageUsersInfoResponse; + GetUsersInfoResponse ret = new GetUsersInfoResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersInfoResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'PageUsersInfoResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetUsersInfoResponse ret = new GetUsersInfoResponse(); + 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 GetUsersInfoResponse: 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 GetUsersInfoResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetUsersInfoResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("PageUsersInfoResponse", PageUsersInfoResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetUsersInfoResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, PageUsersInfoResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof PageUsersInfoResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, PageUsersInfoResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, PageUsersInfoResponse + * + * @return The actual instance (APIError, PageUsersInfoResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `PageUsersInfoResponse`. If the actual instance is not `PageUsersInfoResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PageUsersInfoResponse` + * @throws ClassCastException if the instance is not `PageUsersInfoResponse` + */ + public PageUsersInfoResponse getPageUsersInfoResponse() throws ClassCastException { + return (PageUsersInfoResponse)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 GetUsersInfoResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with PageUsersInfoResponse + try { + PageUsersInfoResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersInfoResponse 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 GetUsersInfoResponse with anyOf schemas: APIError, PageUsersInfoResponse. 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 GetUsersInfoResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetUsersInfoResponse + * @throws IOException if the JSON string is invalid with respect to GetUsersInfoResponse + */ + public static GetUsersInfoResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetUsersInfoResponse.class); + } + + /** + * Convert an instance of GetUsersInfoResponse 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/GetV1PageLikesResponse.java b/client/src/main/java/com/fastcomments/model/GetV1PageLikesResponse.java new file mode 100644 index 00000000..3849d8e1 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetV1PageLikesResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetV1PageLikes; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetV1PageLikesResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetV1PageLikesResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetV1PageLikesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetV1PageLikesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetV1PageLikes = gson.getDelegateAdapter(this, TypeToken.get(GetV1PageLikes.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetV1PageLikesResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetV1PageLikes` + if (value.getActualInstance() instanceof GetV1PageLikes) { + JsonElement element = adapterGetV1PageLikes.toJsonTree((GetV1PageLikes)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, GetV1PageLikes"); + } + + @Override + public GetV1PageLikesResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetV1PageLikes + try { + // validate the JSON object to see if any exception is thrown + GetV1PageLikes.validateJsonElement(jsonElement); + actualAdapter = adapterGetV1PageLikes; + GetV1PageLikesResponse ret = new GetV1PageLikesResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV1PageLikes failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetV1PageLikes'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetV1PageLikesResponse ret = new GetV1PageLikesResponse(); + 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 GetV1PageLikesResponse: 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 GetV1PageLikesResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetV1PageLikesResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetV1PageLikes", GetV1PageLikes.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetV1PageLikesResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetV1PageLikes + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetV1PageLikes) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetV1PageLikes"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetV1PageLikes + * + * @return The actual instance (APIError, GetV1PageLikes) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetV1PageLikes`. If the actual instance is not `GetV1PageLikes`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetV1PageLikes` + * @throws ClassCastException if the instance is not `GetV1PageLikes` + */ + public GetV1PageLikes getGetV1PageLikes() throws ClassCastException { + return (GetV1PageLikes)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 GetV1PageLikesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetV1PageLikes + try { + GetV1PageLikes.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV1PageLikes 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 GetV1PageLikesResponse with anyOf schemas: APIError, GetV1PageLikes. 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 GetV1PageLikesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetV1PageLikesResponse + * @throws IOException if the JSON string is invalid with respect to GetV1PageLikesResponse + */ + public static GetV1PageLikesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetV1PageLikesResponse.class); + } + + /** + * Convert an instance of GetV1PageLikesResponse 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/GetV2PageReactUsersResponse1.java b/client/src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse1.java new file mode 100644 index 00000000..24500962 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse1.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetV2PageReactUsersResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetV2PageReactUsersResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetV2PageReactUsersResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetV2PageReactUsersResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetV2PageReactUsersResponse1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetV2PageReactUsersResponse = gson.getDelegateAdapter(this, TypeToken.get(GetV2PageReactUsersResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetV2PageReactUsersResponse1 value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetV2PageReactUsersResponse` + if (value.getActualInstance() instanceof GetV2PageReactUsersResponse) { + JsonElement element = adapterGetV2PageReactUsersResponse.toJsonTree((GetV2PageReactUsersResponse)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, GetV2PageReactUsersResponse"); + } + + @Override + public GetV2PageReactUsersResponse1 read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetV2PageReactUsersResponse + try { + // validate the JSON object to see if any exception is thrown + GetV2PageReactUsersResponse.validateJsonElement(jsonElement); + actualAdapter = adapterGetV2PageReactUsersResponse; + GetV2PageReactUsersResponse1 ret = new GetV2PageReactUsersResponse1(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV2PageReactUsersResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetV2PageReactUsersResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetV2PageReactUsersResponse1 ret = new GetV2PageReactUsersResponse1(); + 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 GetV2PageReactUsersResponse1: 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 GetV2PageReactUsersResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetV2PageReactUsersResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetV2PageReactUsersResponse", GetV2PageReactUsersResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetV2PageReactUsersResponse1.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetV2PageReactUsersResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetV2PageReactUsersResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetV2PageReactUsersResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetV2PageReactUsersResponse + * + * @return The actual instance (APIError, GetV2PageReactUsersResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetV2PageReactUsersResponse`. If the actual instance is not `GetV2PageReactUsersResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetV2PageReactUsersResponse` + * @throws ClassCastException if the instance is not `GetV2PageReactUsersResponse` + */ + public GetV2PageReactUsersResponse getGetV2PageReactUsersResponse() throws ClassCastException { + return (GetV2PageReactUsersResponse)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 GetV2PageReactUsersResponse1 + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetV2PageReactUsersResponse + try { + GetV2PageReactUsersResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV2PageReactUsersResponse 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 GetV2PageReactUsersResponse1 with anyOf schemas: APIError, GetV2PageReactUsersResponse. 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 GetV2PageReactUsersResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetV2PageReactUsersResponse1 + * @throws IOException if the JSON string is invalid with respect to GetV2PageReactUsersResponse1 + */ + public static GetV2PageReactUsersResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetV2PageReactUsersResponse1.class); + } + + /** + * Convert an instance of GetV2PageReactUsersResponse1 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/GetV2PageReactsResponse.java b/client/src/main/java/com/fastcomments/model/GetV2PageReactsResponse.java new file mode 100644 index 00000000..8db7097a --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetV2PageReactsResponse.java @@ -0,0 +1,273 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetV2PageReacts; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class GetV2PageReactsResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetV2PageReactsResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetV2PageReactsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetV2PageReactsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterGetV2PageReacts = gson.getDelegateAdapter(this, TypeToken.get(GetV2PageReacts.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetV2PageReactsResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `GetV2PageReacts` + if (value.getActualInstance() instanceof GetV2PageReacts) { + JsonElement element = adapterGetV2PageReacts.toJsonTree((GetV2PageReacts)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, GetV2PageReacts"); + } + + @Override + public GetV2PageReactsResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize GetV2PageReacts + try { + // validate the JSON object to see if any exception is thrown + GetV2PageReacts.validateJsonElement(jsonElement); + actualAdapter = adapterGetV2PageReacts; + GetV2PageReactsResponse ret = new GetV2PageReactsResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV2PageReacts failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'GetV2PageReacts'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + GetV2PageReactsResponse ret = new GetV2PageReactsResponse(); + 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 GetV2PageReactsResponse: 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 GetV2PageReactsResponse() { + super("anyOf", Boolean.FALSE); + } + + public GetV2PageReactsResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetV2PageReacts", GetV2PageReacts.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetV2PageReactsResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, GetV2PageReacts + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof GetV2PageReacts) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, GetV2PageReacts"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, GetV2PageReacts + * + * @return The actual instance (APIError, GetV2PageReacts) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `GetV2PageReacts`. If the actual instance is not `GetV2PageReacts`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GetV2PageReacts` + * @throws ClassCastException if the instance is not `GetV2PageReacts` + */ + public GetV2PageReacts getGetV2PageReacts() throws ClassCastException { + return (GetV2PageReacts)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 GetV2PageReactsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with GetV2PageReacts + try { + GetV2PageReacts.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV2PageReacts 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 GetV2PageReactsResponse with anyOf schemas: APIError, GetV2PageReacts. 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 GetV2PageReactsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetV2PageReactsResponse + * @throws IOException if the JSON string is invalid with respect to GetV2PageReactsResponse + */ + public static GetV2PageReactsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetV2PageReactsResponse.class); + } + + /** + * Convert an instance of GetV2PageReactsResponse 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/GetVotesForUserResponse1.java b/client/src/main/java/com/fastcomments/model/GetVotesForUserResponse1.java new file mode 100644 index 00000000..7cb7faf1 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetVotesForUserResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetVotesForUserResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetVotesForUserResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetVotesForUserResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetVotesForUserResponse1' 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, GetVotesForUserResponse1 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 GetVotesForUserResponse1 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; + GetVotesForUserResponse1 ret = new GetVotesForUserResponse1(); + 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; + GetVotesForUserResponse1 ret = new GetVotesForUserResponse1(); + 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 GetVotesForUserResponse1: 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 GetVotesForUserResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetVotesForUserResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetVotesForUserResponse", GetVotesForUserResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetVotesForUserResponse1.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 GetVotesForUserResponse1 + */ + 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 GetVotesForUserResponse1 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 GetVotesForUserResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetVotesForUserResponse1 + * @throws IOException if the JSON string is invalid with respect to GetVotesForUserResponse1 + */ + public static GetVotesForUserResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetVotesForUserResponse1.class); + } + + /** + * Convert an instance of GetVotesForUserResponse1 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/GetVotesResponse1.java b/client/src/main/java/com/fastcomments/model/GetVotesResponse1.java new file mode 100644 index 00000000..6c2c6d10 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/GetVotesResponse1.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class GetVotesResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(GetVotesResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetVotesResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetVotesResponse1' 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, GetVotesResponse1 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 GetVotesResponse1 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; + GetVotesResponse1 ret = new GetVotesResponse1(); + 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; + GetVotesResponse1 ret = new GetVotesResponse1(); + 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 GetVotesResponse1: 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 GetVotesResponse1() { + super("anyOf", Boolean.FALSE); + } + + public GetVotesResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("GetVotesResponse", GetVotesResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return GetVotesResponse1.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 GetVotesResponse1 + */ + 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 GetVotesResponse1 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 GetVotesResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetVotesResponse1 + * @throws IOException if the JSON string is invalid with respect to GetVotesResponse1 + */ + public static GetVotesResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetVotesResponse1.class); + } + + /** + * Convert an instance of GetVotesResponse1 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/LockCommentResponse.java b/client/src/main/java/com/fastcomments/model/LockCommentResponse.java new file mode 100644 index 00000000..b87ded0a --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/LockCommentResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class LockCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(LockCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LockCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LockCommentResponse' 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, LockCommentResponse 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 LockCommentResponse 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; + LockCommentResponse ret = new LockCommentResponse(); + 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; + LockCommentResponse ret = new LockCommentResponse(); + 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 LockCommentResponse: 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 LockCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public LockCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIError", APIError.class); + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + } + + @Override + public Map> getSchemas() { + return LockCommentResponse.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 LockCommentResponse + */ + 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 LockCommentResponse 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 LockCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of LockCommentResponse + * @throws IOException if the JSON string is invalid with respect to LockCommentResponse + */ + public static LockCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LockCommentResponse.class); + } + + /** + * Convert an instance of LockCommentResponse 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/PatchHashTagResponse.java b/client/src/main/java/com/fastcomments/model/PatchHashTagResponse.java new file mode 100644 index 00000000..10a58658 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PatchHashTagResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class PatchHashTagResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PatchHashTagResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PatchHashTagResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PatchHashTagResponse' 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, PatchHashTagResponse 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 PatchHashTagResponse 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; + PatchHashTagResponse ret = new PatchHashTagResponse(); + 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; + PatchHashTagResponse ret = new PatchHashTagResponse(); + 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 PatchHashTagResponse: 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 PatchHashTagResponse() { + super("anyOf", Boolean.FALSE); + } + + public PatchHashTagResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("UpdateHashTagResponse", UpdateHashTagResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PatchHashTagResponse.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 PatchHashTagResponse + */ + 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 PatchHashTagResponse 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 PatchHashTagResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PatchHashTagResponse + * @throws IOException if the JSON string is invalid with respect to PatchHashTagResponse + */ + public static PatchHashTagResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PatchHashTagResponse.class); + } + + /** + * Convert an instance of PatchHashTagResponse 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/PinCommentResponse.java b/client/src/main/java/com/fastcomments/model/PinCommentResponse.java new file mode 100644 index 00000000..e3388aa4 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PinCommentResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class PinCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PinCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PinCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PinCommentResponse' 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, PinCommentResponse 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 PinCommentResponse 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; + PinCommentResponse ret = new PinCommentResponse(); + 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; + PinCommentResponse ret = new PinCommentResponse(); + 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 PinCommentResponse: 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 PinCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public PinCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ChangeCommentPinStatusResponse", ChangeCommentPinStatusResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PinCommentResponse.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 PinCommentResponse + */ + 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 PinCommentResponse 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 PinCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PinCommentResponse + * @throws IOException if the JSON string is invalid with respect to PinCommentResponse + */ + public static PinCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PinCommentResponse.class); + } + + /** + * Convert an instance of PinCommentResponse 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/PostAdjustCommentVotesResponse.java b/client/src/main/java/com/fastcomments/model/PostAdjustCommentVotesResponse.java new file mode 100644 index 00000000..80bfd8cc --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostAdjustCommentVotesResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.AdjustVotesResponse; +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.23.0-SNAPSHOT") +public class PostAdjustCommentVotesResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostAdjustCommentVotesResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostAdjustCommentVotesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostAdjustCommentVotesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterAdjustVotesResponse = gson.getDelegateAdapter(this, TypeToken.get(AdjustVotesResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PostAdjustCommentVotesResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `AdjustVotesResponse` + if (value.getActualInstance() instanceof AdjustVotesResponse) { + JsonElement element = adapterAdjustVotesResponse.toJsonTree((AdjustVotesResponse)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, AdjustVotesResponse"); + } + + @Override + public PostAdjustCommentVotesResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize AdjustVotesResponse + try { + // validate the JSON object to see if any exception is thrown + AdjustVotesResponse.validateJsonElement(jsonElement); + actualAdapter = adapterAdjustVotesResponse; + PostAdjustCommentVotesResponse ret = new PostAdjustCommentVotesResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AdjustVotesResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AdjustVotesResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + PostAdjustCommentVotesResponse ret = new PostAdjustCommentVotesResponse(); + 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 PostAdjustCommentVotesResponse: 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 PostAdjustCommentVotesResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostAdjustCommentVotesResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AdjustVotesResponse", AdjustVotesResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostAdjustCommentVotesResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, AdjustVotesResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof AdjustVotesResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, AdjustVotesResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, AdjustVotesResponse + * + * @return The actual instance (APIError, AdjustVotesResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AdjustVotesResponse`. If the actual instance is not `AdjustVotesResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AdjustVotesResponse` + * @throws ClassCastException if the instance is not `AdjustVotesResponse` + */ + public AdjustVotesResponse getAdjustVotesResponse() throws ClassCastException { + return (AdjustVotesResponse)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 PostAdjustCommentVotesResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with AdjustVotesResponse + try { + AdjustVotesResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AdjustVotesResponse 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 PostAdjustCommentVotesResponse with anyOf schemas: APIError, AdjustVotesResponse. 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 PostAdjustCommentVotesResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostAdjustCommentVotesResponse + * @throws IOException if the JSON string is invalid with respect to PostAdjustCommentVotesResponse + */ + public static PostAdjustCommentVotesResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostAdjustCommentVotesResponse.class); + } + + /** + * Convert an instance of PostAdjustCommentVotesResponse 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/PostApiExportResponse.java b/client/src/main/java/com/fastcomments/model/PostApiExportResponse.java new file mode 100644 index 00000000..14e34f71 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostApiExportResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationExportResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 PostApiExportResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostApiExportResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostApiExportResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostApiExportResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationExportResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationExportResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PostApiExportResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationExportResponse` + if (value.getActualInstance() instanceof ModerationExportResponse) { + JsonElement element = adapterModerationExportResponse.toJsonTree((ModerationExportResponse)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, ModerationExportResponse"); + } + + @Override + public PostApiExportResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationExportResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationExportResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationExportResponse; + PostApiExportResponse ret = new PostApiExportResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationExportResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationExportResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + PostApiExportResponse ret = new PostApiExportResponse(); + 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 PostApiExportResponse: 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 PostApiExportResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostApiExportResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationExportResponse", ModerationExportResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostApiExportResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationExportResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationExportResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationExportResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationExportResponse + * + * @return The actual instance (APIError, ModerationExportResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationExportResponse`. If the actual instance is not `ModerationExportResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationExportResponse` + * @throws ClassCastException if the instance is not `ModerationExportResponse` + */ + public ModerationExportResponse getModerationExportResponse() throws ClassCastException { + return (ModerationExportResponse)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 PostApiExportResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationExportResponse + try { + ModerationExportResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationExportResponse 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 PostApiExportResponse with anyOf schemas: APIError, ModerationExportResponse. 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 PostApiExportResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostApiExportResponse + * @throws IOException if the JSON string is invalid with respect to PostApiExportResponse + */ + public static PostApiExportResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostApiExportResponse.class); + } + + /** + * Convert an instance of PostApiExportResponse 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/PostBanUserFromCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostBanUserFromCommentResponse.java new file mode 100644 index 00000000..0ffa57c5 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostBanUserFromCommentResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.fastcomments.model.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.BanUserFromCommentResult; +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.23.0-SNAPSHOT") +public class PostBanUserFromCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostBanUserFromCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostBanUserFromCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostBanUserFromCommentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterBanUserFromCommentResult = gson.getDelegateAdapter(this, TypeToken.get(BanUserFromCommentResult.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PostBanUserFromCommentResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `BanUserFromCommentResult` + if (value.getActualInstance() instanceof BanUserFromCommentResult) { + JsonElement element = adapterBanUserFromCommentResult.toJsonTree((BanUserFromCommentResult)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, BanUserFromCommentResult"); + } + + @Override + public PostBanUserFromCommentResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize BanUserFromCommentResult + try { + // validate the JSON object to see if any exception is thrown + BanUserFromCommentResult.validateJsonElement(jsonElement); + actualAdapter = adapterBanUserFromCommentResult; + PostBanUserFromCommentResponse ret = new PostBanUserFromCommentResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BanUserFromCommentResult failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'BanUserFromCommentResult'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + PostBanUserFromCommentResponse ret = new PostBanUserFromCommentResponse(); + 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 PostBanUserFromCommentResponse: 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 PostBanUserFromCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostBanUserFromCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("BanUserFromCommentResult", BanUserFromCommentResult.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostBanUserFromCommentResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, BanUserFromCommentResult + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof BanUserFromCommentResult) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, BanUserFromCommentResult"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, BanUserFromCommentResult + * + * @return The actual instance (APIError, BanUserFromCommentResult) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `BanUserFromCommentResult`. If the actual instance is not `BanUserFromCommentResult`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BanUserFromCommentResult` + * @throws ClassCastException if the instance is not `BanUserFromCommentResult` + */ + public BanUserFromCommentResult getBanUserFromCommentResult() throws ClassCastException { + return (BanUserFromCommentResult)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 PostBanUserFromCommentResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with BanUserFromCommentResult + try { + BanUserFromCommentResult.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BanUserFromCommentResult 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 PostBanUserFromCommentResponse with anyOf schemas: APIError, BanUserFromCommentResult. 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 PostBanUserFromCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostBanUserFromCommentResponse + * @throws IOException if the JSON string is invalid with respect to PostBanUserFromCommentResponse + */ + public static PostBanUserFromCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostBanUserFromCommentResponse.class); + } + + /** + * Convert an instance of PostBanUserFromCommentResponse 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/PostBanUserUndoResponse.java b/client/src/main/java/com/fastcomments/model/PostBanUserUndoResponse.java new file mode 100644 index 00000000..889f2e15 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostBanUserUndoResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class PostBanUserUndoResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostBanUserUndoResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostBanUserUndoResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostBanUserUndoResponse' 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, PostBanUserUndoResponse 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 PostBanUserUndoResponse 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; + PostBanUserUndoResponse ret = new PostBanUserUndoResponse(); + 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; + PostBanUserUndoResponse ret = new PostBanUserUndoResponse(); + 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 PostBanUserUndoResponse: 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 PostBanUserUndoResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostBanUserUndoResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostBanUserUndoResponse.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 PostBanUserUndoResponse + */ + 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 PostBanUserUndoResponse 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 PostBanUserUndoResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostBanUserUndoResponse + * @throws IOException if the JSON string is invalid with respect to PostBanUserUndoResponse + */ + public static PostBanUserUndoResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostBanUserUndoResponse.class); + } + + /** + * Convert an instance of PostBanUserUndoResponse 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/PostBulkPreBanSummaryResponse.java b/client/src/main/java/com/fastcomments/model/PostBulkPreBanSummaryResponse.java new file mode 100644 index 00000000..f03cfbe5 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostBulkPreBanSummaryResponse.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.BulkPreBanSummary; +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.23.0-SNAPSHOT") +public class PostBulkPreBanSummaryResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostBulkPreBanSummaryResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostBulkPreBanSummaryResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostBulkPreBanSummaryResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterBulkPreBanSummary = gson.getDelegateAdapter(this, TypeToken.get(BulkPreBanSummary.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PostBulkPreBanSummaryResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `BulkPreBanSummary` + if (value.getActualInstance() instanceof BulkPreBanSummary) { + JsonElement element = adapterBulkPreBanSummary.toJsonTree((BulkPreBanSummary)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, BulkPreBanSummary"); + } + + @Override + public PostBulkPreBanSummaryResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize BulkPreBanSummary + try { + // validate the JSON object to see if any exception is thrown + BulkPreBanSummary.validateJsonElement(jsonElement); + actualAdapter = adapterBulkPreBanSummary; + PostBulkPreBanSummaryResponse ret = new PostBulkPreBanSummaryResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BulkPreBanSummary failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'BulkPreBanSummary'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + PostBulkPreBanSummaryResponse ret = new PostBulkPreBanSummaryResponse(); + 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 PostBulkPreBanSummaryResponse: 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 PostBulkPreBanSummaryResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostBulkPreBanSummaryResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("BulkPreBanSummary", BulkPreBanSummary.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostBulkPreBanSummaryResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, BulkPreBanSummary + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof BulkPreBanSummary) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, BulkPreBanSummary"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, BulkPreBanSummary + * + * @return The actual instance (APIError, BulkPreBanSummary) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `BulkPreBanSummary`. If the actual instance is not `BulkPreBanSummary`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BulkPreBanSummary` + * @throws ClassCastException if the instance is not `BulkPreBanSummary` + */ + public BulkPreBanSummary getBulkPreBanSummary() throws ClassCastException { + return (BulkPreBanSummary)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 PostBulkPreBanSummaryResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with BulkPreBanSummary + try { + BulkPreBanSummary.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BulkPreBanSummary 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 PostBulkPreBanSummaryResponse with anyOf schemas: APIError, BulkPreBanSummary. 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 PostBulkPreBanSummaryResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostBulkPreBanSummaryResponse + * @throws IOException if the JSON string is invalid with respect to PostBulkPreBanSummaryResponse + */ + public static PostBulkPreBanSummaryResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostBulkPreBanSummaryResponse.class); + } + + /** + * Convert an instance of PostBulkPreBanSummaryResponse 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/PostCommentsByIdsResponse.java b/client/src/main/java/com/fastcomments/model/PostCommentsByIdsResponse.java new file mode 100644 index 00000000..87faecc2 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostCommentsByIdsResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPIChildCommentsResponse; +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 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 PostCommentsByIdsResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostCommentsByIdsResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostCommentsByIdsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostCommentsByIdsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterModerationAPIChildCommentsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIChildCommentsResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PostCommentsByIdsResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `ModerationAPIChildCommentsResponse` + if (value.getActualInstance() instanceof ModerationAPIChildCommentsResponse) { + JsonElement element = adapterModerationAPIChildCommentsResponse.toJsonTree((ModerationAPIChildCommentsResponse)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, ModerationAPIChildCommentsResponse"); + } + + @Override + public PostCommentsByIdsResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize ModerationAPIChildCommentsResponse + try { + // validate the JSON object to see if any exception is thrown + ModerationAPIChildCommentsResponse.validateJsonElement(jsonElement); + actualAdapter = adapterModerationAPIChildCommentsResponse; + PostCommentsByIdsResponse ret = new PostCommentsByIdsResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIChildCommentsResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'ModerationAPIChildCommentsResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + PostCommentsByIdsResponse ret = new PostCommentsByIdsResponse(); + 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 PostCommentsByIdsResponse: 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 PostCommentsByIdsResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostCommentsByIdsResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ModerationAPIChildCommentsResponse", ModerationAPIChildCommentsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostCommentsByIdsResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, ModerationAPIChildCommentsResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof ModerationAPIChildCommentsResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPIChildCommentsResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, ModerationAPIChildCommentsResponse + * + * @return The actual instance (APIError, ModerationAPIChildCommentsResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `ModerationAPIChildCommentsResponse`. If the actual instance is not `ModerationAPIChildCommentsResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `ModerationAPIChildCommentsResponse` + * @throws ClassCastException if the instance is not `ModerationAPIChildCommentsResponse` + */ + public ModerationAPIChildCommentsResponse getModerationAPIChildCommentsResponse() throws ClassCastException { + return (ModerationAPIChildCommentsResponse)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 PostCommentsByIdsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with ModerationAPIChildCommentsResponse + try { + ModerationAPIChildCommentsResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIChildCommentsResponse 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 PostCommentsByIdsResponse with anyOf schemas: APIError, ModerationAPIChildCommentsResponse. 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 PostCommentsByIdsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostCommentsByIdsResponse + * @throws IOException if the JSON string is invalid with respect to PostCommentsByIdsResponse + */ + public static PostCommentsByIdsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostCommentsByIdsResponse.class); + } + + /** + * Convert an instance of PostCommentsByIdsResponse 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/PostFlagCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostFlagCommentResponse.java new file mode 100644 index 00000000..ebda1899 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostFlagCommentResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class PostFlagCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostFlagCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostFlagCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostFlagCommentResponse' 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, PostFlagCommentResponse 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 PostFlagCommentResponse 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; + PostFlagCommentResponse ret = new PostFlagCommentResponse(); + 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; + PostFlagCommentResponse ret = new PostFlagCommentResponse(); + 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 PostFlagCommentResponse: 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 PostFlagCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostFlagCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostFlagCommentResponse.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 PostFlagCommentResponse + */ + 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 PostFlagCommentResponse 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 PostFlagCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostFlagCommentResponse + * @throws IOException if the JSON string is invalid with respect to PostFlagCommentResponse + */ + public static PostFlagCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostFlagCommentResponse.class); + } + + /** + * Convert an instance of PostFlagCommentResponse 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/PostRemoveCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java index 1cad6175..cbe9f92f 100644 --- a/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java +++ b/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java @@ -14,6 +14,9 @@ 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.DeleteCommentResult; import com.fastcomments.model.RemoveCommentActionResponse; import com.google.gson.TypeAdapter; @@ -73,6 +76,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); final TypeAdapter adapterDeleteCommentResult = gson.getDelegateAdapter(this, TypeToken.get(DeleteCommentResult.class)); final TypeAdapter adapterRemoveCommentActionResponse = gson.getDelegateAdapter(this, TypeToken.get(RemoveCommentActionResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); return (TypeAdapter) new TypeAdapter() { @Override @@ -94,7 +98,13 @@ public void write(JsonWriter out, PostRemoveCommentResponse value) throws IOExce elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: DeleteCommentResult, RemoveCommentActionResponse"); + // 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, DeleteCommentResult, RemoveCommentActionResponse"); } @Override @@ -131,6 +141,19 @@ public PostRemoveCommentResponse read(JsonReader in) throws IOException { 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); } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + 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); + } 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())); } @@ -153,6 +176,7 @@ public PostRemoveCommentResponse(Object o) { static { schemas.put("DeleteCommentResult", DeleteCommentResult.class); schemas.put("RemoveCommentActionResponse", RemoveCommentActionResponse.class); + schemas.put("APIError", APIError.class); } @Override @@ -163,7 +187,7 @@ public Map> getSchemas() { /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * DeleteCommentResult, RemoveCommentActionResponse + * APIError, DeleteCommentResult, RemoveCommentActionResponse * * It could be an instance of the 'anyOf' schemas. */ @@ -179,14 +203,19 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be DeleteCommentResult, RemoveCommentActionResponse"); + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, DeleteCommentResult, RemoveCommentActionResponse"); } /** * Get the actual instance, which can be the following: - * DeleteCommentResult, RemoveCommentActionResponse + * APIError, DeleteCommentResult, RemoveCommentActionResponse * - * @return The actual instance (DeleteCommentResult, RemoveCommentActionResponse) + * @return The actual instance (APIError, DeleteCommentResult, RemoveCommentActionResponse) */ @SuppressWarnings("unchecked") @Override @@ -216,6 +245,17 @@ public RemoveCommentActionResponse getRemoveCommentActionResponse() throws Class return (RemoveCommentActionResponse)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 * @@ -241,7 +281,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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 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())); + // 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 PostRemoveCommentResponse with anyOf schemas: APIError, DeleteCommentResult, RemoveCommentActionResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/client/src/main/java/com/fastcomments/model/PostRestoreDeletedCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostRestoreDeletedCommentResponse.java new file mode 100644 index 00000000..ca4290df --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostRestoreDeletedCommentResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class PostRestoreDeletedCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostRestoreDeletedCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostRestoreDeletedCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostRestoreDeletedCommentResponse' 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, PostRestoreDeletedCommentResponse 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 PostRestoreDeletedCommentResponse 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; + PostRestoreDeletedCommentResponse ret = new PostRestoreDeletedCommentResponse(); + 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; + PostRestoreDeletedCommentResponse ret = new PostRestoreDeletedCommentResponse(); + 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 PostRestoreDeletedCommentResponse: 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 PostRestoreDeletedCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostRestoreDeletedCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostRestoreDeletedCommentResponse.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 PostRestoreDeletedCommentResponse + */ + 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 PostRestoreDeletedCommentResponse 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 PostRestoreDeletedCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostRestoreDeletedCommentResponse + * @throws IOException if the JSON string is invalid with respect to PostRestoreDeletedCommentResponse + */ + public static PostRestoreDeletedCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostRestoreDeletedCommentResponse.class); + } + + /** + * Convert an instance of PostRestoreDeletedCommentResponse 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/PostSetCommentApprovalStatusResponse.java b/client/src/main/java/com/fastcomments/model/PostSetCommentApprovalStatusResponse.java new file mode 100644 index 00000000..13e5c707 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostSetCommentApprovalStatusResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.SetCommentApprovedResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 PostSetCommentApprovalStatusResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostSetCommentApprovalStatusResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostSetCommentApprovalStatusResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostSetCommentApprovalStatusResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterSetCommentApprovedResponse = gson.getDelegateAdapter(this, TypeToken.get(SetCommentApprovedResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PostSetCommentApprovalStatusResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `SetCommentApprovedResponse` + if (value.getActualInstance() instanceof SetCommentApprovedResponse) { + JsonElement element = adapterSetCommentApprovedResponse.toJsonTree((SetCommentApprovedResponse)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, SetCommentApprovedResponse"); + } + + @Override + public PostSetCommentApprovalStatusResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize SetCommentApprovedResponse + try { + // validate the JSON object to see if any exception is thrown + SetCommentApprovedResponse.validateJsonElement(jsonElement); + actualAdapter = adapterSetCommentApprovedResponse; + PostSetCommentApprovalStatusResponse ret = new PostSetCommentApprovalStatusResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetCommentApprovedResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'SetCommentApprovedResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + PostSetCommentApprovalStatusResponse ret = new PostSetCommentApprovalStatusResponse(); + 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 PostSetCommentApprovalStatusResponse: 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 PostSetCommentApprovalStatusResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostSetCommentApprovalStatusResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("SetCommentApprovedResponse", SetCommentApprovedResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostSetCommentApprovalStatusResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, SetCommentApprovedResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof SetCommentApprovedResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, SetCommentApprovedResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, SetCommentApprovedResponse + * + * @return The actual instance (APIError, SetCommentApprovedResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `SetCommentApprovedResponse`. If the actual instance is not `SetCommentApprovedResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SetCommentApprovedResponse` + * @throws ClassCastException if the instance is not `SetCommentApprovedResponse` + */ + public SetCommentApprovedResponse getSetCommentApprovedResponse() throws ClassCastException { + return (SetCommentApprovedResponse)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 PostSetCommentApprovalStatusResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with SetCommentApprovedResponse + try { + SetCommentApprovedResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetCommentApprovedResponse 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 PostSetCommentApprovalStatusResponse with anyOf schemas: APIError, SetCommentApprovedResponse. 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 PostSetCommentApprovalStatusResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostSetCommentApprovalStatusResponse + * @throws IOException if the JSON string is invalid with respect to PostSetCommentApprovalStatusResponse + */ + public static PostSetCommentApprovalStatusResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostSetCommentApprovalStatusResponse.class); + } + + /** + * Convert an instance of PostSetCommentApprovalStatusResponse 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/PostSetCommentReviewStatusResponse.java b/client/src/main/java/com/fastcomments/model/PostSetCommentReviewStatusResponse.java new file mode 100644 index 00000000..f9479a6c --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostSetCommentReviewStatusResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class PostSetCommentReviewStatusResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostSetCommentReviewStatusResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostSetCommentReviewStatusResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostSetCommentReviewStatusResponse' 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, PostSetCommentReviewStatusResponse 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 PostSetCommentReviewStatusResponse 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; + PostSetCommentReviewStatusResponse ret = new PostSetCommentReviewStatusResponse(); + 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; + PostSetCommentReviewStatusResponse ret = new PostSetCommentReviewStatusResponse(); + 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 PostSetCommentReviewStatusResponse: 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 PostSetCommentReviewStatusResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostSetCommentReviewStatusResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostSetCommentReviewStatusResponse.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 PostSetCommentReviewStatusResponse + */ + 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 PostSetCommentReviewStatusResponse 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 PostSetCommentReviewStatusResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostSetCommentReviewStatusResponse + * @throws IOException if the JSON string is invalid with respect to PostSetCommentReviewStatusResponse + */ + public static PostSetCommentReviewStatusResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostSetCommentReviewStatusResponse.class); + } + + /** + * Convert an instance of PostSetCommentReviewStatusResponse 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/PostSetCommentSpamStatusResponse.java b/client/src/main/java/com/fastcomments/model/PostSetCommentSpamStatusResponse.java new file mode 100644 index 00000000..d1b59355 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostSetCommentSpamStatusResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class PostSetCommentSpamStatusResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostSetCommentSpamStatusResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostSetCommentSpamStatusResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostSetCommentSpamStatusResponse' 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, PostSetCommentSpamStatusResponse 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 PostSetCommentSpamStatusResponse 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; + PostSetCommentSpamStatusResponse ret = new PostSetCommentSpamStatusResponse(); + 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; + PostSetCommentSpamStatusResponse ret = new PostSetCommentSpamStatusResponse(); + 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 PostSetCommentSpamStatusResponse: 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 PostSetCommentSpamStatusResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostSetCommentSpamStatusResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostSetCommentSpamStatusResponse.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 PostSetCommentSpamStatusResponse + */ + 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 PostSetCommentSpamStatusResponse 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 PostSetCommentSpamStatusResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostSetCommentSpamStatusResponse + * @throws IOException if the JSON string is invalid with respect to PostSetCommentSpamStatusResponse + */ + public static PostSetCommentSpamStatusResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostSetCommentSpamStatusResponse.class); + } + + /** + * Convert an instance of PostSetCommentSpamStatusResponse 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/PostSetCommentTextResponse.java b/client/src/main/java/com/fastcomments/model/PostSetCommentTextResponse.java new file mode 100644 index 00000000..f2134279 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostSetCommentTextResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.SetCommentTextResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 PostSetCommentTextResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostSetCommentTextResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostSetCommentTextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostSetCommentTextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterSetCommentTextResponse = gson.getDelegateAdapter(this, TypeToken.get(SetCommentTextResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PostSetCommentTextResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `SetCommentTextResponse` + if (value.getActualInstance() instanceof SetCommentTextResponse) { + JsonElement element = adapterSetCommentTextResponse.toJsonTree((SetCommentTextResponse)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, SetCommentTextResponse"); + } + + @Override + public PostSetCommentTextResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize SetCommentTextResponse + try { + // validate the JSON object to see if any exception is thrown + SetCommentTextResponse.validateJsonElement(jsonElement); + actualAdapter = adapterSetCommentTextResponse; + PostSetCommentTextResponse ret = new PostSetCommentTextResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetCommentTextResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'SetCommentTextResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + PostSetCommentTextResponse ret = new PostSetCommentTextResponse(); + 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 PostSetCommentTextResponse: 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 PostSetCommentTextResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostSetCommentTextResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("SetCommentTextResponse", SetCommentTextResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostSetCommentTextResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, SetCommentTextResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof SetCommentTextResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, SetCommentTextResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, SetCommentTextResponse + * + * @return The actual instance (APIError, SetCommentTextResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `SetCommentTextResponse`. If the actual instance is not `SetCommentTextResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SetCommentTextResponse` + * @throws ClassCastException if the instance is not `SetCommentTextResponse` + */ + public SetCommentTextResponse getSetCommentTextResponse() throws ClassCastException { + return (SetCommentTextResponse)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 PostSetCommentTextResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with SetCommentTextResponse + try { + SetCommentTextResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetCommentTextResponse 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 PostSetCommentTextResponse with anyOf schemas: APIError, SetCommentTextResponse. 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 PostSetCommentTextResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostSetCommentTextResponse + * @throws IOException if the JSON string is invalid with respect to PostSetCommentTextResponse + */ + public static PostSetCommentTextResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostSetCommentTextResponse.class); + } + + /** + * Convert an instance of PostSetCommentTextResponse 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/PostUnFlagCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostUnFlagCommentResponse.java new file mode 100644 index 00000000..e3759173 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostUnFlagCommentResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class PostUnFlagCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostUnFlagCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostUnFlagCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostUnFlagCommentResponse' 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, PostUnFlagCommentResponse 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 PostUnFlagCommentResponse 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; + PostUnFlagCommentResponse ret = new PostUnFlagCommentResponse(); + 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; + PostUnFlagCommentResponse ret = new PostUnFlagCommentResponse(); + 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 PostUnFlagCommentResponse: 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 PostUnFlagCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostUnFlagCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostUnFlagCommentResponse.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 PostUnFlagCommentResponse + */ + 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 PostUnFlagCommentResponse 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 PostUnFlagCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostUnFlagCommentResponse + * @throws IOException if the JSON string is invalid with respect to PostUnFlagCommentResponse + */ + public static PostUnFlagCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostUnFlagCommentResponse.class); + } + + /** + * Convert an instance of PostUnFlagCommentResponse 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/PostVoteResponse.java b/client/src/main/java/com/fastcomments/model/PostVoteResponse.java new file mode 100644 index 00000000..5b6bade7 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PostVoteResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class PostVoteResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostVoteResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PostVoteResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostVoteResponse' 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, PostVoteResponse 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 PostVoteResponse 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; + PostVoteResponse ret = new PostVoteResponse(); + 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; + PostVoteResponse ret = new PostVoteResponse(); + 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 PostVoteResponse: 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 PostVoteResponse() { + super("anyOf", Boolean.FALSE); + } + + public PostVoteResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("VoteResponse", VoteResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PostVoteResponse.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 PostVoteResponse + */ + 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 PostVoteResponse 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 PostVoteResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PostVoteResponse + * @throws IOException if the JSON string is invalid with respect to PostVoteResponse + */ + public static PostVoteResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostVoteResponse.class); + } + + /** + * Convert an instance of PostVoteResponse 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/PutAwardBadgeResponse.java b/client/src/main/java/com/fastcomments/model/PutAwardBadgeResponse.java new file mode 100644 index 00000000..fe9f7e3a --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PutAwardBadgeResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.AwardUserBadgeResponse; +import com.fastcomments.model.CommentUserBadgeInfo; +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.23.0-SNAPSHOT") +public class PutAwardBadgeResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PutAwardBadgeResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PutAwardBadgeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PutAwardBadgeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterAwardUserBadgeResponse = gson.getDelegateAdapter(this, TypeToken.get(AwardUserBadgeResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PutAwardBadgeResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `AwardUserBadgeResponse` + if (value.getActualInstance() instanceof AwardUserBadgeResponse) { + JsonElement element = adapterAwardUserBadgeResponse.toJsonTree((AwardUserBadgeResponse)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, AwardUserBadgeResponse"); + } + + @Override + public PutAwardBadgeResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize AwardUserBadgeResponse + try { + // validate the JSON object to see if any exception is thrown + AwardUserBadgeResponse.validateJsonElement(jsonElement); + actualAdapter = adapterAwardUserBadgeResponse; + PutAwardBadgeResponse ret = new PutAwardBadgeResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AwardUserBadgeResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AwardUserBadgeResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + PutAwardBadgeResponse ret = new PutAwardBadgeResponse(); + 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 PutAwardBadgeResponse: 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 PutAwardBadgeResponse() { + super("anyOf", Boolean.FALSE); + } + + public PutAwardBadgeResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AwardUserBadgeResponse", AwardUserBadgeResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PutAwardBadgeResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, AwardUserBadgeResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof AwardUserBadgeResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, AwardUserBadgeResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, AwardUserBadgeResponse + * + * @return The actual instance (APIError, AwardUserBadgeResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AwardUserBadgeResponse`. If the actual instance is not `AwardUserBadgeResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AwardUserBadgeResponse` + * @throws ClassCastException if the instance is not `AwardUserBadgeResponse` + */ + public AwardUserBadgeResponse getAwardUserBadgeResponse() throws ClassCastException { + return (AwardUserBadgeResponse)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 PutAwardBadgeResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with AwardUserBadgeResponse + try { + AwardUserBadgeResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AwardUserBadgeResponse 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 PutAwardBadgeResponse with anyOf schemas: APIError, AwardUserBadgeResponse. 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 PutAwardBadgeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PutAwardBadgeResponse + * @throws IOException if the JSON string is invalid with respect to PutAwardBadgeResponse + */ + public static PutAwardBadgeResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PutAwardBadgeResponse.class); + } + + /** + * Convert an instance of PutAwardBadgeResponse 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/PutCloseThreadResponse.java b/client/src/main/java/com/fastcomments/model/PutCloseThreadResponse.java new file mode 100644 index 00000000..e318113f --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PutCloseThreadResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class PutCloseThreadResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PutCloseThreadResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PutCloseThreadResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PutCloseThreadResponse' 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, PutCloseThreadResponse 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 PutCloseThreadResponse 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; + PutCloseThreadResponse ret = new PutCloseThreadResponse(); + 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; + PutCloseThreadResponse ret = new PutCloseThreadResponse(); + 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 PutCloseThreadResponse: 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 PutCloseThreadResponse() { + super("anyOf", Boolean.FALSE); + } + + public PutCloseThreadResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PutCloseThreadResponse.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 PutCloseThreadResponse + */ + 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 PutCloseThreadResponse 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 PutCloseThreadResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PutCloseThreadResponse + * @throws IOException if the JSON string is invalid with respect to PutCloseThreadResponse + */ + public static PutCloseThreadResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PutCloseThreadResponse.class); + } + + /** + * Convert an instance of PutCloseThreadResponse 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/PutRemoveBadgeResponse.java b/client/src/main/java/com/fastcomments/model/PutRemoveBadgeResponse.java new file mode 100644 index 00000000..bde63279 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PutRemoveBadgeResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CommentUserBadgeInfo; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.RemoveUserBadgeResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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.23.0-SNAPSHOT") +public class PutRemoveBadgeResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PutRemoveBadgeResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PutRemoveBadgeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PutRemoveBadgeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterRemoveUserBadgeResponse = gson.getDelegateAdapter(this, TypeToken.get(RemoveUserBadgeResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PutRemoveBadgeResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `RemoveUserBadgeResponse` + if (value.getActualInstance() instanceof RemoveUserBadgeResponse) { + JsonElement element = adapterRemoveUserBadgeResponse.toJsonTree((RemoveUserBadgeResponse)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, RemoveUserBadgeResponse"); + } + + @Override + public PutRemoveBadgeResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize RemoveUserBadgeResponse + try { + // validate the JSON object to see if any exception is thrown + RemoveUserBadgeResponse.validateJsonElement(jsonElement); + actualAdapter = adapterRemoveUserBadgeResponse; + PutRemoveBadgeResponse ret = new PutRemoveBadgeResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for RemoveUserBadgeResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'RemoveUserBadgeResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + PutRemoveBadgeResponse ret = new PutRemoveBadgeResponse(); + 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 PutRemoveBadgeResponse: 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 PutRemoveBadgeResponse() { + super("anyOf", Boolean.FALSE); + } + + public PutRemoveBadgeResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("RemoveUserBadgeResponse", RemoveUserBadgeResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PutRemoveBadgeResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, RemoveUserBadgeResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof RemoveUserBadgeResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, RemoveUserBadgeResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, RemoveUserBadgeResponse + * + * @return The actual instance (APIError, RemoveUserBadgeResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `RemoveUserBadgeResponse`. If the actual instance is not `RemoveUserBadgeResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `RemoveUserBadgeResponse` + * @throws ClassCastException if the instance is not `RemoveUserBadgeResponse` + */ + public RemoveUserBadgeResponse getRemoveUserBadgeResponse() throws ClassCastException { + return (RemoveUserBadgeResponse)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 PutRemoveBadgeResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with RemoveUserBadgeResponse + try { + RemoveUserBadgeResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for RemoveUserBadgeResponse 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 PutRemoveBadgeResponse with anyOf schemas: APIError, RemoveUserBadgeResponse. 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 PutRemoveBadgeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PutRemoveBadgeResponse + * @throws IOException if the JSON string is invalid with respect to PutRemoveBadgeResponse + */ + public static PutRemoveBadgeResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PutRemoveBadgeResponse.class); + } + + /** + * Convert an instance of PutRemoveBadgeResponse 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/PutReopenThreadResponse.java b/client/src/main/java/com/fastcomments/model/PutReopenThreadResponse.java new file mode 100644 index 00000000..bf2cd277 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/PutReopenThreadResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class PutReopenThreadResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PutReopenThreadResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PutReopenThreadResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PutReopenThreadResponse' 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, PutReopenThreadResponse 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 PutReopenThreadResponse 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; + PutReopenThreadResponse ret = new PutReopenThreadResponse(); + 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; + PutReopenThreadResponse ret = new PutReopenThreadResponse(); + 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 PutReopenThreadResponse: 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 PutReopenThreadResponse() { + super("anyOf", Boolean.FALSE); + } + + public PutReopenThreadResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return PutReopenThreadResponse.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 PutReopenThreadResponse + */ + 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 PutReopenThreadResponse 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 PutReopenThreadResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of PutReopenThreadResponse + * @throws IOException if the JSON string is invalid with respect to PutReopenThreadResponse + */ + public static PutReopenThreadResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PutReopenThreadResponse.class); + } + + /** + * Convert an instance of PutReopenThreadResponse 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/ReactFeedPostPublicResponse.java b/client/src/main/java/com/fastcomments/model/ReactFeedPostPublicResponse.java new file mode 100644 index 00000000..a6130811 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ReactFeedPostPublicResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class ReactFeedPostPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(ReactFeedPostPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ReactFeedPostPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReactFeedPostPublicResponse' 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, ReactFeedPostPublicResponse 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 ReactFeedPostPublicResponse 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; + ReactFeedPostPublicResponse ret = new ReactFeedPostPublicResponse(); + 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; + ReactFeedPostPublicResponse ret = new ReactFeedPostPublicResponse(); + 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 ReactFeedPostPublicResponse: 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 ReactFeedPostPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public ReactFeedPostPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ReactFeedPostResponse", ReactFeedPostResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return ReactFeedPostPublicResponse.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 ReactFeedPostPublicResponse + */ + 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 ReactFeedPostPublicResponse 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 ReactFeedPostPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ReactFeedPostPublicResponse + * @throws IOException if the JSON string is invalid with respect to ReactFeedPostPublicResponse + */ + public static ReactFeedPostPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReactFeedPostPublicResponse.class); + } + + /** + * Convert an instance of ReactFeedPostPublicResponse 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/RenderEmailTemplateResponse1.java b/client/src/main/java/com/fastcomments/model/RenderEmailTemplateResponse1.java new file mode 100644 index 00000000..2d108dbd --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/RenderEmailTemplateResponse1.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class RenderEmailTemplateResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(RenderEmailTemplateResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RenderEmailTemplateResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RenderEmailTemplateResponse1' 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, RenderEmailTemplateResponse1 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 RenderEmailTemplateResponse1 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; + RenderEmailTemplateResponse1 ret = new RenderEmailTemplateResponse1(); + 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; + RenderEmailTemplateResponse1 ret = new RenderEmailTemplateResponse1(); + 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 RenderEmailTemplateResponse1: 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 RenderEmailTemplateResponse1() { + super("anyOf", Boolean.FALSE); + } + + public RenderEmailTemplateResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("RenderEmailTemplateResponse", RenderEmailTemplateResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return RenderEmailTemplateResponse1.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 RenderEmailTemplateResponse1 + */ + 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 RenderEmailTemplateResponse1 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 RenderEmailTemplateResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of RenderEmailTemplateResponse1 + * @throws IOException if the JSON string is invalid with respect to RenderEmailTemplateResponse1 + */ + public static RenderEmailTemplateResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RenderEmailTemplateResponse1.class); + } + + /** + * Convert an instance of RenderEmailTemplateResponse1 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/ReplaceTenantPackageResponse.java b/client/src/main/java/com/fastcomments/model/ReplaceTenantPackageResponse.java new file mode 100644 index 00000000..7a698045 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ReplaceTenantPackageResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class ReplaceTenantPackageResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(ReplaceTenantPackageResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ReplaceTenantPackageResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReplaceTenantPackageResponse' 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, ReplaceTenantPackageResponse 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 ReplaceTenantPackageResponse 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; + ReplaceTenantPackageResponse ret = new ReplaceTenantPackageResponse(); + 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; + ReplaceTenantPackageResponse ret = new ReplaceTenantPackageResponse(); + 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 ReplaceTenantPackageResponse: 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 ReplaceTenantPackageResponse() { + super("anyOf", Boolean.FALSE); + } + + public ReplaceTenantPackageResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return ReplaceTenantPackageResponse.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 ReplaceTenantPackageResponse + */ + 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 ReplaceTenantPackageResponse 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 ReplaceTenantPackageResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ReplaceTenantPackageResponse + * @throws IOException if the JSON string is invalid with respect to ReplaceTenantPackageResponse + */ + public static ReplaceTenantPackageResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReplaceTenantPackageResponse.class); + } + + /** + * Convert an instance of ReplaceTenantPackageResponse 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/ReplaceTenantUserResponse.java b/client/src/main/java/com/fastcomments/model/ReplaceTenantUserResponse.java new file mode 100644 index 00000000..92a56a43 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ReplaceTenantUserResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class ReplaceTenantUserResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(ReplaceTenantUserResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ReplaceTenantUserResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReplaceTenantUserResponse' 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, ReplaceTenantUserResponse 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 ReplaceTenantUserResponse 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; + ReplaceTenantUserResponse ret = new ReplaceTenantUserResponse(); + 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; + ReplaceTenantUserResponse ret = new ReplaceTenantUserResponse(); + 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 ReplaceTenantUserResponse: 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 ReplaceTenantUserResponse() { + super("anyOf", Boolean.FALSE); + } + + public ReplaceTenantUserResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return ReplaceTenantUserResponse.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 ReplaceTenantUserResponse + */ + 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 ReplaceTenantUserResponse 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 ReplaceTenantUserResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ReplaceTenantUserResponse + * @throws IOException if the JSON string is invalid with respect to ReplaceTenantUserResponse + */ + public static ReplaceTenantUserResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReplaceTenantUserResponse.class); + } + + /** + * Convert an instance of ReplaceTenantUserResponse 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/ResetUserNotificationCountResponse.java b/client/src/main/java/com/fastcomments/model/ResetUserNotificationCountResponse.java new file mode 100644 index 00000000..a9bfec98 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ResetUserNotificationCountResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class ResetUserNotificationCountResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(ResetUserNotificationCountResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ResetUserNotificationCountResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResetUserNotificationCountResponse' 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, ResetUserNotificationCountResponse 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 ResetUserNotificationCountResponse 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; + ResetUserNotificationCountResponse ret = new ResetUserNotificationCountResponse(); + 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; + ResetUserNotificationCountResponse ret = new ResetUserNotificationCountResponse(); + 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 ResetUserNotificationCountResponse: 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 ResetUserNotificationCountResponse() { + super("anyOf", Boolean.FALSE); + } + + public ResetUserNotificationCountResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ResetUserNotificationsResponse", ResetUserNotificationsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return ResetUserNotificationCountResponse.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 ResetUserNotificationCountResponse + */ + 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 ResetUserNotificationCountResponse 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 ResetUserNotificationCountResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResetUserNotificationCountResponse + * @throws IOException if the JSON string is invalid with respect to ResetUserNotificationCountResponse + */ + public static ResetUserNotificationCountResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResetUserNotificationCountResponse.class); + } + + /** + * Convert an instance of ResetUserNotificationCountResponse 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/ResetUserNotificationsResponse1.java b/client/src/main/java/com/fastcomments/model/ResetUserNotificationsResponse1.java new file mode 100644 index 00000000..637bfc5c --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/ResetUserNotificationsResponse1.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class ResetUserNotificationsResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(ResetUserNotificationsResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ResetUserNotificationsResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResetUserNotificationsResponse1' 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, ResetUserNotificationsResponse1 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 ResetUserNotificationsResponse1 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; + ResetUserNotificationsResponse1 ret = new ResetUserNotificationsResponse1(); + 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; + ResetUserNotificationsResponse1 ret = new ResetUserNotificationsResponse1(); + 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 ResetUserNotificationsResponse1: 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 ResetUserNotificationsResponse1() { + super("anyOf", Boolean.FALSE); + } + + public ResetUserNotificationsResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ResetUserNotificationsResponse", ResetUserNotificationsResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return ResetUserNotificationsResponse1.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 ResetUserNotificationsResponse1 + */ + 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 ResetUserNotificationsResponse1 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 ResetUserNotificationsResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResetUserNotificationsResponse1 + * @throws IOException if the JSON string is invalid with respect to ResetUserNotificationsResponse1 + */ + public static ResetUserNotificationsResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResetUserNotificationsResponse1.class); + } + + /** + * Convert an instance of ResetUserNotificationsResponse1 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/SaveCommentResponse.java b/client/src/main/java/com/fastcomments/model/SaveCommentResponse.java new file mode 100644 index 00000000..f39f7425 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/SaveCommentResponse.java @@ -0,0 +1,273 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.APISaveCommentResponse; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +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.23.0-SNAPSHOT") +public class SaveCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SaveCommentResponse.class.getName()); + + 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 + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.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() { + @Override + public void write(JsonWriter out, SaveCommentResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // 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; + } + // 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, APISaveCommentResponse"); + } + + @Override + public SaveCommentResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize APISaveCommentResponse + try { + // validate the JSON object to see if any exception is thrown + APISaveCommentResponse.validateJsonElement(jsonElement); + actualAdapter = adapterAPISaveCommentResponse; + SaveCommentResponse ret = new SaveCommentResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + 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; + SaveCommentResponse ret = new SaveCommentResponse(); + 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 SaveCommentResponse: 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 SaveCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public SaveCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APISaveCommentResponse", APISaveCommentResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return SaveCommentResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, APISaveCommentResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof APISaveCommentResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, APISaveCommentResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, APISaveCommentResponse + * + * @return The actual instance (APIError, APISaveCommentResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `APISaveCommentResponse`. If the actual instance is not `APISaveCommentResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `APISaveCommentResponse` + * @throws ClassCastException if the instance is not `APISaveCommentResponse` + */ + public APISaveCommentResponse getAPISaveCommentResponse() throws ClassCastException { + return (APISaveCommentResponse)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 SaveCommentResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with APISaveCommentResponse + try { + APISaveCommentResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + 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 + 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 SaveCommentResponse 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 SaveCommentResponse 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 + */ + public static SaveCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SaveCommentResponse.class); + } + + /** + * Convert an instance of SaveCommentResponse 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/SearchUsersResponse1.java b/client/src/main/java/com/fastcomments/model/SearchUsersResponse1.java new file mode 100644 index 00000000..06570492 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/SearchUsersResponse1.java @@ -0,0 +1,273 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.SearchUsersResult; +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 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 SearchUsersResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SearchUsersResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SearchUsersResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SearchUsersResponse1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterSearchUsersResult = gson.getDelegateAdapter(this, TypeToken.get(SearchUsersResult.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SearchUsersResponse1 value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `SearchUsersResult` + if (value.getActualInstance() instanceof SearchUsersResult) { + JsonElement element = adapterSearchUsersResult.toJsonTree((SearchUsersResult)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, SearchUsersResult"); + } + + @Override + public SearchUsersResponse1 read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize SearchUsersResult + try { + // validate the JSON object to see if any exception is thrown + SearchUsersResult.validateJsonElement(jsonElement); + actualAdapter = adapterSearchUsersResult; + SearchUsersResponse1 ret = new SearchUsersResponse1(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SearchUsersResult failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'SearchUsersResult'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + SearchUsersResponse1 ret = new SearchUsersResponse1(); + 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 SearchUsersResponse1: 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 SearchUsersResponse1() { + super("anyOf", Boolean.FALSE); + } + + public SearchUsersResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("SearchUsersResult", SearchUsersResult.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return SearchUsersResponse1.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, SearchUsersResult + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof SearchUsersResult) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, SearchUsersResult"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, SearchUsersResult + * + * @return The actual instance (APIError, SearchUsersResult) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `SearchUsersResult`. If the actual instance is not `SearchUsersResult`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SearchUsersResult` + * @throws ClassCastException if the instance is not `SearchUsersResult` + */ + public SearchUsersResult getSearchUsersResult() throws ClassCastException { + return (SearchUsersResult)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 SearchUsersResponse1 + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with SearchUsersResult + try { + SearchUsersResult.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SearchUsersResult 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 SearchUsersResponse1 with anyOf schemas: APIError, SearchUsersResult. 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 SearchUsersResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of SearchUsersResponse1 + * @throws IOException if the JSON string is invalid with respect to SearchUsersResponse1 + */ + public static SearchUsersResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SearchUsersResponse1.class); + } + + /** + * Convert an instance of SearchUsersResponse1 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/SendInviteResponse.java b/client/src/main/java/com/fastcomments/model/SendInviteResponse.java new file mode 100644 index 00000000..588cdeba --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/SendInviteResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class SendInviteResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SendInviteResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SendInviteResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SendInviteResponse' 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, SendInviteResponse 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 SendInviteResponse 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; + SendInviteResponse ret = new SendInviteResponse(); + 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; + SendInviteResponse ret = new SendInviteResponse(); + 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 SendInviteResponse: 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 SendInviteResponse() { + super("anyOf", Boolean.FALSE); + } + + public SendInviteResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return SendInviteResponse.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 SendInviteResponse + */ + 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 SendInviteResponse 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 SendInviteResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of SendInviteResponse + * @throws IOException if the JSON string is invalid with respect to SendInviteResponse + */ + public static SendInviteResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SendInviteResponse.class); + } + + /** + * Convert an instance of SendInviteResponse 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/SendLoginLinkResponse.java b/client/src/main/java/com/fastcomments/model/SendLoginLinkResponse.java new file mode 100644 index 00000000..e063ee5f --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/SendLoginLinkResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class SendLoginLinkResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SendLoginLinkResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SendLoginLinkResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SendLoginLinkResponse' 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, SendLoginLinkResponse 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 SendLoginLinkResponse 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; + SendLoginLinkResponse ret = new SendLoginLinkResponse(); + 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; + SendLoginLinkResponse ret = new SendLoginLinkResponse(); + 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 SendLoginLinkResponse: 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 SendLoginLinkResponse() { + super("anyOf", Boolean.FALSE); + } + + public SendLoginLinkResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return SendLoginLinkResponse.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 SendLoginLinkResponse + */ + 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 SendLoginLinkResponse 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 SendLoginLinkResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of SendLoginLinkResponse + * @throws IOException if the JSON string is invalid with respect to SendLoginLinkResponse + */ + public static SendLoginLinkResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SendLoginLinkResponse.class); + } + + /** + * Convert an instance of SendLoginLinkResponse 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/SetCommentTextResponse1.java b/client/src/main/java/com/fastcomments/model/SetCommentTextResponse1.java new file mode 100644 index 00000000..c17c7cbb --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/SetCommentTextResponse1.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class SetCommentTextResponse1 extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SetCommentTextResponse1.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SetCommentTextResponse1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetCommentTextResponse1' 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, SetCommentTextResponse1 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 SetCommentTextResponse1 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; + SetCommentTextResponse1 ret = new SetCommentTextResponse1(); + 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; + SetCommentTextResponse1 ret = new SetCommentTextResponse1(); + 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 SetCommentTextResponse1: 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 SetCommentTextResponse1() { + super("anyOf", Boolean.FALSE); + } + + public SetCommentTextResponse1(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("PublicAPISetCommentTextResponse", PublicAPISetCommentTextResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return SetCommentTextResponse1.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 SetCommentTextResponse1 + */ + 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 SetCommentTextResponse1 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 SetCommentTextResponse1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of SetCommentTextResponse1 + * @throws IOException if the JSON string is invalid with respect to SetCommentTextResponse1 + */ + public static SetCommentTextResponse1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SetCommentTextResponse1.class); + } + + /** + * Convert an instance of SetCommentTextResponse1 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/SetTrustFactorResponse.java b/client/src/main/java/com/fastcomments/model/SetTrustFactorResponse.java new file mode 100644 index 00000000..8c8954fc --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/SetTrustFactorResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.SetUserTrustFactorResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 SetTrustFactorResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SetTrustFactorResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SetTrustFactorResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetTrustFactorResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterSetUserTrustFactorResponse = gson.getDelegateAdapter(this, TypeToken.get(SetUserTrustFactorResponse.class)); + final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetTrustFactorResponse value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `SetUserTrustFactorResponse` + if (value.getActualInstance() instanceof SetUserTrustFactorResponse) { + JsonElement element = adapterSetUserTrustFactorResponse.toJsonTree((SetUserTrustFactorResponse)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, SetUserTrustFactorResponse"); + } + + @Override + public SetTrustFactorResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize SetUserTrustFactorResponse + try { + // validate the JSON object to see if any exception is thrown + SetUserTrustFactorResponse.validateJsonElement(jsonElement); + actualAdapter = adapterSetUserTrustFactorResponse; + SetTrustFactorResponse ret = new SetTrustFactorResponse(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetUserTrustFactorResponse failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'SetUserTrustFactorResponse'", e); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + SetTrustFactorResponse ret = new SetTrustFactorResponse(); + 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 SetTrustFactorResponse: 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 SetTrustFactorResponse() { + super("anyOf", Boolean.FALSE); + } + + public SetTrustFactorResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("SetUserTrustFactorResponse", SetUserTrustFactorResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return SetTrustFactorResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIError, SetUserTrustFactorResponse + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof SetUserTrustFactorResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, SetUserTrustFactorResponse"); + } + + /** + * Get the actual instance, which can be the following: + * APIError, SetUserTrustFactorResponse + * + * @return The actual instance (APIError, SetUserTrustFactorResponse) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `SetUserTrustFactorResponse`. If the actual instance is not `SetUserTrustFactorResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `SetUserTrustFactorResponse` + * @throws ClassCastException if the instance is not `SetUserTrustFactorResponse` + */ + public SetUserTrustFactorResponse getSetUserTrustFactorResponse() throws ClassCastException { + return (SetUserTrustFactorResponse)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 SetTrustFactorResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with SetUserTrustFactorResponse + try { + SetUserTrustFactorResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetUserTrustFactorResponse 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 SetTrustFactorResponse with anyOf schemas: APIError, SetUserTrustFactorResponse. 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 SetTrustFactorResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of SetTrustFactorResponse + * @throws IOException if the JSON string is invalid with respect to SetTrustFactorResponse + */ + public static SetTrustFactorResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SetTrustFactorResponse.class); + } + + /** + * Convert an instance of SetTrustFactorResponse 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/UnBlockCommentPublicResponse.java b/client/src/main/java/com/fastcomments/model/UnBlockCommentPublicResponse.java new file mode 100644 index 00000000..c9116877 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UnBlockCommentPublicResponse.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UnBlockCommentPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UnBlockCommentPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UnBlockCommentPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UnBlockCommentPublicResponse' 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, UnBlockCommentPublicResponse 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 UnBlockCommentPublicResponse 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; + UnBlockCommentPublicResponse ret = new UnBlockCommentPublicResponse(); + 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; + UnBlockCommentPublicResponse ret = new UnBlockCommentPublicResponse(); + 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 UnBlockCommentPublicResponse: 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 UnBlockCommentPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public UnBlockCommentPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("UnblockSuccess", UnblockSuccess.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UnBlockCommentPublicResponse.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 UnBlockCommentPublicResponse + */ + 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 UnBlockCommentPublicResponse 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 UnBlockCommentPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UnBlockCommentPublicResponse + * @throws IOException if the JSON string is invalid with respect to UnBlockCommentPublicResponse + */ + public static UnBlockCommentPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UnBlockCommentPublicResponse.class); + } + + /** + * Convert an instance of UnBlockCommentPublicResponse 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/UnBlockUserFromCommentResponse.java b/client/src/main/java/com/fastcomments/model/UnBlockUserFromCommentResponse.java new file mode 100644 index 00000000..8d89033c --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UnBlockUserFromCommentResponse.java @@ -0,0 +1,271 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UnBlockUserFromCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UnBlockUserFromCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UnBlockUserFromCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UnBlockUserFromCommentResponse' 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, UnBlockUserFromCommentResponse 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 UnBlockUserFromCommentResponse 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; + UnBlockUserFromCommentResponse ret = new UnBlockUserFromCommentResponse(); + 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; + UnBlockUserFromCommentResponse ret = new UnBlockUserFromCommentResponse(); + 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 UnBlockUserFromCommentResponse: 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 UnBlockUserFromCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public UnBlockUserFromCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("UnblockSuccess", UnblockSuccess.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UnBlockUserFromCommentResponse.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 UnBlockUserFromCommentResponse + */ + 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 UnBlockUserFromCommentResponse 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 UnBlockUserFromCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UnBlockUserFromCommentResponse + * @throws IOException if the JSON string is invalid with respect to UnBlockUserFromCommentResponse + */ + public static UnBlockUserFromCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UnBlockUserFromCommentResponse.class); + } + + /** + * Convert an instance of UnBlockUserFromCommentResponse 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/UnFlagCommentResponse.java b/client/src/main/java/com/fastcomments/model/UnFlagCommentResponse.java new file mode 100644 index 00000000..18f0cb7c --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UnFlagCommentResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UnFlagCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UnFlagCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UnFlagCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UnFlagCommentResponse' 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, UnFlagCommentResponse 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 UnFlagCommentResponse 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; + UnFlagCommentResponse ret = new UnFlagCommentResponse(); + 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; + UnFlagCommentResponse ret = new UnFlagCommentResponse(); + 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 UnFlagCommentResponse: 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 UnFlagCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public UnFlagCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("FlagCommentResponse", FlagCommentResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UnFlagCommentResponse.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 UnFlagCommentResponse + */ + 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 UnFlagCommentResponse 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 UnFlagCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UnFlagCommentResponse + * @throws IOException if the JSON string is invalid with respect to UnFlagCommentResponse + */ + public static UnFlagCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UnFlagCommentResponse.class); + } + + /** + * Convert an instance of UnFlagCommentResponse 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/UnLockCommentResponse.java b/client/src/main/java/com/fastcomments/model/UnLockCommentResponse.java new file mode 100644 index 00000000..6252be4c --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UnLockCommentResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UnLockCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UnLockCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UnLockCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UnLockCommentResponse' 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, UnLockCommentResponse 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 UnLockCommentResponse 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; + UnLockCommentResponse ret = new UnLockCommentResponse(); + 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; + UnLockCommentResponse ret = new UnLockCommentResponse(); + 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 UnLockCommentResponse: 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 UnLockCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public UnLockCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIError", APIError.class); + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + } + + @Override + public Map> getSchemas() { + return UnLockCommentResponse.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 UnLockCommentResponse + */ + 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 UnLockCommentResponse 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 UnLockCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UnLockCommentResponse + * @throws IOException if the JSON string is invalid with respect to UnLockCommentResponse + */ + public static UnLockCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UnLockCommentResponse.class); + } + + /** + * Convert an instance of UnLockCommentResponse 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/UnPinCommentResponse.java b/client/src/main/java/com/fastcomments/model/UnPinCommentResponse.java new file mode 100644 index 00000000..29cbc849 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UnPinCommentResponse.java @@ -0,0 +1,272 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UnPinCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UnPinCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UnPinCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UnPinCommentResponse' 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, UnPinCommentResponse 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 UnPinCommentResponse 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; + UnPinCommentResponse ret = new UnPinCommentResponse(); + 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; + UnPinCommentResponse ret = new UnPinCommentResponse(); + 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 UnPinCommentResponse: 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 UnPinCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public UnPinCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("ChangeCommentPinStatusResponse", ChangeCommentPinStatusResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UnPinCommentResponse.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 UnPinCommentResponse + */ + 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 UnPinCommentResponse 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 UnPinCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UnPinCommentResponse + * @throws IOException if the JSON string is invalid with respect to UnPinCommentResponse + */ + public static UnPinCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UnPinCommentResponse.class); + } + + /** + * Convert an instance of UnPinCommentResponse 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/UpdateCommentResponse.java b/client/src/main/java/com/fastcomments/model/UpdateCommentResponse.java new file mode 100644 index 00000000..f597dac1 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateCommentResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UpdateCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateCommentResponse' 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, UpdateCommentResponse 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 UpdateCommentResponse 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; + UpdateCommentResponse ret = new UpdateCommentResponse(); + 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; + UpdateCommentResponse ret = new UpdateCommentResponse(); + 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 UpdateCommentResponse: 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 UpdateCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateCommentResponse.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 UpdateCommentResponse + */ + 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 UpdateCommentResponse 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 UpdateCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateCommentResponse + * @throws IOException if the JSON string is invalid with respect to UpdateCommentResponse + */ + public static UpdateCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateCommentResponse.class); + } + + /** + * Convert an instance of UpdateCommentResponse 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/UpdateEmailTemplateResponse.java b/client/src/main/java/com/fastcomments/model/UpdateEmailTemplateResponse.java new file mode 100644 index 00000000..e506fe12 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateEmailTemplateResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UpdateEmailTemplateResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateEmailTemplateResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateEmailTemplateResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateEmailTemplateResponse' 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, UpdateEmailTemplateResponse 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 UpdateEmailTemplateResponse 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; + UpdateEmailTemplateResponse ret = new UpdateEmailTemplateResponse(); + 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; + UpdateEmailTemplateResponse ret = new UpdateEmailTemplateResponse(); + 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 UpdateEmailTemplateResponse: 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 UpdateEmailTemplateResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateEmailTemplateResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateEmailTemplateResponse.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 UpdateEmailTemplateResponse + */ + 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 UpdateEmailTemplateResponse 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 UpdateEmailTemplateResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateEmailTemplateResponse + * @throws IOException if the JSON string is invalid with respect to UpdateEmailTemplateResponse + */ + public static UpdateEmailTemplateResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateEmailTemplateResponse.class); + } + + /** + * Convert an instance of UpdateEmailTemplateResponse 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/UpdateFeedPostPublicResponse.java b/client/src/main/java/com/fastcomments/model/UpdateFeedPostPublicResponse.java new file mode 100644 index 00000000..21a3321e --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateFeedPostPublicResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UpdateFeedPostPublicResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateFeedPostPublicResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateFeedPostPublicResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateFeedPostPublicResponse' 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, UpdateFeedPostPublicResponse 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 UpdateFeedPostPublicResponse 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; + UpdateFeedPostPublicResponse ret = new UpdateFeedPostPublicResponse(); + 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; + UpdateFeedPostPublicResponse ret = new UpdateFeedPostPublicResponse(); + 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 UpdateFeedPostPublicResponse: 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 UpdateFeedPostPublicResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateFeedPostPublicResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateFeedPostResponse", CreateFeedPostResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateFeedPostPublicResponse.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 UpdateFeedPostPublicResponse + */ + 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 UpdateFeedPostPublicResponse 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 UpdateFeedPostPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateFeedPostPublicResponse + * @throws IOException if the JSON string is invalid with respect to UpdateFeedPostPublicResponse + */ + public static UpdateFeedPostPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateFeedPostPublicResponse.class); + } + + /** + * Convert an instance of UpdateFeedPostPublicResponse 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/UpdateFeedPostResponse.java b/client/src/main/java/com/fastcomments/model/UpdateFeedPostResponse.java new file mode 100644 index 00000000..8e8a6195 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateFeedPostResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UpdateFeedPostResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateFeedPostResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateFeedPostResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateFeedPostResponse' 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, UpdateFeedPostResponse 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 UpdateFeedPostResponse 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; + UpdateFeedPostResponse ret = new UpdateFeedPostResponse(); + 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; + UpdateFeedPostResponse ret = new UpdateFeedPostResponse(); + 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 UpdateFeedPostResponse: 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 UpdateFeedPostResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateFeedPostResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateFeedPostResponse.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 UpdateFeedPostResponse + */ + 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 UpdateFeedPostResponse 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 UpdateFeedPostResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateFeedPostResponse + * @throws IOException if the JSON string is invalid with respect to UpdateFeedPostResponse + */ + public static UpdateFeedPostResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateFeedPostResponse.class); + } + + /** + * Convert an instance of UpdateFeedPostResponse 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/UpdateModeratorResponse.java b/client/src/main/java/com/fastcomments/model/UpdateModeratorResponse.java new file mode 100644 index 00000000..67f48b15 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateModeratorResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UpdateModeratorResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateModeratorResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateModeratorResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateModeratorResponse' 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, UpdateModeratorResponse 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 UpdateModeratorResponse 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; + UpdateModeratorResponse ret = new UpdateModeratorResponse(); + 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; + UpdateModeratorResponse ret = new UpdateModeratorResponse(); + 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 UpdateModeratorResponse: 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 UpdateModeratorResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateModeratorResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateModeratorResponse.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 UpdateModeratorResponse + */ + 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 UpdateModeratorResponse 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 UpdateModeratorResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateModeratorResponse + * @throws IOException if the JSON string is invalid with respect to UpdateModeratorResponse + */ + public static UpdateModeratorResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateModeratorResponse.class); + } + + /** + * Convert an instance of UpdateModeratorResponse 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/UpdateNotificationResponse.java b/client/src/main/java/com/fastcomments/model/UpdateNotificationResponse.java new file mode 100644 index 00000000..3eccfb70 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateNotificationResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UpdateNotificationResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateNotificationResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateNotificationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateNotificationResponse' 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, UpdateNotificationResponse 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 UpdateNotificationResponse 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; + UpdateNotificationResponse ret = new UpdateNotificationResponse(); + 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; + UpdateNotificationResponse ret = new UpdateNotificationResponse(); + 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 UpdateNotificationResponse: 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 UpdateNotificationResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateNotificationResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateNotificationResponse.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 UpdateNotificationResponse + */ + 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 UpdateNotificationResponse 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 UpdateNotificationResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateNotificationResponse + * @throws IOException if the JSON string is invalid with respect to UpdateNotificationResponse + */ + public static UpdateNotificationResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateNotificationResponse.class); + } + + /** + * Convert an instance of UpdateNotificationResponse 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/UpdateQuestionConfigResponse.java b/client/src/main/java/com/fastcomments/model/UpdateQuestionConfigResponse.java new file mode 100644 index 00000000..9ef8fbf2 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateQuestionConfigResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UpdateQuestionConfigResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateQuestionConfigResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateQuestionConfigResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateQuestionConfigResponse' 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, UpdateQuestionConfigResponse 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 UpdateQuestionConfigResponse 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; + UpdateQuestionConfigResponse ret = new UpdateQuestionConfigResponse(); + 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; + UpdateQuestionConfigResponse ret = new UpdateQuestionConfigResponse(); + 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 UpdateQuestionConfigResponse: 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 UpdateQuestionConfigResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateQuestionConfigResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateQuestionConfigResponse.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 UpdateQuestionConfigResponse + */ + 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 UpdateQuestionConfigResponse 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 UpdateQuestionConfigResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateQuestionConfigResponse + * @throws IOException if the JSON string is invalid with respect to UpdateQuestionConfigResponse + */ + public static UpdateQuestionConfigResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateQuestionConfigResponse.class); + } + + /** + * Convert an instance of UpdateQuestionConfigResponse 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/UpdateQuestionResultResponse.java b/client/src/main/java/com/fastcomments/model/UpdateQuestionResultResponse.java new file mode 100644 index 00000000..0672768a --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateQuestionResultResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UpdateQuestionResultResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateQuestionResultResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateQuestionResultResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateQuestionResultResponse' 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, UpdateQuestionResultResponse 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 UpdateQuestionResultResponse 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; + UpdateQuestionResultResponse ret = new UpdateQuestionResultResponse(); + 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; + UpdateQuestionResultResponse ret = new UpdateQuestionResultResponse(); + 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 UpdateQuestionResultResponse: 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 UpdateQuestionResultResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateQuestionResultResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateQuestionResultResponse.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 UpdateQuestionResultResponse + */ + 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 UpdateQuestionResultResponse 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 UpdateQuestionResultResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateQuestionResultResponse + * @throws IOException if the JSON string is invalid with respect to UpdateQuestionResultResponse + */ + public static UpdateQuestionResultResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateQuestionResultResponse.class); + } + + /** + * Convert an instance of UpdateQuestionResultResponse 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/UpdateTenantPackageResponse.java b/client/src/main/java/com/fastcomments/model/UpdateTenantPackageResponse.java new file mode 100644 index 00000000..116147f9 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateTenantPackageResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UpdateTenantPackageResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateTenantPackageResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateTenantPackageResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateTenantPackageResponse' 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, UpdateTenantPackageResponse 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 UpdateTenantPackageResponse 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; + UpdateTenantPackageResponse ret = new UpdateTenantPackageResponse(); + 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; + UpdateTenantPackageResponse ret = new UpdateTenantPackageResponse(); + 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 UpdateTenantPackageResponse: 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 UpdateTenantPackageResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateTenantPackageResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateTenantPackageResponse.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 UpdateTenantPackageResponse + */ + 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 UpdateTenantPackageResponse 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 UpdateTenantPackageResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateTenantPackageResponse + * @throws IOException if the JSON string is invalid with respect to UpdateTenantPackageResponse + */ + public static UpdateTenantPackageResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateTenantPackageResponse.class); + } + + /** + * Convert an instance of UpdateTenantPackageResponse 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/UpdateTenantResponse.java b/client/src/main/java/com/fastcomments/model/UpdateTenantResponse.java new file mode 100644 index 00000000..f6a7e24a --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateTenantResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UpdateTenantResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateTenantResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateTenantResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateTenantResponse' 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, UpdateTenantResponse 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 UpdateTenantResponse 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; + UpdateTenantResponse ret = new UpdateTenantResponse(); + 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; + UpdateTenantResponse ret = new UpdateTenantResponse(); + 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 UpdateTenantResponse: 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 UpdateTenantResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateTenantResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateTenantResponse.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 UpdateTenantResponse + */ + 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 UpdateTenantResponse 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 UpdateTenantResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateTenantResponse + * @throws IOException if the JSON string is invalid with respect to UpdateTenantResponse + */ + public static UpdateTenantResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateTenantResponse.class); + } + + /** + * Convert an instance of UpdateTenantResponse 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/UpdateTenantUserResponse.java b/client/src/main/java/com/fastcomments/model/UpdateTenantUserResponse.java new file mode 100644 index 00000000..52fe10c4 --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateTenantUserResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class UpdateTenantUserResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateTenantUserResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateTenantUserResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateTenantUserResponse' 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, UpdateTenantUserResponse 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 UpdateTenantUserResponse 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; + UpdateTenantUserResponse ret = new UpdateTenantUserResponse(); + 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; + UpdateTenantUserResponse ret = new UpdateTenantUserResponse(); + 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 UpdateTenantUserResponse: 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 UpdateTenantUserResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateTenantUserResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptyResponse", APIEmptyResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateTenantUserResponse.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 UpdateTenantUserResponse + */ + 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 UpdateTenantUserResponse 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 UpdateTenantUserResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateTenantUserResponse + * @throws IOException if the JSON string is invalid with respect to UpdateTenantUserResponse + */ + public static UpdateTenantUserResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateTenantUserResponse.class); + } + + /** + * Convert an instance of UpdateTenantUserResponse 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/UpdateUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/UpdateUserBadgeResponse.java new file mode 100644 index 00000000..83eb59cd --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/UpdateUserBadgeResponse.java @@ -0,0 +1,269 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.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 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 UpdateUserBadgeResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(UpdateUserBadgeResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateUserBadgeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateUserBadgeResponse' 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)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateUserBadgeResponse 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()); + 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: APIEmptySuccessResponse, APIError"); + } + + @Override + public UpdateUserBadgeResponse read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize APIEmptySuccessResponse + try { + // validate the JSON object to see if any exception is thrown + APIEmptySuccessResponse.validateJsonElement(jsonElement); + actualAdapter = adapterAPIEmptySuccessResponse; + UpdateUserBadgeResponse ret = new UpdateUserBadgeResponse(); + 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); + } + // deserialize APIError + try { + // validate the JSON object to see if any exception is thrown + APIError.validateJsonElement(jsonElement); + actualAdapter = adapterAPIError; + UpdateUserBadgeResponse ret = new UpdateUserBadgeResponse(); + 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 UpdateUserBadgeResponse: 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 UpdateUserBadgeResponse() { + super("anyOf", Boolean.FALSE); + } + + public UpdateUserBadgeResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("APIEmptySuccessResponse", APIEmptySuccessResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return UpdateUserBadgeResponse.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * APIEmptySuccessResponse, APIError + * + * It could be an instance of the 'anyOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof APIEmptySuccessResponse) { + super.setActualInstance(instance); + return; + } + + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIEmptySuccessResponse, APIError"); + } + + /** + * Get the actual instance, which can be the following: + * APIEmptySuccessResponse, APIError + * + * @return The actual instance (APIEmptySuccessResponse, APIError) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `APIEmptySuccessResponse`. If the actual instance is not `APIEmptySuccessResponse`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `APIEmptySuccessResponse` + * @throws ClassCastException if the instance is not `APIEmptySuccessResponse` + */ + public APIEmptySuccessResponse getAPIEmptySuccessResponse() throws ClassCastException { + return (APIEmptySuccessResponse)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 UpdateUserBadgeResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate anyOf schemas one by one + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with APIEmptySuccessResponse + try { + APIEmptySuccessResponse.validateJsonElement(jsonElement); + return; + } catch (Exception e) { + errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIEmptySuccessResponse 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 UpdateUserBadgeResponse 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())); + } + + /** + * Create an instance of UpdateUserBadgeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateUserBadgeResponse + * @throws IOException if the JSON string is invalid with respect to UpdateUserBadgeResponse + */ + public static UpdateUserBadgeResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateUserBadgeResponse.class); + } + + /** + * Convert an instance of UpdateUserBadgeResponse 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/UpdateUserNotificationCommentSubscriptionStatusResponse.java b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponse.java index 2508823a..eba9c6de 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponse.java +++ b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponse.java @@ -14,7 +14,9 @@ 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; @@ -74,6 +76,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { 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() { @Override @@ -95,7 +98,13 @@ public void write(JsonWriter out, UpdateUserNotificationCommentSubscriptionStatu elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: IgnoredResponse, UserNotificationWriteResponse"); + // 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"); } @Override @@ -132,6 +141,19 @@ public UpdateUserNotificationCommentSubscriptionStatusResponse read(JsonReader i 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; + UpdateUserNotificationCommentSubscriptionStatusResponse ret = new UpdateUserNotificationCommentSubscriptionStatusResponse(); + 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 UpdateUserNotificationCommentSubscriptionStatusResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } @@ -154,6 +176,7 @@ public UpdateUserNotificationCommentSubscriptionStatusResponse(Object o) { static { schemas.put("UserNotificationWriteResponse", UserNotificationWriteResponse.class); schemas.put("IgnoredResponse", IgnoredResponse.class); + schemas.put("APIError", APIError.class); } @Override @@ -164,7 +187,7 @@ public Map> getSchemas() { /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * IgnoredResponse, UserNotificationWriteResponse + * APIError, IgnoredResponse, UserNotificationWriteResponse * * It could be an instance of the 'anyOf' schemas. */ @@ -180,14 +203,19 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be IgnoredResponse, UserNotificationWriteResponse"); + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, IgnoredResponse, UserNotificationWriteResponse"); } /** * Get the actual instance, which can be the following: - * IgnoredResponse, UserNotificationWriteResponse + * APIError, IgnoredResponse, UserNotificationWriteResponse * - * @return The actual instance (IgnoredResponse, UserNotificationWriteResponse) + * @return The actual instance (APIError, IgnoredResponse, UserNotificationWriteResponse) */ @SuppressWarnings("unchecked") @Override @@ -217,6 +245,17 @@ 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 * @@ -242,7 +281,15 @@ 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 } - 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())); + // 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 UpdateUserNotificationCommentSubscriptionStatusResponse 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())); } /** diff --git a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.java b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.java index 5de6ac1f..7014e5c3 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.java +++ b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.java @@ -14,7 +14,9 @@ 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; @@ -74,6 +76,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { 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() { @Override @@ -95,7 +98,13 @@ public void write(JsonWriter out, UpdateUserNotificationPageSubscriptionStatusRe elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: IgnoredResponse, UserNotificationWriteResponse"); + // 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"); } @Override @@ -132,6 +141,19 @@ public UpdateUserNotificationPageSubscriptionStatusResponse read(JsonReader in) 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; + 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); + } 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())); } @@ -154,6 +176,7 @@ public UpdateUserNotificationPageSubscriptionStatusResponse(Object o) { static { schemas.put("UserNotificationWriteResponse", UserNotificationWriteResponse.class); schemas.put("IgnoredResponse", IgnoredResponse.class); + schemas.put("APIError", APIError.class); } @Override @@ -164,7 +187,7 @@ public Map> getSchemas() { /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * IgnoredResponse, UserNotificationWriteResponse + * APIError, IgnoredResponse, UserNotificationWriteResponse * * It could be an instance of the 'anyOf' schemas. */ @@ -180,14 +203,19 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be IgnoredResponse, UserNotificationWriteResponse"); + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, IgnoredResponse, UserNotificationWriteResponse"); } /** * Get the actual instance, which can be the following: - * IgnoredResponse, UserNotificationWriteResponse + * APIError, IgnoredResponse, UserNotificationWriteResponse * - * @return The actual instance (IgnoredResponse, UserNotificationWriteResponse) + * @return The actual instance (APIError, IgnoredResponse, UserNotificationWriteResponse) */ @SuppressWarnings("unchecked") @Override @@ -217,6 +245,17 @@ 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 * @@ -242,7 +281,15 @@ 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 } - 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())); + // 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 UpdateUserNotificationPageSubscriptionStatusResponse 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())); } /** diff --git a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.java b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.java index b65cc32d..f9ad8d45 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.java +++ b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.java @@ -14,7 +14,9 @@ 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; @@ -74,6 +76,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { 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() { @Override @@ -95,7 +98,13 @@ public void write(JsonWriter out, UpdateUserNotificationStatusResponse value) th elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: IgnoredResponse, UserNotificationWriteResponse"); + // 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"); } @Override @@ -132,6 +141,19 @@ public UpdateUserNotificationStatusResponse read(JsonReader in) throws IOExcepti 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; + 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); + } 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())); } @@ -154,6 +176,7 @@ public UpdateUserNotificationStatusResponse(Object o) { static { schemas.put("UserNotificationWriteResponse", UserNotificationWriteResponse.class); schemas.put("IgnoredResponse", IgnoredResponse.class); + schemas.put("APIError", APIError.class); } @Override @@ -164,7 +187,7 @@ public Map> getSchemas() { /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * IgnoredResponse, UserNotificationWriteResponse + * APIError, IgnoredResponse, UserNotificationWriteResponse * * It could be an instance of the 'anyOf' schemas. */ @@ -180,14 +203,19 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be IgnoredResponse, UserNotificationWriteResponse"); + if (instance instanceof APIError) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be APIError, IgnoredResponse, UserNotificationWriteResponse"); } /** * Get the actual instance, which can be the following: - * IgnoredResponse, UserNotificationWriteResponse + * APIError, IgnoredResponse, UserNotificationWriteResponse * - * @return The actual instance (IgnoredResponse, UserNotificationWriteResponse) + * @return The actual instance (APIError, IgnoredResponse, UserNotificationWriteResponse) */ @SuppressWarnings("unchecked") @Override @@ -217,6 +245,17 @@ 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 * @@ -242,7 +281,15 @@ 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 } - 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())); + // 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 UpdateUserNotificationStatusResponse 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())); } /** diff --git a/client/src/main/java/com/fastcomments/model/VoteCommentResponse.java b/client/src/main/java/com/fastcomments/model/VoteCommentResponse.java new file mode 100644 index 00000000..952b74fc --- /dev/null +++ b/client/src/main/java/com/fastcomments/model/VoteCommentResponse.java @@ -0,0 +1,270 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.23.0-SNAPSHOT") +public class VoteCommentResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(VoteCommentResponse.class.getName()); + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!VoteCommentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'VoteCommentResponse' 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, VoteCommentResponse 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 VoteCommentResponse 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; + VoteCommentResponse ret = new VoteCommentResponse(); + 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; + VoteCommentResponse ret = new VoteCommentResponse(); + 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 VoteCommentResponse: 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 VoteCommentResponse() { + super("anyOf", Boolean.FALSE); + } + + public VoteCommentResponse(Object o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("VoteResponse", VoteResponse.class); + schemas.put("APIError", APIError.class); + } + + @Override + public Map> getSchemas() { + return VoteCommentResponse.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 VoteCommentResponse + */ + 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 VoteCommentResponse 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 VoteCommentResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of VoteCommentResponse + * @throws IOException if the JSON string is invalid with respect to VoteCommentResponse + */ + public static VoteCommentResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, VoteCommentResponse.class); + } + + /** + * Convert an instance of VoteCommentResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/client/src/test/java/com/fastcomments/api/DefaultApiTest.java b/client/src/test/java/com/fastcomments/api/DefaultApiTest.java index 1c90c411..2f1f4d15 100644 --- a/client/src/test/java/com/fastcomments/api/DefaultApiTest.java +++ b/client/src/test/java/com/fastcomments/api/DefaultApiTest.java @@ -14,141 +14,167 @@ package com.fastcomments.api; import com.fastcomments.invoker.ApiException; -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.AddDomainConfigResponse; +import com.fastcomments.model.AddHashTagResponse; +import com.fastcomments.model.AddHashTagsBulkResponse; import com.fastcomments.model.AddPageAPIResponse; import com.fastcomments.model.AddSSOUserAPIResponse; -import com.fastcomments.model.AggregateQuestionResultsResponse; +import com.fastcomments.model.AggregateQuestionResultsResponse1; import com.fastcomments.model.AggregateResponse; import com.fastcomments.model.AggregateTimeBucket; import com.fastcomments.model.AggregationRequest; import com.fastcomments.model.BlockFromCommentParams; -import com.fastcomments.model.BlockSuccess; +import com.fastcomments.model.BlockUserFromCommentResponse; import com.fastcomments.model.BulkAggregateQuestionResultsRequest; -import com.fastcomments.model.BulkAggregateQuestionResultsResponse; +import com.fastcomments.model.BulkAggregateQuestionResultsResponse1; import com.fastcomments.model.BulkCreateHashTagsBody; -import com.fastcomments.model.BulkCreateHashTagsResponse; import com.fastcomments.model.ChangeTicketStateBody; -import com.fastcomments.model.ChangeTicketStateResponse; -import com.fastcomments.model.CombineQuestionResultsWithCommentsResponse; +import com.fastcomments.model.ChangeTicketStateResponse1; +import com.fastcomments.model.CombineCommentsWithQuestionResultsResponse; import com.fastcomments.model.CreateAPIPageData; import com.fastcomments.model.CreateAPISSOUserData; import com.fastcomments.model.CreateAPIUserSubscriptionData; import com.fastcomments.model.CreateCommentParams; import com.fastcomments.model.CreateEmailTemplateBody; -import com.fastcomments.model.CreateEmailTemplateResponse; +import com.fastcomments.model.CreateEmailTemplateResponse1; import com.fastcomments.model.CreateFeedPostParams; -import com.fastcomments.model.CreateFeedPostsResponse; +import com.fastcomments.model.CreateFeedPostResponse1; import com.fastcomments.model.CreateHashTagBody; -import com.fastcomments.model.CreateHashTagResponse; import com.fastcomments.model.CreateModeratorBody; -import com.fastcomments.model.CreateModeratorResponse; +import com.fastcomments.model.CreateModeratorResponse1; import com.fastcomments.model.CreateQuestionConfigBody; -import com.fastcomments.model.CreateQuestionConfigResponse; +import com.fastcomments.model.CreateQuestionConfigResponse1; import com.fastcomments.model.CreateQuestionResultBody; -import com.fastcomments.model.CreateQuestionResultResponse; +import com.fastcomments.model.CreateQuestionResultResponse1; import com.fastcomments.model.CreateSubscriptionAPIResponse; import com.fastcomments.model.CreateTenantBody; import com.fastcomments.model.CreateTenantPackageBody; -import com.fastcomments.model.CreateTenantPackageResponse; -import com.fastcomments.model.CreateTenantResponse; +import com.fastcomments.model.CreateTenantPackageResponse1; +import com.fastcomments.model.CreateTenantResponse1; import com.fastcomments.model.CreateTenantUserBody; -import com.fastcomments.model.CreateTenantUserResponse; +import com.fastcomments.model.CreateTenantUserResponse1; import com.fastcomments.model.CreateTicketBody; -import com.fastcomments.model.CreateTicketResponse; +import com.fastcomments.model.CreateTicketResponse1; import com.fastcomments.model.CreateUserBadgeParams; -import com.fastcomments.model.DeleteCommentResult; +import com.fastcomments.model.CreateUserBadgeResponse; +import com.fastcomments.model.CreateVoteResponse; +import com.fastcomments.model.DeleteCommentResponse; import com.fastcomments.model.DeleteDomainConfigResponse; +import com.fastcomments.model.DeleteEmailTemplateRenderErrorResponse; +import com.fastcomments.model.DeleteEmailTemplateResponse; import com.fastcomments.model.DeleteHashTagRequestBody; +import com.fastcomments.model.DeleteHashTagResponse; +import com.fastcomments.model.DeleteModeratorResponse; +import com.fastcomments.model.DeleteNotificationCountResponse; import com.fastcomments.model.DeletePageAPIResponse; +import com.fastcomments.model.DeletePendingWebhookEventResponse; +import com.fastcomments.model.DeleteQuestionConfigResponse; +import com.fastcomments.model.DeleteQuestionResultResponse; import com.fastcomments.model.DeleteSSOUserAPIResponse; import com.fastcomments.model.DeleteSubscriptionAPIResponse; +import com.fastcomments.model.DeleteTenantPackageResponse; +import com.fastcomments.model.DeleteTenantResponse; +import com.fastcomments.model.DeleteTenantUserResponse; +import com.fastcomments.model.DeleteUserBadgeResponse; +import com.fastcomments.model.DeleteVoteResponse; import com.fastcomments.model.FeedPost; -import com.fastcomments.model.FlagCommentResponse; -import com.fastcomments.model.GetAuditLogsResponse; -import com.fastcomments.model.GetCachedNotificationCountResponse; +import com.fastcomments.model.FlagCommentResponse1; +import com.fastcomments.model.GetAuditLogsResponse1; +import com.fastcomments.model.GetCachedNotificationCountResponse1; +import com.fastcomments.model.GetCommentResponse; +import com.fastcomments.model.GetCommentsResponse; 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.GetEmailTemplateDefinitionsResponse1; +import com.fastcomments.model.GetEmailTemplateRenderErrorsResponse1; +import com.fastcomments.model.GetEmailTemplateResponse1; +import com.fastcomments.model.GetEmailTemplatesResponse1; +import com.fastcomments.model.GetFeedPostsResponse1; +import com.fastcomments.model.GetHashTagsResponse1; +import com.fastcomments.model.GetModeratorResponse1; +import com.fastcomments.model.GetModeratorsResponse1; +import com.fastcomments.model.GetNotificationCountResponse1; +import com.fastcomments.model.GetNotificationsResponse1; import com.fastcomments.model.GetPageByURLIdAPIResponse; import com.fastcomments.model.GetPagesAPIResponse; -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.GetPendingWebhookEventCountResponse1; +import com.fastcomments.model.GetPendingWebhookEventsResponse1; +import com.fastcomments.model.GetQuestionConfigResponse1; +import com.fastcomments.model.GetQuestionConfigsResponse1; +import com.fastcomments.model.GetQuestionResultResponse1; +import com.fastcomments.model.GetQuestionResultsResponse1; import com.fastcomments.model.GetSSOUserByEmailAPIResponse; import com.fastcomments.model.GetSSOUserByIdAPIResponse; import com.fastcomments.model.GetSSOUsersResponse; import com.fastcomments.model.GetSubscriptionsAPIResponse; -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 com.fastcomments.model.GetTenantDailyUsagesResponse1; +import com.fastcomments.model.GetTenantPackageResponse1; +import com.fastcomments.model.GetTenantPackagesResponse1; +import com.fastcomments.model.GetTenantResponse1; +import com.fastcomments.model.GetTenantUserResponse1; +import com.fastcomments.model.GetTenantUsersResponse1; +import com.fastcomments.model.GetTenantsResponse1; +import com.fastcomments.model.GetTicketResponse1; +import com.fastcomments.model.GetTicketsResponse1; +import com.fastcomments.model.GetUserBadgeProgressByIdResponse; +import com.fastcomments.model.GetUserBadgeProgressByUserIdResponse; +import com.fastcomments.model.GetUserBadgeProgressListResponse; +import com.fastcomments.model.GetUserBadgeResponse; +import com.fastcomments.model.GetUserBadgesResponse; +import com.fastcomments.model.GetUserResponse1; +import com.fastcomments.model.GetVotesForUserResponse1; +import com.fastcomments.model.GetVotesResponse1; import java.time.OffsetDateTime; import com.fastcomments.model.PatchDomainConfigParams; import com.fastcomments.model.PatchDomainConfigResponse; +import com.fastcomments.model.PatchHashTagResponse; import com.fastcomments.model.PatchPageAPIResponse; import com.fastcomments.model.PatchSSOUserAPIResponse; import com.fastcomments.model.PutDomainConfigResponse; import com.fastcomments.model.PutSSOUserAPIResponse; import com.fastcomments.model.RenderEmailTemplateBody; -import com.fastcomments.model.RenderEmailTemplateResponse; +import com.fastcomments.model.RenderEmailTemplateResponse1; import com.fastcomments.model.ReplaceTenantPackageBody; +import com.fastcomments.model.ReplaceTenantPackageResponse; import com.fastcomments.model.ReplaceTenantUserBody; +import com.fastcomments.model.ReplaceTenantUserResponse; import com.fastcomments.model.SORTDIR; +import com.fastcomments.model.SaveCommentResponse; import com.fastcomments.model.SaveCommentsBulkResponse; +import com.fastcomments.model.SendInviteResponse; +import com.fastcomments.model.SendLoginLinkResponse; import com.fastcomments.model.SortDirections; import com.fastcomments.model.UnBlockFromCommentParams; -import com.fastcomments.model.UnblockSuccess; +import com.fastcomments.model.UnBlockUserFromCommentResponse; +import com.fastcomments.model.UnFlagCommentResponse; import com.fastcomments.model.UpdatableCommentParams; import com.fastcomments.model.UpdateAPIPageData; import com.fastcomments.model.UpdateAPISSOUserData; import com.fastcomments.model.UpdateAPIUserSubscriptionData; +import com.fastcomments.model.UpdateCommentResponse; import com.fastcomments.model.UpdateDomainConfigParams; import com.fastcomments.model.UpdateEmailTemplateBody; +import com.fastcomments.model.UpdateEmailTemplateResponse; +import com.fastcomments.model.UpdateFeedPostResponse; import com.fastcomments.model.UpdateHashTagBody; -import com.fastcomments.model.UpdateHashTagResponse; import com.fastcomments.model.UpdateModeratorBody; +import com.fastcomments.model.UpdateModeratorResponse; import com.fastcomments.model.UpdateNotificationBody; +import com.fastcomments.model.UpdateNotificationResponse; import com.fastcomments.model.UpdateQuestionConfigBody; +import com.fastcomments.model.UpdateQuestionConfigResponse; import com.fastcomments.model.UpdateQuestionResultBody; +import com.fastcomments.model.UpdateQuestionResultResponse; import com.fastcomments.model.UpdateSubscriptionAPIResponse; import com.fastcomments.model.UpdateTenantBody; import com.fastcomments.model.UpdateTenantPackageBody; +import com.fastcomments.model.UpdateTenantPackageResponse; +import com.fastcomments.model.UpdateTenantResponse; import com.fastcomments.model.UpdateTenantUserBody; +import com.fastcomments.model.UpdateTenantUserResponse; import com.fastcomments.model.UpdateUserBadgeParams; -import com.fastcomments.model.VoteDeleteResponse; -import com.fastcomments.model.VoteResponse; +import com.fastcomments.model.UpdateUserBadgeResponse; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -184,7 +210,7 @@ public void addDomainConfigTest() throws ApiException { public void addHashTagTest() throws ApiException { String tenantId = null; CreateHashTagBody createHashTagBody = null; - CreateHashTagResponse response = api.addHashTag() + AddHashTagResponse response = api.addHashTag() .tenantId(tenantId) .createHashTagBody(createHashTagBody) .execute(); @@ -198,7 +224,7 @@ public void addHashTagTest() throws ApiException { public void addHashTagsBulkTest() throws ApiException { String tenantId = null; BulkCreateHashTagsBody bulkCreateHashTagsBody = null; - BulkCreateHashTagsResponse response = api.addHashTagsBulk() + AddHashTagsBulkResponse response = api.addHashTagsBulk() .tenantId(tenantId) .bulkCreateHashTagsBody(bulkCreateHashTagsBody) .execute(); @@ -259,7 +285,7 @@ public void aggregateQuestionResultsTest() throws ApiException { AggregateTimeBucket timeBucket = null; OffsetDateTime startDate = null; Boolean forceRecalculate = null; - AggregateQuestionResultsResponse response = api.aggregateQuestionResults(tenantId) + AggregateQuestionResultsResponse1 response = api.aggregateQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -280,7 +306,7 @@ public void blockUserFromCommentTest() throws ApiException { BlockFromCommentParams blockFromCommentParams = null; String userId = null; String anonUserId = null; - BlockSuccess response = api.blockUserFromComment(tenantId, id, blockFromCommentParams) + BlockUserFromCommentResponse response = api.blockUserFromComment(tenantId, id, blockFromCommentParams) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -295,7 +321,7 @@ public void bulkAggregateQuestionResultsTest() throws ApiException { String tenantId = null; BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest = null; Boolean forceRecalculate = null; - BulkAggregateQuestionResultsResponse response = api.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest) + BulkAggregateQuestionResultsResponse1 response = api.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest) .forceRecalculate(forceRecalculate) .execute(); // TODO: test validations @@ -310,7 +336,7 @@ public void changeTicketStateTest() throws ApiException { String userId = null; String id = null; ChangeTicketStateBody changeTicketStateBody = null; - ChangeTicketStateResponse response = api.changeTicketState(tenantId, userId, id, changeTicketStateBody) + ChangeTicketStateResponse1 response = api.changeTicketState(tenantId, userId, id, changeTicketStateBody) .execute(); // TODO: test validations } @@ -329,7 +355,7 @@ public void combineCommentsWithQuestionResultsTest() throws ApiException { Double minValue = null; Double maxValue = null; Double limit = null; - CombineQuestionResultsWithCommentsResponse response = api.combineCommentsWithQuestionResults(tenantId) + CombineCommentsWithQuestionResultsResponse response = api.combineCommentsWithQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -349,7 +375,7 @@ public void combineCommentsWithQuestionResultsTest() throws ApiException { public void createEmailTemplateTest() throws ApiException { String tenantId = null; CreateEmailTemplateBody createEmailTemplateBody = null; - CreateEmailTemplateResponse response = api.createEmailTemplate(tenantId, createEmailTemplateBody) + CreateEmailTemplateResponse1 response = api.createEmailTemplate(tenantId, createEmailTemplateBody) .execute(); // TODO: test validations } @@ -365,7 +391,7 @@ public void createFeedPostTest() throws ApiException { Boolean isLive = null; Boolean doSpamCheck = null; Boolean skipDupCheck = null; - CreateFeedPostsResponse response = api.createFeedPost(tenantId, createFeedPostParams) + CreateFeedPostResponse1 response = api.createFeedPost(tenantId, createFeedPostParams) .broadcastId(broadcastId) .isLive(isLive) .doSpamCheck(doSpamCheck) @@ -381,7 +407,7 @@ public void createFeedPostTest() throws ApiException { public void createModeratorTest() throws ApiException { String tenantId = null; CreateModeratorBody createModeratorBody = null; - CreateModeratorResponse response = api.createModerator(tenantId, createModeratorBody) + CreateModeratorResponse1 response = api.createModerator(tenantId, createModeratorBody) .execute(); // TODO: test validations } @@ -393,7 +419,7 @@ public void createModeratorTest() throws ApiException { public void createQuestionConfigTest() throws ApiException { String tenantId = null; CreateQuestionConfigBody createQuestionConfigBody = null; - CreateQuestionConfigResponse response = api.createQuestionConfig(tenantId, createQuestionConfigBody) + CreateQuestionConfigResponse1 response = api.createQuestionConfig(tenantId, createQuestionConfigBody) .execute(); // TODO: test validations } @@ -405,7 +431,7 @@ public void createQuestionConfigTest() throws ApiException { public void createQuestionResultTest() throws ApiException { String tenantId = null; CreateQuestionResultBody createQuestionResultBody = null; - CreateQuestionResultResponse response = api.createQuestionResult(tenantId, createQuestionResultBody) + CreateQuestionResultResponse1 response = api.createQuestionResult(tenantId, createQuestionResultBody) .execute(); // TODO: test validations } @@ -429,7 +455,7 @@ public void createSubscriptionTest() throws ApiException { public void createTenantTest() throws ApiException { String tenantId = null; CreateTenantBody createTenantBody = null; - CreateTenantResponse response = api.createTenant(tenantId, createTenantBody) + CreateTenantResponse1 response = api.createTenant(tenantId, createTenantBody) .execute(); // TODO: test validations } @@ -441,7 +467,7 @@ public void createTenantTest() throws ApiException { public void createTenantPackageTest() throws ApiException { String tenantId = null; CreateTenantPackageBody createTenantPackageBody = null; - CreateTenantPackageResponse response = api.createTenantPackage(tenantId, createTenantPackageBody) + CreateTenantPackageResponse1 response = api.createTenantPackage(tenantId, createTenantPackageBody) .execute(); // TODO: test validations } @@ -453,7 +479,7 @@ public void createTenantPackageTest() throws ApiException { public void createTenantUserTest() throws ApiException { String tenantId = null; CreateTenantUserBody createTenantUserBody = null; - CreateTenantUserResponse response = api.createTenantUser(tenantId, createTenantUserBody) + CreateTenantUserResponse1 response = api.createTenantUser(tenantId, createTenantUserBody) .execute(); // TODO: test validations } @@ -466,7 +492,7 @@ public void createTicketTest() throws ApiException { String tenantId = null; String userId = null; CreateTicketBody createTicketBody = null; - CreateTicketResponse response = api.createTicket(tenantId, userId, createTicketBody) + CreateTicketResponse1 response = api.createTicket(tenantId, userId, createTicketBody) .execute(); // TODO: test validations } @@ -478,7 +504,7 @@ public void createTicketTest() throws ApiException { public void createUserBadgeTest() throws ApiException { String tenantId = null; CreateUserBadgeParams createUserBadgeParams = null; - APICreateUserBadgeResponse response = api.createUserBadge(tenantId, createUserBadgeParams) + CreateUserBadgeResponse response = api.createUserBadge(tenantId, createUserBadgeParams) .execute(); // TODO: test validations } @@ -493,7 +519,7 @@ public void createVoteTest() throws ApiException { String direction = null; String userId = null; String anonUserId = null; - VoteResponse response = api.createVote(tenantId, commentId, direction) + CreateVoteResponse response = api.createVote(tenantId, commentId, direction) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -509,7 +535,7 @@ public void deleteCommentTest() throws ApiException { String id = null; String contextUserId = null; Boolean isLive = null; - DeleteCommentResult response = api.deleteComment(tenantId, id) + DeleteCommentResponse response = api.deleteComment(tenantId, id) .contextUserId(contextUserId) .isLive(isLive) .execute(); @@ -535,7 +561,7 @@ public void deleteDomainConfigTest() throws ApiException { public void deleteEmailTemplateTest() throws ApiException { String tenantId = null; String id = null; - APIEmptyResponse response = api.deleteEmailTemplate(tenantId, id) + DeleteEmailTemplateResponse response = api.deleteEmailTemplate(tenantId, id) .execute(); // TODO: test validations } @@ -548,7 +574,7 @@ public void deleteEmailTemplateRenderErrorTest() throws ApiException { String tenantId = null; String id = null; String errorId = null; - APIEmptyResponse response = api.deleteEmailTemplateRenderError(tenantId, id, errorId) + DeleteEmailTemplateRenderErrorResponse response = api.deleteEmailTemplateRenderError(tenantId, id, errorId) .execute(); // TODO: test validations } @@ -561,7 +587,7 @@ public void deleteHashTagTest() throws ApiException { String tag = null; String tenantId = null; DeleteHashTagRequestBody deleteHashTagRequestBody = null; - APIEmptyResponse response = api.deleteHashTag(tag) + DeleteHashTagResponse response = api.deleteHashTag(tag) .tenantId(tenantId) .deleteHashTagRequestBody(deleteHashTagRequestBody) .execute(); @@ -576,7 +602,7 @@ public void deleteModeratorTest() throws ApiException { String tenantId = null; String id = null; String sendEmail = null; - APIEmptyResponse response = api.deleteModerator(tenantId, id) + DeleteModeratorResponse response = api.deleteModerator(tenantId, id) .sendEmail(sendEmail) .execute(); // TODO: test validations @@ -589,7 +615,7 @@ public void deleteModeratorTest() throws ApiException { public void deleteNotificationCountTest() throws ApiException { String tenantId = null; String id = null; - APIEmptyResponse response = api.deleteNotificationCount(tenantId, id) + DeleteNotificationCountResponse response = api.deleteNotificationCount(tenantId, id) .execute(); // TODO: test validations } @@ -613,7 +639,7 @@ public void deletePageTest() throws ApiException { public void deletePendingWebhookEventTest() throws ApiException { String tenantId = null; String id = null; - APIEmptyResponse response = api.deletePendingWebhookEvent(tenantId, id) + DeletePendingWebhookEventResponse response = api.deletePendingWebhookEvent(tenantId, id) .execute(); // TODO: test validations } @@ -625,7 +651,7 @@ public void deletePendingWebhookEventTest() throws ApiException { public void deleteQuestionConfigTest() throws ApiException { String tenantId = null; String id = null; - APIEmptyResponse response = api.deleteQuestionConfig(tenantId, id) + DeleteQuestionConfigResponse response = api.deleteQuestionConfig(tenantId, id) .execute(); // TODO: test validations } @@ -637,7 +663,7 @@ public void deleteQuestionConfigTest() throws ApiException { public void deleteQuestionResultTest() throws ApiException { String tenantId = null; String id = null; - APIEmptyResponse response = api.deleteQuestionResult(tenantId, id) + DeleteQuestionResultResponse response = api.deleteQuestionResult(tenantId, id) .execute(); // TODO: test validations } @@ -680,7 +706,7 @@ public void deleteTenantTest() throws ApiException { String tenantId = null; String id = null; String sure = null; - APIEmptyResponse response = api.deleteTenant(tenantId, id) + DeleteTenantResponse response = api.deleteTenant(tenantId, id) .sure(sure) .execute(); // TODO: test validations @@ -693,7 +719,7 @@ public void deleteTenantTest() throws ApiException { public void deleteTenantPackageTest() throws ApiException { String tenantId = null; String id = null; - APIEmptyResponse response = api.deleteTenantPackage(tenantId, id) + DeleteTenantPackageResponse response = api.deleteTenantPackage(tenantId, id) .execute(); // TODO: test validations } @@ -707,7 +733,7 @@ public void deleteTenantUserTest() throws ApiException { String id = null; String deleteComments = null; String commentDeleteMode = null; - APIEmptyResponse response = api.deleteTenantUser(tenantId, id) + DeleteTenantUserResponse response = api.deleteTenantUser(tenantId, id) .deleteComments(deleteComments) .commentDeleteMode(commentDeleteMode) .execute(); @@ -721,7 +747,7 @@ public void deleteTenantUserTest() throws ApiException { public void deleteUserBadgeTest() throws ApiException { String tenantId = null; String id = null; - APIEmptySuccessResponse response = api.deleteUserBadge(tenantId, id) + DeleteUserBadgeResponse response = api.deleteUserBadge(tenantId, id) .execute(); // TODO: test validations } @@ -734,7 +760,7 @@ public void deleteVoteTest() throws ApiException { String tenantId = null; String id = null; String editKey = null; - VoteDeleteResponse response = api.deleteVote(tenantId, id) + DeleteVoteResponse response = api.deleteVote(tenantId, id) .editKey(editKey) .execute(); // TODO: test validations @@ -749,7 +775,7 @@ public void flagCommentTest() throws ApiException { String id = null; String userId = null; String anonUserId = null; - FlagCommentResponse response = api.flagComment(tenantId, id) + FlagCommentResponse1 response = api.flagComment(tenantId, id) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -767,7 +793,7 @@ public void getAuditLogsTest() throws ApiException { SORTDIR order = null; Double after = null; Double before = null; - GetAuditLogsResponse response = api.getAuditLogs(tenantId) + GetAuditLogsResponse1 response = api.getAuditLogs(tenantId) .limit(limit) .skip(skip) .order(order) @@ -784,7 +810,7 @@ public void getAuditLogsTest() throws ApiException { public void getCachedNotificationCountTest() throws ApiException { String tenantId = null; String id = null; - GetCachedNotificationCountResponse response = api.getCachedNotificationCount(tenantId, id) + GetCachedNotificationCountResponse1 response = api.getCachedNotificationCount(tenantId, id) .execute(); // TODO: test validations } @@ -796,7 +822,7 @@ public void getCachedNotificationCountTest() throws ApiException { public void getCommentTest() throws ApiException { String tenantId = null; String id = null; - APIGetCommentResponse response = api.getComment(tenantId, id) + GetCommentResponse response = api.getComment(tenantId, id) .execute(); // TODO: test validations } @@ -823,7 +849,7 @@ public void getCommentsTest() throws ApiException { SortDirections direction = null; Long fromDate = null; Long toDate = null; - APIGetCommentsResponse response = api.getComments(tenantId) + GetCommentsResponse response = api.getComments(tenantId) .page(page) .limit(limit) .skip(skip) @@ -874,7 +900,7 @@ public void getDomainConfigsTest() throws ApiException { public void getEmailTemplateTest() throws ApiException { String tenantId = null; String id = null; - GetEmailTemplateResponse response = api.getEmailTemplate(tenantId, id) + GetEmailTemplateResponse1 response = api.getEmailTemplate(tenantId, id) .execute(); // TODO: test validations } @@ -885,7 +911,7 @@ public void getEmailTemplateTest() throws ApiException { @Test public void getEmailTemplateDefinitionsTest() throws ApiException { String tenantId = null; - GetEmailTemplateDefinitionsResponse response = api.getEmailTemplateDefinitions(tenantId) + GetEmailTemplateDefinitionsResponse1 response = api.getEmailTemplateDefinitions(tenantId) .execute(); // TODO: test validations } @@ -898,7 +924,7 @@ public void getEmailTemplateRenderErrorsTest() throws ApiException { String tenantId = null; String id = null; Double skip = null; - GetEmailTemplateRenderErrorsResponse response = api.getEmailTemplateRenderErrors(tenantId, id) + GetEmailTemplateRenderErrorsResponse1 response = api.getEmailTemplateRenderErrors(tenantId, id) .skip(skip) .execute(); // TODO: test validations @@ -911,7 +937,7 @@ public void getEmailTemplateRenderErrorsTest() throws ApiException { public void getEmailTemplatesTest() throws ApiException { String tenantId = null; Double skip = null; - GetEmailTemplatesResponse response = api.getEmailTemplates(tenantId) + GetEmailTemplatesResponse1 response = api.getEmailTemplates(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -928,7 +954,7 @@ public void getFeedPostsTest() throws ApiException { String afterId = null; Integer limit = null; List tags = null; - GetFeedPostsResponse response = api.getFeedPosts(tenantId) + GetFeedPostsResponse1 response = api.getFeedPosts(tenantId) .afterId(afterId) .limit(limit) .tags(tags) @@ -943,7 +969,7 @@ public void getFeedPostsTest() throws ApiException { public void getHashTagsTest() throws ApiException { String tenantId = null; Double page = null; - GetHashTagsResponse response = api.getHashTags(tenantId) + GetHashTagsResponse1 response = api.getHashTags(tenantId) .page(page) .execute(); // TODO: test validations @@ -956,7 +982,7 @@ public void getHashTagsTest() throws ApiException { public void getModeratorTest() throws ApiException { String tenantId = null; String id = null; - GetModeratorResponse response = api.getModerator(tenantId, id) + GetModeratorResponse1 response = api.getModerator(tenantId, id) .execute(); // TODO: test validations } @@ -968,7 +994,7 @@ public void getModeratorTest() throws ApiException { public void getModeratorsTest() throws ApiException { String tenantId = null; Double skip = null; - GetModeratorsResponse response = api.getModerators(tenantId) + GetModeratorsResponse1 response = api.getModerators(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -985,7 +1011,7 @@ public void getNotificationCountTest() throws ApiException { String fromCommentId = null; Boolean viewed = null; String type = null; - GetNotificationCountResponse response = api.getNotificationCount(tenantId) + GetNotificationCountResponse1 response = api.getNotificationCount(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -1007,7 +1033,7 @@ public void getNotificationsTest() throws ApiException { Boolean viewed = null; String type = null; Double skip = null; - GetNotificationsResponse response = api.getNotifications(tenantId) + GetNotificationsResponse1 response = api.getNotifications(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -1053,7 +1079,7 @@ public void getPendingWebhookEventCountTest() throws ApiException { String type = null; String domain = null; Double attemptCountGT = null; - GetPendingWebhookEventCountResponse response = api.getPendingWebhookEventCount(tenantId) + GetPendingWebhookEventCountResponse1 response = api.getPendingWebhookEventCount(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -1077,7 +1103,7 @@ public void getPendingWebhookEventsTest() throws ApiException { String domain = null; Double attemptCountGT = null; Double skip = null; - GetPendingWebhookEventsResponse response = api.getPendingWebhookEvents(tenantId) + GetPendingWebhookEventsResponse1 response = api.getPendingWebhookEvents(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -1096,7 +1122,7 @@ public void getPendingWebhookEventsTest() throws ApiException { public void getQuestionConfigTest() throws ApiException { String tenantId = null; String id = null; - GetQuestionConfigResponse response = api.getQuestionConfig(tenantId, id) + GetQuestionConfigResponse1 response = api.getQuestionConfig(tenantId, id) .execute(); // TODO: test validations } @@ -1108,7 +1134,7 @@ public void getQuestionConfigTest() throws ApiException { public void getQuestionConfigsTest() throws ApiException { String tenantId = null; Double skip = null; - GetQuestionConfigsResponse response = api.getQuestionConfigs(tenantId) + GetQuestionConfigsResponse1 response = api.getQuestionConfigs(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -1121,7 +1147,7 @@ public void getQuestionConfigsTest() throws ApiException { public void getQuestionResultTest() throws ApiException { String tenantId = null; String id = null; - GetQuestionResultResponse response = api.getQuestionResult(tenantId, id) + GetQuestionResultResponse1 response = api.getQuestionResult(tenantId, id) .execute(); // TODO: test validations } @@ -1138,7 +1164,7 @@ public void getQuestionResultsTest() throws ApiException { String questionId = null; String questionIds = null; Double skip = null; - GetQuestionResultsResponse response = api.getQuestionResults(tenantId) + GetQuestionResultsResponse1 response = api.getQuestionResults(tenantId) .urlId(urlId) .userId(userId) .startDate(startDate) @@ -1206,7 +1232,7 @@ public void getSubscriptionsTest() throws ApiException { public void getTenantTest() throws ApiException { String tenantId = null; String id = null; - GetTenantResponse response = api.getTenant(tenantId, id) + GetTenantResponse1 response = api.getTenant(tenantId, id) .execute(); // TODO: test validations } @@ -1221,7 +1247,7 @@ public void getTenantDailyUsagesTest() throws ApiException { Double monthNumber = null; Double dayNumber = null; Double skip = null; - GetTenantDailyUsagesResponse response = api.getTenantDailyUsages(tenantId) + GetTenantDailyUsagesResponse1 response = api.getTenantDailyUsages(tenantId) .yearNumber(yearNumber) .monthNumber(monthNumber) .dayNumber(dayNumber) @@ -1237,7 +1263,7 @@ public void getTenantDailyUsagesTest() throws ApiException { public void getTenantPackageTest() throws ApiException { String tenantId = null; String id = null; - GetTenantPackageResponse response = api.getTenantPackage(tenantId, id) + GetTenantPackageResponse1 response = api.getTenantPackage(tenantId, id) .execute(); // TODO: test validations } @@ -1249,7 +1275,7 @@ public void getTenantPackageTest() throws ApiException { public void getTenantPackagesTest() throws ApiException { String tenantId = null; Double skip = null; - GetTenantPackagesResponse response = api.getTenantPackages(tenantId) + GetTenantPackagesResponse1 response = api.getTenantPackages(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -1262,7 +1288,7 @@ public void getTenantPackagesTest() throws ApiException { public void getTenantUserTest() throws ApiException { String tenantId = null; String id = null; - GetTenantUserResponse response = api.getTenantUser(tenantId, id) + GetTenantUserResponse1 response = api.getTenantUser(tenantId, id) .execute(); // TODO: test validations } @@ -1274,7 +1300,7 @@ public void getTenantUserTest() throws ApiException { public void getTenantUsersTest() throws ApiException { String tenantId = null; Double skip = null; - GetTenantUsersResponse response = api.getTenantUsers(tenantId) + GetTenantUsersResponse1 response = api.getTenantUsers(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -1288,7 +1314,7 @@ public void getTenantsTest() throws ApiException { String tenantId = null; String meta = null; Double skip = null; - GetTenantsResponse response = api.getTenants(tenantId) + GetTenantsResponse1 response = api.getTenants(tenantId) .meta(meta) .skip(skip) .execute(); @@ -1303,7 +1329,7 @@ public void getTicketTest() throws ApiException { String tenantId = null; String id = null; String userId = null; - GetTicketResponse response = api.getTicket(tenantId, id) + GetTicketResponse1 response = api.getTicket(tenantId, id) .userId(userId) .execute(); // TODO: test validations @@ -1319,7 +1345,7 @@ public void getTicketsTest() throws ApiException { Double state = null; Double skip = null; Double limit = null; - GetTicketsResponse response = api.getTickets(tenantId) + GetTicketsResponse1 response = api.getTickets(tenantId) .userId(userId) .state(state) .skip(skip) @@ -1335,7 +1361,7 @@ public void getTicketsTest() throws ApiException { public void getUserTest() throws ApiException { String tenantId = null; String id = null; - GetUserResponse response = api.getUser(tenantId, id) + GetUserResponse1 response = api.getUser(tenantId, id) .execute(); // TODO: test validations } @@ -1347,7 +1373,7 @@ public void getUserTest() throws ApiException { public void getUserBadgeTest() throws ApiException { String tenantId = null; String id = null; - APIGetUserBadgeResponse response = api.getUserBadge(tenantId, id) + GetUserBadgeResponse response = api.getUserBadge(tenantId, id) .execute(); // TODO: test validations } @@ -1359,7 +1385,7 @@ public void getUserBadgeTest() throws ApiException { public void getUserBadgeProgressByIdTest() throws ApiException { String tenantId = null; String id = null; - APIGetUserBadgeProgressResponse response = api.getUserBadgeProgressById(tenantId, id) + GetUserBadgeProgressByIdResponse response = api.getUserBadgeProgressById(tenantId, id) .execute(); // TODO: test validations } @@ -1371,7 +1397,7 @@ public void getUserBadgeProgressByIdTest() throws ApiException { public void getUserBadgeProgressByUserIdTest() throws ApiException { String tenantId = null; String userId = null; - APIGetUserBadgeProgressResponse response = api.getUserBadgeProgressByUserId(tenantId, userId) + GetUserBadgeProgressByUserIdResponse response = api.getUserBadgeProgressByUserId(tenantId, userId) .execute(); // TODO: test validations } @@ -1385,7 +1411,7 @@ public void getUserBadgeProgressListTest() throws ApiException { String userId = null; Double limit = null; Double skip = null; - APIGetUserBadgeProgressListResponse response = api.getUserBadgeProgressList(tenantId) + GetUserBadgeProgressListResponse response = api.getUserBadgeProgressList(tenantId) .userId(userId) .limit(limit) .skip(skip) @@ -1405,7 +1431,7 @@ public void getUserBadgesTest() throws ApiException { Boolean displayedOnComments = null; Double limit = null; Double skip = null; - APIGetUserBadgesResponse response = api.getUserBadges(tenantId) + GetUserBadgesResponse response = api.getUserBadges(tenantId) .userId(userId) .badgeId(badgeId) .type(type) @@ -1423,7 +1449,7 @@ public void getUserBadgesTest() throws ApiException { public void getVotesTest() throws ApiException { String tenantId = null; String urlId = null; - GetVotesResponse response = api.getVotes(tenantId, urlId) + GetVotesResponse1 response = api.getVotes(tenantId, urlId) .execute(); // TODO: test validations } @@ -1437,7 +1463,7 @@ public void getVotesForUserTest() throws ApiException { String urlId = null; String userId = null; String anonUserId = null; - GetVotesForUserResponse response = api.getVotesForUser(tenantId, urlId) + GetVotesForUserResponse1 response = api.getVotesForUser(tenantId, urlId) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -1465,7 +1491,7 @@ public void patchHashTagTest() throws ApiException { String tag = null; String tenantId = null; UpdateHashTagBody updateHashTagBody = null; - UpdateHashTagResponse response = api.patchHashTag(tag) + PatchHashTagResponse response = api.patchHashTag(tag) .tenantId(tenantId) .updateHashTagBody(updateHashTagBody) .execute(); @@ -1536,7 +1562,7 @@ public void renderEmailTemplateTest() throws ApiException { String tenantId = null; RenderEmailTemplateBody renderEmailTemplateBody = null; String locale = null; - RenderEmailTemplateResponse response = api.renderEmailTemplate(tenantId, renderEmailTemplateBody) + RenderEmailTemplateResponse1 response = api.renderEmailTemplate(tenantId, renderEmailTemplateBody) .locale(locale) .execute(); // TODO: test validations @@ -1550,7 +1576,7 @@ public void replaceTenantPackageTest() throws ApiException { String tenantId = null; String id = null; ReplaceTenantPackageBody replaceTenantPackageBody = null; - APIEmptyResponse response = api.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) + ReplaceTenantPackageResponse response = api.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) .execute(); // TODO: test validations } @@ -1564,7 +1590,7 @@ public void replaceTenantUserTest() throws ApiException { String id = null; ReplaceTenantUserBody replaceTenantUserBody = null; String updateComments = null; - APIEmptyResponse response = api.replaceTenantUser(tenantId, id, replaceTenantUserBody) + ReplaceTenantUserResponse response = api.replaceTenantUser(tenantId, id, replaceTenantUserBody) .updateComments(updateComments) .execute(); // TODO: test validations @@ -1581,7 +1607,7 @@ public void saveCommentTest() throws ApiException { Boolean doSpamCheck = null; Boolean sendEmails = null; Boolean populateNotifications = null; - APISaveCommentResponse response = api.saveComment(tenantId, createCommentParams) + SaveCommentResponse response = api.saveComment(tenantId, createCommentParams) .isLive(isLive) .doSpamCheck(doSpamCheck) .sendEmails(sendEmails) @@ -1618,7 +1644,7 @@ public void sendInviteTest() throws ApiException { String tenantId = null; String id = null; String fromName = null; - APIEmptyResponse response = api.sendInvite(tenantId, id, fromName) + SendInviteResponse response = api.sendInvite(tenantId, id, fromName) .execute(); // TODO: test validations } @@ -1631,7 +1657,7 @@ public void sendLoginLinkTest() throws ApiException { String tenantId = null; String id = null; String redirectURL = null; - APIEmptyResponse response = api.sendLoginLink(tenantId, id) + SendLoginLinkResponse response = api.sendLoginLink(tenantId, id) .redirectURL(redirectURL) .execute(); // TODO: test validations @@ -1647,7 +1673,7 @@ public void unBlockUserFromCommentTest() throws ApiException { UnBlockFromCommentParams unBlockFromCommentParams = null; String userId = null; String anonUserId = null; - UnblockSuccess response = api.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) + UnBlockUserFromCommentResponse response = api.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -1663,7 +1689,7 @@ public void unFlagCommentTest() throws ApiException { String id = null; String userId = null; String anonUserId = null; - FlagCommentResponse response = api.unFlagComment(tenantId, id) + UnFlagCommentResponse response = api.unFlagComment(tenantId, id) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -1681,7 +1707,7 @@ public void updateCommentTest() throws ApiException { String contextUserId = null; Boolean doSpamCheck = null; Boolean isLive = null; - APIEmptyResponse response = api.updateComment(tenantId, id, updatableCommentParams) + UpdateCommentResponse response = api.updateComment(tenantId, id, updatableCommentParams) .contextUserId(contextUserId) .doSpamCheck(doSpamCheck) .isLive(isLive) @@ -1697,7 +1723,7 @@ public void updateEmailTemplateTest() throws ApiException { String tenantId = null; String id = null; UpdateEmailTemplateBody updateEmailTemplateBody = null; - APIEmptyResponse response = api.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) + UpdateEmailTemplateResponse response = api.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) .execute(); // TODO: test validations } @@ -1710,7 +1736,7 @@ public void updateFeedPostTest() throws ApiException { String tenantId = null; String id = null; FeedPost feedPost = null; - APIEmptyResponse response = api.updateFeedPost(tenantId, id, feedPost) + UpdateFeedPostResponse response = api.updateFeedPost(tenantId, id, feedPost) .execute(); // TODO: test validations } @@ -1723,7 +1749,7 @@ public void updateModeratorTest() throws ApiException { String tenantId = null; String id = null; UpdateModeratorBody updateModeratorBody = null; - APIEmptyResponse response = api.updateModerator(tenantId, id, updateModeratorBody) + UpdateModeratorResponse response = api.updateModerator(tenantId, id, updateModeratorBody) .execute(); // TODO: test validations } @@ -1737,7 +1763,7 @@ public void updateNotificationTest() throws ApiException { String id = null; UpdateNotificationBody updateNotificationBody = null; String userId = null; - APIEmptyResponse response = api.updateNotification(tenantId, id, updateNotificationBody) + UpdateNotificationResponse response = api.updateNotification(tenantId, id, updateNotificationBody) .userId(userId) .execute(); // TODO: test validations @@ -1751,7 +1777,7 @@ public void updateQuestionConfigTest() throws ApiException { String tenantId = null; String id = null; UpdateQuestionConfigBody updateQuestionConfigBody = null; - APIEmptyResponse response = api.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) + UpdateQuestionConfigResponse response = api.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) .execute(); // TODO: test validations } @@ -1764,7 +1790,7 @@ public void updateQuestionResultTest() throws ApiException { String tenantId = null; String id = null; UpdateQuestionResultBody updateQuestionResultBody = null; - APIEmptyResponse response = api.updateQuestionResult(tenantId, id, updateQuestionResultBody) + UpdateQuestionResultResponse response = api.updateQuestionResult(tenantId, id, updateQuestionResultBody) .execute(); // TODO: test validations } @@ -1792,7 +1818,7 @@ public void updateTenantTest() throws ApiException { String tenantId = null; String id = null; UpdateTenantBody updateTenantBody = null; - APIEmptyResponse response = api.updateTenant(tenantId, id, updateTenantBody) + UpdateTenantResponse response = api.updateTenant(tenantId, id, updateTenantBody) .execute(); // TODO: test validations } @@ -1805,7 +1831,7 @@ public void updateTenantPackageTest() throws ApiException { String tenantId = null; String id = null; UpdateTenantPackageBody updateTenantPackageBody = null; - APIEmptyResponse response = api.updateTenantPackage(tenantId, id, updateTenantPackageBody) + UpdateTenantPackageResponse response = api.updateTenantPackage(tenantId, id, updateTenantPackageBody) .execute(); // TODO: test validations } @@ -1819,7 +1845,7 @@ public void updateTenantUserTest() throws ApiException { String id = null; UpdateTenantUserBody updateTenantUserBody = null; String updateComments = null; - APIEmptyResponse response = api.updateTenantUser(tenantId, id, updateTenantUserBody) + UpdateTenantUserResponse response = api.updateTenantUser(tenantId, id, updateTenantUserBody) .updateComments(updateComments) .execute(); // TODO: test validations @@ -1833,7 +1859,7 @@ public void updateUserBadgeTest() throws ApiException { String tenantId = null; String id = null; UpdateUserBadgeParams updateUserBadgeParams = null; - APIEmptySuccessResponse response = api.updateUserBadge(tenantId, id, updateUserBadgeParams) + UpdateUserBadgeResponse 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 index 2ae109ff..900b40fb 100644 --- a/client/src/test/java/com/fastcomments/api/ModerationApiTest.java +++ b/client/src/test/java/com/fastcomments/api/ModerationApiTest.java @@ -14,47 +14,54 @@ 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.DeleteModerationVoteResponse; +import com.fastcomments.model.GetApiCommentsResponse; +import com.fastcomments.model.GetApiExportStatusResponse; +import com.fastcomments.model.GetApiIdsResponse; +import com.fastcomments.model.GetBanUsersFromCommentResponse; +import com.fastcomments.model.GetCommentBanStatusResponse1; +import com.fastcomments.model.GetCommentChildrenResponse; +import com.fastcomments.model.GetCountResponse; +import com.fastcomments.model.GetCountsResponse; +import com.fastcomments.model.GetLogsResponse; +import com.fastcomments.model.GetManualBadgesForUserResponse; +import com.fastcomments.model.GetManualBadgesResponse; +import com.fastcomments.model.GetModerationCommentResponse; +import com.fastcomments.model.GetModerationCommentTextResponse; +import com.fastcomments.model.GetPreBanSummaryResponse; +import com.fastcomments.model.GetSearchCommentsSummaryResponse; +import com.fastcomments.model.GetSearchPagesResponse; +import com.fastcomments.model.GetSearchSitesResponse; +import com.fastcomments.model.GetSearchSuggestResponse; +import com.fastcomments.model.GetSearchUsersResponse; +import com.fastcomments.model.GetTrustFactorResponse; +import com.fastcomments.model.GetUserBanPreferenceResponse; +import com.fastcomments.model.GetUserInternalProfileResponse1; +import com.fastcomments.model.PostAdjustCommentVotesResponse; +import com.fastcomments.model.PostApiExportResponse; +import com.fastcomments.model.PostBanUserFromCommentResponse; +import com.fastcomments.model.PostBanUserUndoResponse; +import com.fastcomments.model.PostBulkPreBanSummaryResponse; +import com.fastcomments.model.PostCommentsByIdsResponse; +import com.fastcomments.model.PostFlagCommentResponse; import com.fastcomments.model.PostRemoveCommentResponse; -import com.fastcomments.model.PreBanSummary; -import com.fastcomments.model.RemoveUserBadgeResponse; -import com.fastcomments.model.SetCommentApprovedResponse; +import com.fastcomments.model.PostRestoreDeletedCommentResponse; +import com.fastcomments.model.PostSetCommentApprovalStatusResponse; +import com.fastcomments.model.PostSetCommentReviewStatusResponse; +import com.fastcomments.model.PostSetCommentSpamStatusResponse; +import com.fastcomments.model.PostSetCommentTextResponse; +import com.fastcomments.model.PostUnFlagCommentResponse; +import com.fastcomments.model.PostVoteResponse; +import com.fastcomments.model.PutAwardBadgeResponse; +import com.fastcomments.model.PutCloseThreadResponse; +import com.fastcomments.model.PutRemoveBadgeResponse; +import com.fastcomments.model.PutReopenThreadResponse; 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 com.fastcomments.model.SetTrustFactorResponse; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -78,8 +85,12 @@ public class ModerationApiTest { public void deleteModerationVoteTest() throws ApiException { String commentId = null; String voteId = null; + String broadcastId = null; + String tenantId = null; String sso = null; - VoteDeleteResponse response = api.deleteModerationVote(commentId, voteId) + DeleteModerationVoteResponse response = api.deleteModerationVote(commentId, voteId) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -98,8 +109,9 @@ public void getApiCommentsTest() throws ApiException { String searchFilters = null; String sorts = null; Boolean demo = null; + String tenantId = null; String sso = null; - ModerationAPIGetCommentsResponse response = api.getApiComments() + GetApiCommentsResponse response = api.getApiComments() .page(page) .count(count) .textSearch(textSearch) @@ -108,6 +120,7 @@ public void getApiCommentsTest() throws ApiException { .searchFilters(searchFilters) .sorts(sorts) .demo(demo) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -119,9 +132,11 @@ public void getApiCommentsTest() throws ApiException { @Test public void getApiExportStatusTest() throws ApiException { String batchJobId = null; + String tenantId = null; String sso = null; - ModerationExportStatusResponse response = api.getApiExportStatus() + GetApiExportStatusResponse response = api.getApiExportStatus() .batchJobId(batchJobId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -138,14 +153,16 @@ public void getApiIdsTest() throws ApiException { String searchFilters = null; String afterId = null; Boolean demo = null; + String tenantId = null; String sso = null; - ModerationAPIGetCommentIdsResponse response = api.getApiIds() + GetApiIdsResponse response = api.getApiIds() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) .searchFilters(searchFilters) .afterId(afterId) .demo(demo) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -157,8 +174,10 @@ public void getApiIdsTest() throws ApiException { @Test public void getBanUsersFromCommentTest() throws ApiException { String commentId = null; + String tenantId = null; String sso = null; - GetBannedUsersFromCommentResponse response = api.getBanUsersFromComment(commentId) + GetBanUsersFromCommentResponse response = api.getBanUsersFromComment(commentId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -170,8 +189,10 @@ public void getBanUsersFromCommentTest() throws ApiException { @Test public void getCommentBanStatusTest() throws ApiException { String commentId = null; + String tenantId = null; String sso = null; - GetCommentBanStatusResponse response = api.getCommentBanStatus(commentId) + GetCommentBanStatusResponse1 response = api.getCommentBanStatus(commentId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -183,8 +204,10 @@ public void getCommentBanStatusTest() throws ApiException { @Test public void getCommentChildrenTest() throws ApiException { String commentId = null; + String tenantId = null; String sso = null; - ModerationAPIChildCommentsResponse response = api.getCommentChildren(commentId) + GetCommentChildrenResponse response = api.getCommentChildren(commentId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -200,13 +223,15 @@ public void getCountTest() throws ApiException { String filter = null; String searchFilters = null; Boolean demo = null; + String tenantId = null; String sso = null; - ModerationAPICountCommentsResponse response = api.getCount() + GetCountResponse response = api.getCount() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filter(filter) .searchFilters(searchFilters) .demo(demo) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -217,8 +242,10 @@ public void getCountTest() throws ApiException { */ @Test public void getCountsTest() throws ApiException { + String tenantId = null; String sso = null; - GetBannedUsersCountResponse response = api.getCounts() + GetCountsResponse response = api.getCounts() + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -230,8 +257,10 @@ public void getCountsTest() throws ApiException { @Test public void getLogsTest() throws ApiException { String commentId = null; + String tenantId = null; String sso = null; - ModerationAPIGetLogsResponse response = api.getLogs(commentId) + GetLogsResponse response = api.getLogs(commentId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -242,8 +271,10 @@ public void getLogsTest() throws ApiException { */ @Test public void getManualBadgesTest() throws ApiException { + String tenantId = null; String sso = null; - GetTenantManualBadgesResponse response = api.getManualBadges() + GetManualBadgesResponse response = api.getManualBadges() + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -256,10 +287,12 @@ public void getManualBadgesTest() throws ApiException { public void getManualBadgesForUserTest() throws ApiException { String badgesUserId = null; String commentId = null; + String tenantId = null; String sso = null; - GetUserManualBadgesResponse response = api.getManualBadgesForUser() + GetManualBadgesForUserResponse response = api.getManualBadgesForUser() .badgesUserId(badgesUserId) .commentId(commentId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -273,10 +306,12 @@ public void getModerationCommentTest() throws ApiException { String commentId = null; Boolean includeEmail = null; Boolean includeIP = null; + String tenantId = null; String sso = null; - ModerationAPICommentResponse response = api.getModerationComment(commentId) + GetModerationCommentResponse response = api.getModerationComment(commentId) .includeEmail(includeEmail) .includeIP(includeIP) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -288,8 +323,10 @@ public void getModerationCommentTest() throws ApiException { @Test public void getModerationCommentTextTest() throws ApiException { String commentId = null; + String tenantId = null; String sso = null; - GetCommentTextResponse response = api.getModerationCommentText(commentId) + GetModerationCommentTextResponse response = api.getModerationCommentText(commentId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -304,11 +341,13 @@ public void getPreBanSummaryTest() throws ApiException { Boolean includeByUserIdAndEmail = null; Boolean includeByIP = null; Boolean includeByEmailDomain = null; + String tenantId = null; String sso = null; - PreBanSummary response = api.getPreBanSummary(commentId) + GetPreBanSummaryResponse response = api.getPreBanSummary(commentId) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -322,11 +361,13 @@ public void getSearchCommentsSummaryTest() throws ApiException { String value = null; String filters = null; String searchFilters = null; + String tenantId = null; String sso = null; - ModerationCommentSearchResponse response = api.getSearchCommentsSummary() + GetSearchCommentsSummaryResponse response = api.getSearchCommentsSummary() .value(value) .filters(filters) .searchFilters(searchFilters) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -338,9 +379,11 @@ public void getSearchCommentsSummaryTest() throws ApiException { @Test public void getSearchPagesTest() throws ApiException { String value = null; + String tenantId = null; String sso = null; - ModerationPageSearchResponse response = api.getSearchPages() + GetSearchPagesResponse response = api.getSearchPages() .value(value) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -352,9 +395,11 @@ public void getSearchPagesTest() throws ApiException { @Test public void getSearchSitesTest() throws ApiException { String value = null; + String tenantId = null; String sso = null; - ModerationSiteSearchResponse response = api.getSearchSites() + GetSearchSitesResponse response = api.getSearchSites() .value(value) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -366,9 +411,11 @@ public void getSearchSitesTest() throws ApiException { @Test public void getSearchSuggestTest() throws ApiException { String textSearch = null; + String tenantId = null; String sso = null; - ModerationSuggestResponse response = api.getSearchSuggest() + GetSearchSuggestResponse response = api.getSearchSuggest() .textSearch(textSearch) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -380,9 +427,11 @@ public void getSearchSuggestTest() throws ApiException { @Test public void getSearchUsersTest() throws ApiException { String value = null; + String tenantId = null; String sso = null; - ModerationUserSearchResponse response = api.getSearchUsers() + GetSearchUsersResponse response = api.getSearchUsers() .value(value) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -394,9 +443,11 @@ public void getSearchUsersTest() throws ApiException { @Test public void getTrustFactorTest() throws ApiException { String userId = null; + String tenantId = null; String sso = null; - GetUserTrustFactorResponse response = api.getTrustFactor() + GetTrustFactorResponse response = api.getTrustFactor() .userId(userId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -407,8 +458,10 @@ public void getTrustFactorTest() throws ApiException { */ @Test public void getUserBanPreferenceTest() throws ApiException { + String tenantId = null; String sso = null; - APIModerateGetUserBanPreferencesResponse response = api.getUserBanPreference() + GetUserBanPreferenceResponse response = api.getUserBanPreference() + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -420,9 +473,11 @@ public void getUserBanPreferenceTest() throws ApiException { @Test public void getUserInternalProfileTest() throws ApiException { String commentId = null; + String tenantId = null; String sso = null; - GetUserInternalProfileResponse response = api.getUserInternalProfile() + GetUserInternalProfileResponse1 response = api.getUserInternalProfile() .commentId(commentId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -435,8 +490,12 @@ public void getUserInternalProfileTest() throws ApiException { public void postAdjustCommentVotesTest() throws ApiException { String commentId = null; AdjustCommentVotesParams adjustCommentVotesParams = null; + String broadcastId = null; + String tenantId = null; String sso = null; - AdjustVotesResponse response = api.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + PostAdjustCommentVotesResponse response = api.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -452,13 +511,15 @@ public void postApiExportTest() throws ApiException { String filters = null; String searchFilters = null; String sorts = null; + String tenantId = null; String sso = null; - ModerationExportResponse response = api.postApiExport() + PostApiExportResponse response = api.postApiExport() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) .searchFilters(searchFilters) .sorts(sorts) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -478,8 +539,9 @@ public void postBanUserFromCommentTest() throws ApiException { Boolean isShadowBan = null; String updateId = null; String banReason = null; + String tenantId = null; String sso = null; - BanUserFromCommentResult response = api.postBanUserFromComment(commentId) + PostBanUserFromCommentResponse response = api.postBanUserFromComment(commentId) .banEmail(banEmail) .banEmailDomain(banEmailDomain) .banIP(banIP) @@ -488,6 +550,7 @@ public void postBanUserFromCommentTest() throws ApiException { .isShadowBan(isShadowBan) .updateId(updateId) .banReason(banReason) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -499,8 +562,10 @@ public void postBanUserFromCommentTest() throws ApiException { @Test public void postBanUserUndoTest() throws ApiException { BanUserUndoParams banUserUndoParams = null; + String tenantId = null; String sso = null; - APIEmptyResponse response = api.postBanUserUndo(banUserUndoParams) + PostBanUserUndoResponse response = api.postBanUserUndo(banUserUndoParams) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -515,11 +580,13 @@ public void postBulkPreBanSummaryTest() throws ApiException { Boolean includeByUserIdAndEmail = null; Boolean includeByIP = null; Boolean includeByEmailDomain = null; + String tenantId = null; String sso = null; - BulkPreBanSummary response = api.postBulkPreBanSummary(bulkPreBanParams) + PostBulkPreBanSummaryResponse response = api.postBulkPreBanSummary(bulkPreBanParams) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -531,8 +598,10 @@ public void postBulkPreBanSummaryTest() throws ApiException { @Test public void postCommentsByIdsTest() throws ApiException { CommentsByIdsParams commentsByIdsParams = null; + String tenantId = null; String sso = null; - ModerationAPIChildCommentsResponse response = api.postCommentsByIds(commentsByIdsParams) + PostCommentsByIdsResponse response = api.postCommentsByIds(commentsByIdsParams) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -544,8 +613,12 @@ public void postCommentsByIdsTest() throws ApiException { @Test public void postFlagCommentTest() throws ApiException { String commentId = null; + String broadcastId = null; + String tenantId = null; String sso = null; - APIEmptyResponse response = api.postFlagComment(commentId) + PostFlagCommentResponse response = api.postFlagComment(commentId) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -557,8 +630,12 @@ public void postFlagCommentTest() throws ApiException { @Test public void postRemoveCommentTest() throws ApiException { String commentId = null; + String broadcastId = null; + String tenantId = null; String sso = null; PostRemoveCommentResponse response = api.postRemoveComment(commentId) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -570,8 +647,12 @@ public void postRemoveCommentTest() throws ApiException { @Test public void postRestoreDeletedCommentTest() throws ApiException { String commentId = null; + String broadcastId = null; + String tenantId = null; String sso = null; - APIEmptyResponse response = api.postRestoreDeletedComment(commentId) + PostRestoreDeletedCommentResponse response = api.postRestoreDeletedComment(commentId) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -584,9 +665,13 @@ public void postRestoreDeletedCommentTest() throws ApiException { public void postSetCommentApprovalStatusTest() throws ApiException { String commentId = null; Boolean approved = null; + String broadcastId = null; + String tenantId = null; String sso = null; - SetCommentApprovedResponse response = api.postSetCommentApprovalStatus(commentId) + PostSetCommentApprovalStatusResponse response = api.postSetCommentApprovalStatus(commentId) .approved(approved) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -599,9 +684,13 @@ public void postSetCommentApprovalStatusTest() throws ApiException { public void postSetCommentReviewStatusTest() throws ApiException { String commentId = null; Boolean reviewed = null; + String broadcastId = null; + String tenantId = null; String sso = null; - APIEmptyResponse response = api.postSetCommentReviewStatus(commentId) + PostSetCommentReviewStatusResponse response = api.postSetCommentReviewStatus(commentId) .reviewed(reviewed) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -615,10 +704,14 @@ public void postSetCommentSpamStatusTest() throws ApiException { String commentId = null; Boolean spam = null; Boolean permNotSpam = null; + String broadcastId = null; + String tenantId = null; String sso = null; - APIEmptyResponse response = api.postSetCommentSpamStatus(commentId) + PostSetCommentSpamStatusResponse response = api.postSetCommentSpamStatus(commentId) .spam(spam) .permNotSpam(permNotSpam) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -631,8 +724,12 @@ public void postSetCommentSpamStatusTest() throws ApiException { public void postSetCommentTextTest() throws ApiException { String commentId = null; SetCommentTextParams setCommentTextParams = null; + String broadcastId = null; + String tenantId = null; String sso = null; - SetCommentTextResponse response = api.postSetCommentText(commentId, setCommentTextParams) + PostSetCommentTextResponse response = api.postSetCommentText(commentId, setCommentTextParams) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -644,8 +741,12 @@ public void postSetCommentTextTest() throws ApiException { @Test public void postUnFlagCommentTest() throws ApiException { String commentId = null; + String broadcastId = null; + String tenantId = null; String sso = null; - APIEmptyResponse response = api.postUnFlagComment(commentId) + PostUnFlagCommentResponse response = api.postUnFlagComment(commentId) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -658,9 +759,13 @@ public void postUnFlagCommentTest() throws ApiException { public void postVoteTest() throws ApiException { String commentId = null; String direction = null; + String broadcastId = null; + String tenantId = null; String sso = null; - VoteResponse response = api.postVote(commentId) + PostVoteResponse response = api.postVote(commentId) .direction(direction) + .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -675,11 +780,13 @@ public void putAwardBadgeTest() throws ApiException { String userId = null; String commentId = null; String broadcastId = null; + String tenantId = null; String sso = null; - AwardUserBadgeResponse response = api.putAwardBadge(badgeId) + PutAwardBadgeResponse response = api.putAwardBadge(badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -691,8 +798,10 @@ public void putAwardBadgeTest() throws ApiException { @Test public void putCloseThreadTest() throws ApiException { String urlId = null; + String tenantId = null; String sso = null; - APIEmptyResponse response = api.putCloseThread(urlId) + PutCloseThreadResponse response = api.putCloseThread(urlId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -707,11 +816,13 @@ public void putRemoveBadgeTest() throws ApiException { String userId = null; String commentId = null; String broadcastId = null; + String tenantId = null; String sso = null; - RemoveUserBadgeResponse response = api.putRemoveBadge(badgeId) + PutRemoveBadgeResponse response = api.putRemoveBadge(badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -723,8 +834,10 @@ public void putRemoveBadgeTest() throws ApiException { @Test public void putReopenThreadTest() throws ApiException { String urlId = null; + String tenantId = null; String sso = null; - APIEmptyResponse response = api.putReopenThread(urlId) + PutReopenThreadResponse response = api.putReopenThread(urlId) + .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -737,10 +850,12 @@ public void putReopenThreadTest() throws ApiException { public void setTrustFactorTest() throws ApiException { String userId = null; String trustFactor = null; + String tenantId = null; String sso = null; - SetUserTrustFactorResponse response = api.setTrustFactor() + SetTrustFactorResponse response = api.setTrustFactor() .userId(userId) .trustFactor(trustFactor) + .tenantId(tenantId) .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 05eb90e0..f1179a0a 100644 --- a/client/src/test/java/com/fastcomments/api/PublicApiTest.java +++ b/client/src/test/java/com/fastcomments/api/PublicApiTest.java @@ -16,58 +16,68 @@ import com.fastcomments.invoker.ApiException; import com.fastcomments.model.APIEmptyResponse; import com.fastcomments.model.APIError; -import com.fastcomments.model.BlockSuccess; -import com.fastcomments.model.ChangeCommentPinStatusResponse; -import com.fastcomments.model.CheckBlockedCommentsResponse; +import com.fastcomments.model.BlockFromCommentPublicResponse; +import com.fastcomments.model.CheckedCommentsForBlockedResponse; import com.fastcomments.model.CommentData; import com.fastcomments.model.CommentTextUpdateRequest; +import com.fastcomments.model.CreateCommentPublicResponse; import com.fastcomments.model.CreateFeedPostParams; -import com.fastcomments.model.CreateFeedPostResponse; -import com.fastcomments.model.CreateV1PageReact; +import com.fastcomments.model.CreateFeedPostPublicResponse; +import com.fastcomments.model.CreateV1PageReactResponse; +import com.fastcomments.model.CreateV2PageReactResponse; +import com.fastcomments.model.DeleteCommentPublicResponse; +import com.fastcomments.model.DeleteCommentVoteResponse; import com.fastcomments.model.DeleteFeedPostPublicResponse; -import com.fastcomments.model.FeedPostsStatsResponse; +import com.fastcomments.model.DeleteV1PageReactResponse; +import com.fastcomments.model.DeleteV2PageReactResponse; import java.io.File; -import com.fastcomments.model.GetCommentVoteUserNamesSuccessResponse; -import com.fastcomments.model.GetCommentsForUserResponse; -import com.fastcomments.model.GetCommentsResponseWithPresencePublicComment; -import com.fastcomments.model.GetEventLogResponse; +import com.fastcomments.model.FlagCommentPublicResponse; +import com.fastcomments.model.GetCommentTextResponse1; +import com.fastcomments.model.GetCommentVoteUserNamesResponse; +import com.fastcomments.model.GetCommentsForUserResponse1; +import com.fastcomments.model.GetCommentsPublicResponse; +import com.fastcomments.model.GetEventLogResponse1; +import com.fastcomments.model.GetFeedPostsPublicResponse; +import com.fastcomments.model.GetFeedPostsStatsResponse; +import com.fastcomments.model.GetGifLargeResponse; 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.GetGlobalEventLogResponse; +import com.fastcomments.model.GetOfflineUsersResponse; +import com.fastcomments.model.GetOnlineUsersResponse; +import com.fastcomments.model.GetPagesPublicResponse; +import com.fastcomments.model.GetTranslationsResponse1; +import com.fastcomments.model.GetUserNotificationCountResponse1; +import com.fastcomments.model.GetUserNotificationsResponse; +import com.fastcomments.model.GetUserPresenceStatusesResponse1; +import com.fastcomments.model.GetUserReactsPublicResponse; +import com.fastcomments.model.GetUsersInfoResponse; +import com.fastcomments.model.GetV1PageLikesResponse; +import com.fastcomments.model.GetV2PageReactUsersResponse1; +import com.fastcomments.model.GetV2PageReactsResponse; +import com.fastcomments.model.LockCommentResponse; import com.fastcomments.model.PagesSortBy; -import com.fastcomments.model.PublicAPIDeleteCommentResponse; -import com.fastcomments.model.PublicAPIGetCommentTextResponse; -import com.fastcomments.model.PublicAPISetCommentTextResponse; +import com.fastcomments.model.PinCommentResponse; import com.fastcomments.model.PublicBlockFromCommentParams; -import com.fastcomments.model.PublicFeedPostsResponse; import com.fastcomments.model.ReactBodyParams; -import com.fastcomments.model.ReactFeedPostResponse; -import com.fastcomments.model.ResetUserNotificationsResponse; -import com.fastcomments.model.SaveCommentsResponseWithPresence; -import com.fastcomments.model.SearchUsersResult; +import com.fastcomments.model.ReactFeedPostPublicResponse; +import com.fastcomments.model.ResetUserNotificationCountResponse; +import com.fastcomments.model.ResetUserNotificationsResponse1; +import com.fastcomments.model.SearchUsersResponse1; +import com.fastcomments.model.SetCommentTextResponse1; import com.fastcomments.model.SizePreset; import com.fastcomments.model.SortDirections; -import com.fastcomments.model.UnblockSuccess; +import com.fastcomments.model.UnBlockCommentPublicResponse; +import com.fastcomments.model.UnLockCommentResponse; +import com.fastcomments.model.UnPinCommentResponse; import com.fastcomments.model.UpdateFeedPostParams; +import com.fastcomments.model.UpdateFeedPostPublicResponse; 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.VoteDeleteResponse; -import com.fastcomments.model.VoteResponse; +import com.fastcomments.model.VoteCommentResponse; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -93,7 +103,7 @@ public void blockFromCommentPublicTest() throws ApiException { String commentId = null; PublicBlockFromCommentParams publicBlockFromCommentParams = null; String sso = null; - BlockSuccess response = api.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + BlockFromCommentPublicResponse response = api.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); // TODO: test validations @@ -107,7 +117,7 @@ public void checkedCommentsForBlockedTest() throws ApiException { String tenantId = null; String commentIds = null; String sso = null; - CheckBlockedCommentsResponse response = api.checkedCommentsForBlocked(tenantId, commentIds) + CheckedCommentsForBlockedResponse response = api.checkedCommentsForBlocked(tenantId, commentIds) .sso(sso) .execute(); // TODO: test validations @@ -124,7 +134,7 @@ public void createCommentPublicTest() throws ApiException { CommentData commentData = null; String sessionId = null; String sso = null; - SaveCommentsResponseWithPresence response = api.createCommentPublic(tenantId, urlId, broadcastId, commentData) + CreateCommentPublicResponse response = api.createCommentPublic(tenantId, urlId, broadcastId, commentData) .sessionId(sessionId) .sso(sso) .execute(); @@ -140,7 +150,7 @@ public void createFeedPostPublicTest() throws ApiException { CreateFeedPostParams createFeedPostParams = null; String broadcastId = null; String sso = null; - CreateFeedPostResponse response = api.createFeedPostPublic(tenantId, createFeedPostParams) + CreateFeedPostPublicResponse response = api.createFeedPostPublic(tenantId, createFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); @@ -155,7 +165,7 @@ public void createV1PageReactTest() throws ApiException { String tenantId = null; String urlId = null; String title = null; - CreateV1PageReact response = api.createV1PageReact(tenantId, urlId) + CreateV1PageReactResponse response = api.createV1PageReact(tenantId, urlId) .title(title) .execute(); // TODO: test validations @@ -170,7 +180,7 @@ public void createV2PageReactTest() throws ApiException { String urlId = null; String id = null; String title = null; - CreateV1PageReact response = api.createV2PageReact(tenantId, urlId, id) + CreateV2PageReactResponse response = api.createV2PageReact(tenantId, urlId, id) .title(title) .execute(); // TODO: test validations @@ -186,7 +196,7 @@ public void deleteCommentPublicTest() throws ApiException { String broadcastId = null; String editKey = null; String sso = null; - PublicAPIDeleteCommentResponse response = api.deleteCommentPublic(tenantId, commentId, broadcastId) + DeleteCommentPublicResponse response = api.deleteCommentPublic(tenantId, commentId, broadcastId) .editKey(editKey) .sso(sso) .execute(); @@ -205,7 +215,7 @@ public void deleteCommentVoteTest() throws ApiException { String broadcastId = null; String editKey = null; String sso = null; - VoteDeleteResponse response = api.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) + DeleteCommentVoteResponse response = api.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) .editKey(editKey) .sso(sso) .execute(); @@ -235,7 +245,7 @@ public void deleteFeedPostPublicTest() throws ApiException { public void deleteV1PageReactTest() throws ApiException { String tenantId = null; String urlId = null; - CreateV1PageReact response = api.deleteV1PageReact(tenantId, urlId) + DeleteV1PageReactResponse response = api.deleteV1PageReact(tenantId, urlId) .execute(); // TODO: test validations } @@ -248,7 +258,7 @@ public void deleteV2PageReactTest() throws ApiException { String tenantId = null; String urlId = null; String id = null; - CreateV1PageReact response = api.deleteV2PageReact(tenantId, urlId, id) + DeleteV2PageReactResponse response = api.deleteV2PageReact(tenantId, urlId, id) .execute(); // TODO: test validations } @@ -262,7 +272,7 @@ public void flagCommentPublicTest() throws ApiException { String commentId = null; Boolean isFlagged = null; String sso = null; - APIEmptyResponse response = api.flagCommentPublic(tenantId, commentId, isFlagged) + FlagCommentPublicResponse response = api.flagCommentPublic(tenantId, commentId, isFlagged) .sso(sso) .execute(); // TODO: test validations @@ -277,7 +287,7 @@ public void getCommentTextTest() throws ApiException { String commentId = null; String editKey = null; String sso = null; - PublicAPIGetCommentTextResponse response = api.getCommentText(tenantId, commentId) + GetCommentTextResponse1 response = api.getCommentText(tenantId, commentId) .editKey(editKey) .sso(sso) .execute(); @@ -293,7 +303,7 @@ public void getCommentVoteUserNamesTest() throws ApiException { String commentId = null; Integer dir = null; String sso = null; - GetCommentVoteUserNamesSuccessResponse response = api.getCommentVoteUserNames(tenantId, commentId, dir) + GetCommentVoteUserNamesResponse response = api.getCommentVoteUserNames(tenantId, commentId, dir) .sso(sso) .execute(); // TODO: test validations @@ -311,7 +321,7 @@ public void getCommentsForUserTest() throws ApiException { Boolean includei10n = null; String locale = null; Boolean isCrawler = null; - GetCommentsForUserResponse response = api.getCommentsForUser() + GetCommentsForUserResponse1 response = api.getCommentsForUser() .userId(userId) .direction(direction) .repliesToUserId(repliesToUserId) @@ -358,7 +368,7 @@ public void getCommentsPublicTest() throws ApiException { String customConfigStr = null; String afterCommentId = null; String beforeCommentId = null; - GetCommentsResponseWithPresencePublicComment response = api.getCommentsPublic(tenantId, urlId) + GetCommentsPublicResponse response = api.getCommentsPublic(tenantId, urlId) .page(page) .direction(direction) .sso(sso) @@ -401,7 +411,7 @@ public void getEventLogTest() throws ApiException { String userIdWS = null; Long startTime = null; Long endTime = null; - GetEventLogResponse response = api.getEventLog(tenantId, urlId, userIdWS, startTime) + GetEventLogResponse1 response = api.getEventLog(tenantId, urlId, userIdWS, startTime) .endTime(endTime) .execute(); // TODO: test validations @@ -421,7 +431,7 @@ public void getFeedPostsPublicTest() throws ApiException { String sso = null; Boolean isCrawler = null; Boolean includeUserInfo = null; - PublicFeedPostsResponse response = api.getFeedPostsPublic(tenantId) + GetFeedPostsPublicResponse response = api.getFeedPostsPublic(tenantId) .afterId(afterId) .limit(limit) .tags(tags) @@ -440,7 +450,7 @@ public void getFeedPostsStatsTest() throws ApiException { String tenantId = null; List postIds = null; String sso = null; - FeedPostsStatsResponse response = api.getFeedPostsStats(tenantId, postIds) + GetFeedPostsStatsResponse response = api.getFeedPostsStats(tenantId, postIds) .sso(sso) .execute(); // TODO: test validations @@ -453,7 +463,7 @@ public void getFeedPostsStatsTest() throws ApiException { public void getGifLargeTest() throws ApiException { String tenantId = null; String largeInternalURLSanitized = null; - GifGetLargeResponse response = api.getGifLarge(tenantId, largeInternalURLSanitized) + GetGifLargeResponse response = api.getGifLarge(tenantId, largeInternalURLSanitized) .execute(); // TODO: test validations } @@ -505,7 +515,7 @@ public void getGlobalEventLogTest() throws ApiException { String userIdWS = null; Long startTime = null; Long endTime = null; - GetEventLogResponse response = api.getGlobalEventLog(tenantId, urlId, userIdWS, startTime) + GetGlobalEventLogResponse response = api.getGlobalEventLog(tenantId, urlId, userIdWS, startTime) .endTime(endTime) .execute(); // TODO: test validations @@ -522,7 +532,7 @@ public void getOfflineUsersTest() throws ApiException { String urlId = null; String afterName = null; String afterUserId = null; - PageUsersOfflineResponse response = api.getOfflineUsers(tenantId, urlId) + GetOfflineUsersResponse response = api.getOfflineUsers(tenantId, urlId) .afterName(afterName) .afterUserId(afterUserId) .execute(); @@ -540,7 +550,7 @@ public void getOnlineUsersTest() throws ApiException { String urlId = null; String afterName = null; String afterUserId = null; - PageUsersOnlineResponse response = api.getOnlineUsers(tenantId, urlId) + GetOnlineUsersResponse response = api.getOnlineUsers(tenantId, urlId) .afterName(afterName) .afterUserId(afterUserId) .execute(); @@ -560,7 +570,7 @@ public void getPagesPublicTest() throws ApiException { String q = null; PagesSortBy sortBy = null; Boolean hasComments = null; - GetPublicPagesResponse response = api.getPagesPublic(tenantId) + GetPagesPublicResponse response = api.getPagesPublic(tenantId) .cursor(cursor) .limit(limit) .q(q) @@ -579,7 +589,7 @@ public void getTranslationsTest() throws ApiException { String component = null; String locale = null; Boolean useFullTranslationIds = null; - GetTranslationsResponse response = api.getTranslations(namespace, component) + GetTranslationsResponse1 response = api.getTranslations(namespace, component) .locale(locale) .useFullTranslationIds(useFullTranslationIds) .execute(); @@ -593,7 +603,7 @@ public void getTranslationsTest() throws ApiException { public void getUserNotificationCountTest() throws ApiException { String tenantId = null; String sso = null; - GetUserNotificationCountResponse response = api.getUserNotificationCount(tenantId) + GetUserNotificationCountResponse1 response = api.getUserNotificationCount(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -616,7 +626,7 @@ public void getUserNotificationsTest() throws ApiException { Boolean includeTranslations = null; Boolean includeTenantNotifications = null; String sso = null; - GetMyNotificationsResponse response = api.getUserNotifications(tenantId) + GetUserNotificationsResponse response = api.getUserNotifications(tenantId) .urlId(urlId) .pageSize(pageSize) .afterId(afterId) @@ -640,7 +650,7 @@ public void getUserPresenceStatusesTest() throws ApiException { String tenantId = null; String urlIdWS = null; String userIds = null; - GetUserPresenceStatusesResponse response = api.getUserPresenceStatuses(tenantId, urlIdWS, userIds) + GetUserPresenceStatusesResponse1 response = api.getUserPresenceStatuses(tenantId, urlIdWS, userIds) .execute(); // TODO: test validations } @@ -653,7 +663,7 @@ public void getUserReactsPublicTest() throws ApiException { String tenantId = null; List postIds = null; String sso = null; - UserReactsResponse response = api.getUserReactsPublic(tenantId) + GetUserReactsPublicResponse response = api.getUserReactsPublic(tenantId) .postIds(postIds) .sso(sso) .execute(); @@ -669,7 +679,7 @@ public void getUserReactsPublicTest() throws ApiException { public void getUsersInfoTest() throws ApiException { String tenantId = null; String ids = null; - PageUsersInfoResponse response = api.getUsersInfo(tenantId, ids) + GetUsersInfoResponse response = api.getUsersInfo(tenantId, ids) .execute(); // TODO: test validations } @@ -681,7 +691,7 @@ public void getUsersInfoTest() throws ApiException { public void getV1PageLikesTest() throws ApiException { String tenantId = null; String urlId = null; - GetV1PageLikes response = api.getV1PageLikes(tenantId, urlId) + GetV1PageLikesResponse response = api.getV1PageLikes(tenantId, urlId) .execute(); // TODO: test validations } @@ -694,7 +704,7 @@ public void getV2PageReactUsersTest() throws ApiException { String tenantId = null; String urlId = null; String id = null; - GetV2PageReactUsersResponse response = api.getV2PageReactUsers(tenantId, urlId, id) + GetV2PageReactUsersResponse1 response = api.getV2PageReactUsers(tenantId, urlId, id) .execute(); // TODO: test validations } @@ -706,7 +716,7 @@ public void getV2PageReactUsersTest() throws ApiException { public void getV2PageReactsTest() throws ApiException { String tenantId = null; String urlId = null; - GetV2PageReacts response = api.getV2PageReacts(tenantId, urlId) + GetV2PageReactsResponse response = api.getV2PageReacts(tenantId, urlId) .execute(); // TODO: test validations } @@ -720,7 +730,7 @@ public void lockCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - APIEmptyResponse response = api.lockComment(tenantId, commentId, broadcastId) + LockCommentResponse response = api.lockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -745,7 +755,7 @@ public void pinCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - ChangeCommentPinStatusResponse response = api.pinComment(tenantId, commentId, broadcastId) + PinCommentResponse response = api.pinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -762,7 +772,7 @@ public void reactFeedPostPublicTest() throws ApiException { Boolean isUndo = null; String broadcastId = null; String sso = null; - ReactFeedPostResponse response = api.reactFeedPostPublic(tenantId, postId, reactBodyParams) + ReactFeedPostPublicResponse response = api.reactFeedPostPublic(tenantId, postId, reactBodyParams) .isUndo(isUndo) .broadcastId(broadcastId) .sso(sso) @@ -777,7 +787,7 @@ public void reactFeedPostPublicTest() throws ApiException { public void resetUserNotificationCountTest() throws ApiException { String tenantId = null; String sso = null; - ResetUserNotificationsResponse response = api.resetUserNotificationCount(tenantId) + ResetUserNotificationCountResponse response = api.resetUserNotificationCount(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -795,7 +805,7 @@ public void resetUserNotificationsTest() throws ApiException { Boolean dmOnly = null; Boolean noDm = null; String sso = null; - ResetUserNotificationsResponse response = api.resetUserNotifications(tenantId) + ResetUserNotificationsResponse1 response = api.resetUserNotifications(tenantId) .afterId(afterId) .afterCreatedAt(afterCreatedAt) .unreadOnly(unreadOnly) @@ -817,7 +827,7 @@ public void searchUsersTest() throws ApiException { List mentionGroupIds = null; String sso = null; String searchSection = null; - SearchUsersResult response = api.searchUsers(tenantId, urlId) + SearchUsersResponse1 response = api.searchUsers(tenantId, urlId) .usernameStartsWith(usernameStartsWith) .mentionGroupIds(mentionGroupIds) .sso(sso) @@ -837,7 +847,7 @@ public void setCommentTextTest() throws ApiException { CommentTextUpdateRequest commentTextUpdateRequest = null; String editKey = null; String sso = null; - PublicAPISetCommentTextResponse response = api.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) + SetCommentTextResponse1 response = api.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) .editKey(editKey) .sso(sso) .execute(); @@ -853,7 +863,7 @@ public void unBlockCommentPublicTest() throws ApiException { String commentId = null; PublicBlockFromCommentParams publicBlockFromCommentParams = null; String sso = null; - UnblockSuccess response = api.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + UnBlockCommentPublicResponse response = api.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); // TODO: test validations @@ -868,7 +878,7 @@ public void unLockCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - APIEmptyResponse response = api.unLockComment(tenantId, commentId, broadcastId) + UnLockCommentResponse response = api.unLockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -883,7 +893,7 @@ public void unPinCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - ChangeCommentPinStatusResponse response = api.unPinComment(tenantId, commentId, broadcastId) + UnPinCommentResponse response = api.unPinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -899,7 +909,7 @@ public void updateFeedPostPublicTest() throws ApiException { UpdateFeedPostParams updateFeedPostParams = null; String broadcastId = null; String sso = null; - CreateFeedPostResponse response = api.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) + UpdateFeedPostPublicResponse response = api.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); @@ -988,7 +998,7 @@ public void voteCommentTest() throws ApiException { VoteBodyParams voteBodyParams = null; String sessionId = null; String sso = null; - VoteResponse response = api.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams) + VoteCommentResponse response = api.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams) .sessionId(sessionId) .sso(sso) .execute(); diff --git a/client/src/test/java/com/fastcomments/model/AddHashTagResponseTest.java b/client/src/test/java/com/fastcomments/model/AddHashTagResponseTest.java new file mode 100644 index 00000000..6d28212d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/AddHashTagResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CreateHashTagResponse; +import com.fastcomments.model.CustomConfigParameters; +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.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AddHashTagResponse + */ +public class AddHashTagResponseTest { + private final AddHashTagResponse model = new AddHashTagResponse(); + + /** + * Model tests for AddHashTagResponse + */ + @Test + public void testAddHashTagResponse() { + // TODO: test AddHashTagResponse + } + + /** + * 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/AddHashTagsBulkResponseTest.java b/client/src/test/java/com/fastcomments/model/AddHashTagsBulkResponseTest.java new file mode 100644 index 00000000..3e4832ba --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/AddHashTagsBulkResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.BulkCreateHashTagsResponse; +import com.fastcomments.model.BulkCreateHashTagsResponseResultsInner; +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 AddHashTagsBulkResponse + */ +public class AddHashTagsBulkResponseTest { + private final AddHashTagsBulkResponse model = new AddHashTagsBulkResponse(); + + /** + * Model tests for AddHashTagsBulkResponse + */ + @Test + public void testAddHashTagsBulkResponse() { + // TODO: test AddHashTagsBulkResponse + } + + /** + * 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/AggregateQuestionResultsResponse1Test.java b/client/src/test/java/com/fastcomments/model/AggregateQuestionResultsResponse1Test.java new file mode 100644 index 00000000..8123a2b5 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/AggregateQuestionResultsResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 AggregateQuestionResultsResponse1 + */ +public class AggregateQuestionResultsResponse1Test { + private final AggregateQuestionResultsResponse1 model = new AggregateQuestionResultsResponse1(); + + /** + * Model tests for AggregateQuestionResultsResponse1 + */ + @Test + public void testAggregateQuestionResultsResponse1() { + // TODO: test AggregateQuestionResultsResponse1 + } + + /** + * 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/BlockFromCommentPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/BlockFromCommentPublicResponseTest.java new file mode 100644 index 00000000..7bac4d9e --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/BlockFromCommentPublicResponseTest.java @@ -0,0 +1,118 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 BlockFromCommentPublicResponse + */ +public class BlockFromCommentPublicResponseTest { + private final BlockFromCommentPublicResponse model = new BlockFromCommentPublicResponse(); + + /** + * Model tests for BlockFromCommentPublicResponse + */ + @Test + public void testBlockFromCommentPublicResponse() { + // TODO: test BlockFromCommentPublicResponse + } + + /** + * 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/BlockUserFromCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/BlockUserFromCommentResponseTest.java new file mode 100644 index 00000000..f9e9f814 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/BlockUserFromCommentResponseTest.java @@ -0,0 +1,118 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 BlockUserFromCommentResponse + */ +public class BlockUserFromCommentResponseTest { + private final BlockUserFromCommentResponse model = new BlockUserFromCommentResponse(); + + /** + * Model tests for BlockUserFromCommentResponse + */ + @Test + public void testBlockUserFromCommentResponse() { + // TODO: test BlockUserFromCommentResponse + } + + /** + * 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/BulkAggregateQuestionResultsResponse1Test.java b/client/src/test/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1Test.java new file mode 100644 index 00000000..6eac601e --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 BulkAggregateQuestionResultsResponse1 + */ +public class BulkAggregateQuestionResultsResponse1Test { + private final BulkAggregateQuestionResultsResponse1 model = new BulkAggregateQuestionResultsResponse1(); + + /** + * Model tests for BulkAggregateQuestionResultsResponse1 + */ + @Test + public void testBulkAggregateQuestionResultsResponse1() { + // TODO: test BulkAggregateQuestionResultsResponse1 + } + + /** + * 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/ChangeTicketStateResponse1Test.java b/client/src/test/java/com/fastcomments/model/ChangeTicketStateResponse1Test.java new file mode 100644 index 00000000..81c65ca4 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ChangeTicketStateResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 ChangeTicketStateResponse1 + */ +public class ChangeTicketStateResponse1Test { + private final ChangeTicketStateResponse1 model = new ChangeTicketStateResponse1(); + + /** + * Model tests for ChangeTicketStateResponse1 + */ + @Test + public void testChangeTicketStateResponse1() { + // TODO: test ChangeTicketStateResponse1 + } + + /** + * 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/CheckedCommentsForBlockedResponseTest.java b/client/src/test/java/com/fastcomments/model/CheckedCommentsForBlockedResponseTest.java new file mode 100644 index 00000000..8a626e6d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CheckedCommentsForBlockedResponseTest.java @@ -0,0 +1,118 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CheckedCommentsForBlockedResponse + */ +public class CheckedCommentsForBlockedResponseTest { + private final CheckedCommentsForBlockedResponse model = new CheckedCommentsForBlockedResponse(); + + /** + * Model tests for CheckedCommentsForBlockedResponse + */ + @Test + public void testCheckedCommentsForBlockedResponse() { + // TODO: test CheckedCommentsForBlockedResponse + } + + /** + * 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/CombineCommentsWithQuestionResultsResponseTest.java b/client/src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponseTest.java new file mode 100644 index 00000000..d7be10ff --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CombineCommentsWithQuestionResultsResponse + */ +public class CombineCommentsWithQuestionResultsResponseTest { + private final CombineCommentsWithQuestionResultsResponse model = new CombineCommentsWithQuestionResultsResponse(); + + /** + * Model tests for CombineCommentsWithQuestionResultsResponse + */ + @Test + public void testCombineCommentsWithQuestionResultsResponse() { + // TODO: test CombineCommentsWithQuestionResultsResponse + } + + /** + * 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/CreateCommentPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateCommentPublicResponseTest.java new file mode 100644 index 00000000..957f7abc --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateCommentPublicResponseTest.java @@ -0,0 +1,144 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateCommentPublicResponse + */ +public class CreateCommentPublicResponseTest { + private final CreateCommentPublicResponse model = new CreateCommentPublicResponse(); + + /** + * Model tests for CreateCommentPublicResponse + */ + @Test + public void testCreateCommentPublicResponse() { + // TODO: test CreateCommentPublicResponse + } + + /** + * 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/CreateEmailTemplateResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateEmailTemplateResponse1Test.java new file mode 100644 index 00000000..054c21a9 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateEmailTemplateResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateEmailTemplateResponse1 + */ +public class CreateEmailTemplateResponse1Test { + private final CreateEmailTemplateResponse1 model = new CreateEmailTemplateResponse1(); + + /** + * Model tests for CreateEmailTemplateResponse1 + */ + @Test + public void testCreateEmailTemplateResponse1() { + // TODO: test CreateEmailTemplateResponse1 + } + + /** + * 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/CreateFeedPostPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateFeedPostPublicResponseTest.java new file mode 100644 index 00000000..b967e8ee --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateFeedPostPublicResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateFeedPostPublicResponse + */ +public class CreateFeedPostPublicResponseTest { + private final CreateFeedPostPublicResponse model = new CreateFeedPostPublicResponse(); + + /** + * Model tests for CreateFeedPostPublicResponse + */ + @Test + public void testCreateFeedPostPublicResponse() { + // TODO: test CreateFeedPostPublicResponse + } + + /** + * 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/CreateFeedPostResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateFeedPostResponse1Test.java new file mode 100644 index 00000000..ecfb5f9e --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateFeedPostResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateFeedPostResponse1 + */ +public class CreateFeedPostResponse1Test { + private final CreateFeedPostResponse1 model = new CreateFeedPostResponse1(); + + /** + * Model tests for CreateFeedPostResponse1 + */ + @Test + public void testCreateFeedPostResponse1() { + // TODO: test CreateFeedPostResponse1 + } + + /** + * 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/CreateModeratorResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateModeratorResponse1Test.java new file mode 100644 index 00000000..c29508fa --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateModeratorResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateModeratorResponse1 + */ +public class CreateModeratorResponse1Test { + private final CreateModeratorResponse1 model = new CreateModeratorResponse1(); + + /** + * Model tests for CreateModeratorResponse1 + */ + @Test + public void testCreateModeratorResponse1() { + // TODO: test CreateModeratorResponse1 + } + + /** + * 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/CreateQuestionConfigResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateQuestionConfigResponse1Test.java new file mode 100644 index 00000000..ea6dcbfd --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateQuestionConfigResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateQuestionConfigResponse1 + */ +public class CreateQuestionConfigResponse1Test { + private final CreateQuestionConfigResponse1 model = new CreateQuestionConfigResponse1(); + + /** + * Model tests for CreateQuestionConfigResponse1 + */ + @Test + public void testCreateQuestionConfigResponse1() { + // TODO: test CreateQuestionConfigResponse1 + } + + /** + * 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/CreateQuestionResultResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateQuestionResultResponse1Test.java new file mode 100644 index 00000000..152853a0 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateQuestionResultResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateQuestionResultResponse1 + */ +public class CreateQuestionResultResponse1Test { + private final CreateQuestionResultResponse1 model = new CreateQuestionResultResponse1(); + + /** + * Model tests for CreateQuestionResultResponse1 + */ + @Test + public void testCreateQuestionResultResponse1() { + // TODO: test CreateQuestionResultResponse1 + } + + /** + * 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/CreateTenantPackageResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateTenantPackageResponse1Test.java new file mode 100644 index 00000000..d2f5b9ba --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateTenantPackageResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateTenantPackageResponse1 + */ +public class CreateTenantPackageResponse1Test { + private final CreateTenantPackageResponse1 model = new CreateTenantPackageResponse1(); + + /** + * Model tests for CreateTenantPackageResponse1 + */ + @Test + public void testCreateTenantPackageResponse1() { + // TODO: test CreateTenantPackageResponse1 + } + + /** + * 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/CreateTenantResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateTenantResponse1Test.java new file mode 100644 index 00000000..3c370492 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateTenantResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateTenantResponse1 + */ +public class CreateTenantResponse1Test { + private final CreateTenantResponse1 model = new CreateTenantResponse1(); + + /** + * Model tests for CreateTenantResponse1 + */ + @Test + public void testCreateTenantResponse1() { + // TODO: test CreateTenantResponse1 + } + + /** + * 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/CreateTenantUserResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateTenantUserResponse1Test.java new file mode 100644 index 00000000..a4a6d76c --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateTenantUserResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateTenantUserResponse1 + */ +public class CreateTenantUserResponse1Test { + private final CreateTenantUserResponse1 model = new CreateTenantUserResponse1(); + + /** + * Model tests for CreateTenantUserResponse1 + */ + @Test + public void testCreateTenantUserResponse1() { + // TODO: test CreateTenantUserResponse1 + } + + /** + * 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/CreateTicketResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateTicketResponse1Test.java new file mode 100644 index 00000000..085f39cf --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateTicketResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateTicketResponse1 + */ +public class CreateTicketResponse1Test { + private final CreateTicketResponse1 model = new CreateTicketResponse1(); + + /** + * Model tests for CreateTicketResponse1 + */ + @Test + public void testCreateTicketResponse1() { + // TODO: test CreateTicketResponse1 + } + + /** + * 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/CreateUserBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateUserBadgeResponseTest.java new file mode 100644 index 00000000..5f0098d7 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateUserBadgeResponseTest.java @@ -0,0 +1,127 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateUserBadgeResponse + */ +public class CreateUserBadgeResponseTest { + private final CreateUserBadgeResponse model = new CreateUserBadgeResponse(); + + /** + * Model tests for CreateUserBadgeResponse + */ + @Test + public void testCreateUserBadgeResponse() { + // TODO: test CreateUserBadgeResponse + } + + /** + * 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/CreateV1PageReactResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateV1PageReactResponseTest.java new file mode 100644 index 00000000..c1b4d802 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateV1PageReactResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CreateV1PageReact; +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 CreateV1PageReactResponse + */ +public class CreateV1PageReactResponseTest { + private final CreateV1PageReactResponse model = new CreateV1PageReactResponse(); + + /** + * Model tests for CreateV1PageReactResponse + */ + @Test + public void testCreateV1PageReactResponse() { + // TODO: test CreateV1PageReactResponse + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * 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 '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/CreateV2PageReactResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateV2PageReactResponseTest.java new file mode 100644 index 00000000..360e2c06 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateV2PageReactResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CreateV1PageReact; +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 CreateV2PageReactResponse + */ +public class CreateV2PageReactResponseTest { + private final CreateV2PageReactResponse model = new CreateV2PageReactResponse(); + + /** + * Model tests for CreateV2PageReactResponse + */ + @Test + public void testCreateV2PageReactResponse() { + // TODO: test CreateV2PageReactResponse + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * 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 '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/CreateVoteResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateVoteResponseTest.java new file mode 100644 index 00000000..6d3cbb15 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/CreateVoteResponseTest.java @@ -0,0 +1,141 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 CreateVoteResponse + */ +public class CreateVoteResponseTest { + private final CreateVoteResponse model = new CreateVoteResponse(); + + /** + * Model tests for CreateVoteResponse + */ + @Test + public void testCreateVoteResponse() { + // TODO: test CreateVoteResponse + } + + /** + * 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/client/src/test/java/com/fastcomments/model/DeleteCommentPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteCommentPublicResponseTest.java new file mode 100644 index 00000000..86a8a465 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteCommentPublicResponseTest.java @@ -0,0 +1,125 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteCommentPublicResponse + */ +public class DeleteCommentPublicResponseTest { + private final DeleteCommentPublicResponse model = new DeleteCommentPublicResponse(); + + /** + * Model tests for DeleteCommentPublicResponse + */ + @Test + public void testDeleteCommentPublicResponse() { + // TODO: test DeleteCommentPublicResponse + } + + /** + * 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/DeleteCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteCommentResponseTest.java new file mode 100644 index 00000000..227c4f63 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteCommentResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteCommentResponse + */ +public class DeleteCommentResponseTest { + private final DeleteCommentResponse model = new DeleteCommentResponse(); + + /** + * Model tests for DeleteCommentResponse + */ + @Test + public void testDeleteCommentResponse() { + // TODO: test DeleteCommentResponse + } + + /** + * 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/DeleteCommentVoteResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteCommentVoteResponseTest.java new file mode 100644 index 00000000..5a83c08c --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteCommentVoteResponseTest.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.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 DeleteCommentVoteResponse + */ +public class DeleteCommentVoteResponseTest { + private final DeleteCommentVoteResponse model = new DeleteCommentVoteResponse(); + + /** + * Model tests for DeleteCommentVoteResponse + */ + @Test + public void testDeleteCommentVoteResponse() { + // TODO: test DeleteCommentVoteResponse + } + + /** + * 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/DeleteEmailTemplateRenderErrorResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponseTest.java new file mode 100644 index 00000000..127573f1 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteEmailTemplateRenderErrorResponse + */ +public class DeleteEmailTemplateRenderErrorResponseTest { + private final DeleteEmailTemplateRenderErrorResponse model = new DeleteEmailTemplateRenderErrorResponse(); + + /** + * Model tests for DeleteEmailTemplateRenderErrorResponse + */ + @Test + public void testDeleteEmailTemplateRenderErrorResponse() { + // TODO: test DeleteEmailTemplateRenderErrorResponse + } + + /** + * 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/DeleteEmailTemplateResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteEmailTemplateResponseTest.java new file mode 100644 index 00000000..32282758 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteEmailTemplateResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteEmailTemplateResponse + */ +public class DeleteEmailTemplateResponseTest { + private final DeleteEmailTemplateResponse model = new DeleteEmailTemplateResponse(); + + /** + * Model tests for DeleteEmailTemplateResponse + */ + @Test + public void testDeleteEmailTemplateResponse() { + // TODO: test DeleteEmailTemplateResponse + } + + /** + * 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/DeleteFeedPostPublicResponseAnyOfTest.java b/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOfTest.java new file mode 100644 index 00000000..db126ee5 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOfTest.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 DeleteFeedPostPublicResponseAnyOf + */ +public class DeleteFeedPostPublicResponseAnyOfTest { + private final DeleteFeedPostPublicResponseAnyOf model = new DeleteFeedPostPublicResponseAnyOf(); + + /** + * Model tests for DeleteFeedPostPublicResponseAnyOf + */ + @Test + public void testDeleteFeedPostPublicResponseAnyOf() { + // TODO: test DeleteFeedPostPublicResponseAnyOf + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java index 5257f9e1..26c9142e 100644 --- a/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java @@ -13,7 +13,10 @@ package com.fastcomments.model; +import com.fastcomments.model.APIError; import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.DeleteFeedPostPublicResponseAnyOf; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,4 +49,60 @@ 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/DeleteHashTagResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteHashTagResponseTest.java new file mode 100644 index 00000000..fb8d90b3 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteHashTagResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteHashTagResponse + */ +public class DeleteHashTagResponseTest { + private final DeleteHashTagResponse model = new DeleteHashTagResponse(); + + /** + * Model tests for DeleteHashTagResponse + */ + @Test + public void testDeleteHashTagResponse() { + // TODO: test DeleteHashTagResponse + } + + /** + * 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/DeleteModerationVoteResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteModerationVoteResponseTest.java new file mode 100644 index 00000000..704ad58e --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteModerationVoteResponseTest.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.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 DeleteModerationVoteResponse + */ +public class DeleteModerationVoteResponseTest { + private final DeleteModerationVoteResponse model = new DeleteModerationVoteResponse(); + + /** + * Model tests for DeleteModerationVoteResponse + */ + @Test + public void testDeleteModerationVoteResponse() { + // TODO: test DeleteModerationVoteResponse + } + + /** + * 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/DeleteModeratorResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteModeratorResponseTest.java new file mode 100644 index 00000000..2e88ca2a --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteModeratorResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteModeratorResponse + */ +public class DeleteModeratorResponseTest { + private final DeleteModeratorResponse model = new DeleteModeratorResponse(); + + /** + * Model tests for DeleteModeratorResponse + */ + @Test + public void testDeleteModeratorResponse() { + // TODO: test DeleteModeratorResponse + } + + /** + * 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/DeleteNotificationCountResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteNotificationCountResponseTest.java new file mode 100644 index 00000000..d04635c6 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteNotificationCountResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteNotificationCountResponse + */ +public class DeleteNotificationCountResponseTest { + private final DeleteNotificationCountResponse model = new DeleteNotificationCountResponse(); + + /** + * Model tests for DeleteNotificationCountResponse + */ + @Test + public void testDeleteNotificationCountResponse() { + // TODO: test DeleteNotificationCountResponse + } + + /** + * 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/DeletePendingWebhookEventResponseTest.java b/client/src/test/java/com/fastcomments/model/DeletePendingWebhookEventResponseTest.java new file mode 100644 index 00000000..f131906d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeletePendingWebhookEventResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeletePendingWebhookEventResponse + */ +public class DeletePendingWebhookEventResponseTest { + private final DeletePendingWebhookEventResponse model = new DeletePendingWebhookEventResponse(); + + /** + * Model tests for DeletePendingWebhookEventResponse + */ + @Test + public void testDeletePendingWebhookEventResponse() { + // TODO: test DeletePendingWebhookEventResponse + } + + /** + * 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/DeleteQuestionConfigResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteQuestionConfigResponseTest.java new file mode 100644 index 00000000..9d1c9517 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteQuestionConfigResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteQuestionConfigResponse + */ +public class DeleteQuestionConfigResponseTest { + private final DeleteQuestionConfigResponse model = new DeleteQuestionConfigResponse(); + + /** + * Model tests for DeleteQuestionConfigResponse + */ + @Test + public void testDeleteQuestionConfigResponse() { + // TODO: test DeleteQuestionConfigResponse + } + + /** + * 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/DeleteQuestionResultResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteQuestionResultResponseTest.java new file mode 100644 index 00000000..0ccd9dcb --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteQuestionResultResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteQuestionResultResponse + */ +public class DeleteQuestionResultResponseTest { + private final DeleteQuestionResultResponse model = new DeleteQuestionResultResponse(); + + /** + * Model tests for DeleteQuestionResultResponse + */ + @Test + public void testDeleteQuestionResultResponse() { + // TODO: test DeleteQuestionResultResponse + } + + /** + * 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/DeleteTenantPackageResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteTenantPackageResponseTest.java new file mode 100644 index 00000000..7c5161ff --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteTenantPackageResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteTenantPackageResponse + */ +public class DeleteTenantPackageResponseTest { + private final DeleteTenantPackageResponse model = new DeleteTenantPackageResponse(); + + /** + * Model tests for DeleteTenantPackageResponse + */ + @Test + public void testDeleteTenantPackageResponse() { + // TODO: test DeleteTenantPackageResponse + } + + /** + * 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/DeleteTenantResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteTenantResponseTest.java new file mode 100644 index 00000000..d4fcda14 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteTenantResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteTenantResponse + */ +public class DeleteTenantResponseTest { + private final DeleteTenantResponse model = new DeleteTenantResponse(); + + /** + * Model tests for DeleteTenantResponse + */ + @Test + public void testDeleteTenantResponse() { + // TODO: test DeleteTenantResponse + } + + /** + * 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/DeleteTenantUserResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteTenantUserResponseTest.java new file mode 100644 index 00000000..68f1f7e9 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteTenantUserResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteTenantUserResponse + */ +public class DeleteTenantUserResponseTest { + private final DeleteTenantUserResponse model = new DeleteTenantUserResponse(); + + /** + * Model tests for DeleteTenantUserResponse + */ + @Test + public void testDeleteTenantUserResponse() { + // TODO: test DeleteTenantUserResponse + } + + /** + * 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/DeleteUserBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteUserBadgeResponseTest.java new file mode 100644 index 00000000..731edb00 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteUserBadgeResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 DeleteUserBadgeResponse + */ +public class DeleteUserBadgeResponseTest { + private final DeleteUserBadgeResponse model = new DeleteUserBadgeResponse(); + + /** + * Model tests for DeleteUserBadgeResponse + */ + @Test + public void testDeleteUserBadgeResponse() { + // TODO: test DeleteUserBadgeResponse + } + + /** + * 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/DeleteV1PageReactResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteV1PageReactResponseTest.java new file mode 100644 index 00000000..0a3527bf --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteV1PageReactResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CreateV1PageReact; +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 DeleteV1PageReactResponse + */ +public class DeleteV1PageReactResponseTest { + private final DeleteV1PageReactResponse model = new DeleteV1PageReactResponse(); + + /** + * Model tests for DeleteV1PageReactResponse + */ + @Test + public void testDeleteV1PageReactResponse() { + // TODO: test DeleteV1PageReactResponse + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * 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 '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/DeleteV2PageReactResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteV2PageReactResponseTest.java new file mode 100644 index 00000000..06bb704f --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteV2PageReactResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CreateV1PageReact; +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 DeleteV2PageReactResponse + */ +public class DeleteV2PageReactResponseTest { + private final DeleteV2PageReactResponse model = new DeleteV2PageReactResponse(); + + /** + * Model tests for DeleteV2PageReactResponse + */ + @Test + public void testDeleteV2PageReactResponse() { + // TODO: test DeleteV2PageReactResponse + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * 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 '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/DeleteVoteResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteVoteResponseTest.java new file mode 100644 index 00000000..e55cd70d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/DeleteVoteResponseTest.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.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 DeleteVoteResponse + */ +public class DeleteVoteResponseTest { + private final DeleteVoteResponse model = new DeleteVoteResponse(); + + /** + * Model tests for DeleteVoteResponse + */ + @Test + public void testDeleteVoteResponse() { + // TODO: test DeleteVoteResponse + } + + /** + * 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/FlagCommentPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/FlagCommentPublicResponseTest.java new file mode 100644 index 00000000..9f7bd685 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/FlagCommentPublicResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 FlagCommentPublicResponse + */ +public class FlagCommentPublicResponseTest { + private final FlagCommentPublicResponse model = new FlagCommentPublicResponse(); + + /** + * Model tests for FlagCommentPublicResponse + */ + @Test + public void testFlagCommentPublicResponse() { + // TODO: test FlagCommentPublicResponse + } + + /** + * 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/FlagCommentResponse1Test.java b/client/src/test/java/com/fastcomments/model/FlagCommentResponse1Test.java new file mode 100644 index 00000000..c5ce412f --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/FlagCommentResponse1Test.java @@ -0,0 +1,124 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 FlagCommentResponse1 + */ +public class FlagCommentResponse1Test { + private final FlagCommentResponse1 model = new FlagCommentResponse1(); + + /** + * Model tests for FlagCommentResponse1 + */ + @Test + public void testFlagCommentResponse1() { + // TODO: test FlagCommentResponse1 + } + + /** + * 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/GetApiCommentsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetApiCommentsResponseTest.java new file mode 100644 index 00000000..c24c56c8 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetApiCommentsResponseTest.java @@ -0,0 +1,136 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPIComment; +import com.fastcomments.model.ModerationAPIGetCommentsResponse; +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 GetApiCommentsResponse + */ +public class GetApiCommentsResponseTest { + private final GetApiCommentsResponse model = new GetApiCommentsResponse(); + + /** + * Model tests for GetApiCommentsResponse + */ + @Test + public void testGetApiCommentsResponse() { + // TODO: test GetApiCommentsResponse + } + + /** + * 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 + } + + /** + * 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/GetApiExportStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/GetApiExportStatusResponseTest.java new file mode 100644 index 00000000..d91eabb1 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetApiExportStatusResponseTest.java @@ -0,0 +1,132 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationExportStatusResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetApiExportStatusResponse + */ +public class GetApiExportStatusResponseTest { + private final GetApiExportStatusResponse model = new GetApiExportStatusResponse(); + + /** + * Model tests for GetApiExportStatusResponse + */ + @Test + public void testGetApiExportStatusResponse() { + // TODO: test GetApiExportStatusResponse + } + + /** + * 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 + } + + /** + * 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/GetApiIdsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetApiIdsResponseTest.java new file mode 100644 index 00000000..026c7c07 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetApiIdsResponseTest.java @@ -0,0 +1,126 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPIGetCommentIdsResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetApiIdsResponse + */ +public class GetApiIdsResponseTest { + private final GetApiIdsResponse model = new GetApiIdsResponse(); + + /** + * Model tests for GetApiIdsResponse + */ + @Test + public void testGetApiIdsResponse() { + // TODO: test GetApiIdsResponse + } + + /** + * 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 + } + + /** + * 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/GetAuditLogsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetAuditLogsResponse1Test.java new file mode 100644 index 00000000..21a1da79 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetAuditLogsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetAuditLogsResponse1 + */ +public class GetAuditLogsResponse1Test { + private final GetAuditLogsResponse1 model = new GetAuditLogsResponse1(); + + /** + * Model tests for GetAuditLogsResponse1 + */ + @Test + public void testGetAuditLogsResponse1() { + // TODO: test GetAuditLogsResponse1 + } + + /** + * 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/GetBanUsersFromCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/GetBanUsersFromCommentResponseTest.java new file mode 100644 index 00000000..c8d61873 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetBanUsersFromCommentResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.GetBannedUsersFromCommentResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetBanUsersFromCommentResponse + */ +public class GetBanUsersFromCommentResponseTest { + private final GetBanUsersFromCommentResponse model = new GetBanUsersFromCommentResponse(); + + /** + * Model tests for GetBanUsersFromCommentResponse + */ + @Test + public void testGetBanUsersFromCommentResponse() { + // TODO: test GetBanUsersFromCommentResponse + } + + /** + * 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 + } + + /** + * 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/GetCachedNotificationCountResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetCachedNotificationCountResponse1Test.java new file mode 100644 index 00000000..aad3b09b --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCachedNotificationCountResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetCachedNotificationCountResponse1 + */ +public class GetCachedNotificationCountResponse1Test { + private final GetCachedNotificationCountResponse1 model = new GetCachedNotificationCountResponse1(); + + /** + * Model tests for GetCachedNotificationCountResponse1 + */ + @Test + public void testGetCachedNotificationCountResponse1() { + // TODO: test GetCachedNotificationCountResponse1 + } + + /** + * 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/GetCommentBanStatusResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetCommentBanStatusResponse1Test.java new file mode 100644 index 00000000..f9799d03 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCommentBanStatusResponse1Test.java @@ -0,0 +1,124 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetCommentBanStatusResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetCommentBanStatusResponse1 + */ +public class GetCommentBanStatusResponse1Test { + private final GetCommentBanStatusResponse1 model = new GetCommentBanStatusResponse1(); + + /** + * Model tests for GetCommentBanStatusResponse1 + */ + @Test + public void testGetCommentBanStatusResponse1() { + // TODO: test GetCommentBanStatusResponse1 + } + + /** + * 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 + } + + /** + * 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/GetCommentChildrenResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentChildrenResponseTest.java new file mode 100644 index 00000000..466631e7 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCommentChildrenResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPIChildCommentsResponse; +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 GetCommentChildrenResponse + */ +public class GetCommentChildrenResponseTest { + private final GetCommentChildrenResponse model = new GetCommentChildrenResponse(); + + /** + * Model tests for GetCommentChildrenResponse + */ + @Test + public void testGetCommentChildrenResponse() { + // TODO: test GetCommentChildrenResponse + } + + /** + * Test the property 'comments' + */ + @Test + public void commentsTest() { + // TODO: test comments + } + + /** + * 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/GetCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentResponseTest.java new file mode 100644 index 00000000..76e42c23 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCommentResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetCommentResponse + */ +public class GetCommentResponseTest { + private final GetCommentResponse model = new GetCommentResponse(); + + /** + * Model tests for GetCommentResponse + */ + @Test + public void testGetCommentResponse() { + // TODO: test GetCommentResponse + } + + /** + * 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/GetCommentTextResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetCommentTextResponse1Test.java new file mode 100644 index 00000000..b44b67b1 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCommentTextResponse1Test.java @@ -0,0 +1,124 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetCommentTextResponse1 + */ +public class GetCommentTextResponse1Test { + private final GetCommentTextResponse1 model = new GetCommentTextResponse1(); + + /** + * Model tests for GetCommentTextResponse1 + */ + @Test + public void testGetCommentTextResponse1() { + // TODO: test GetCommentTextResponse1 + } + + /** + * 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/GetCommentVoteUserNamesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentVoteUserNamesResponseTest.java new file mode 100644 index 00000000..dc26beac --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCommentVoteUserNamesResponseTest.java @@ -0,0 +1,126 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetCommentVoteUserNamesResponse + */ +public class GetCommentVoteUserNamesResponseTest { + private final GetCommentVoteUserNamesResponse model = new GetCommentVoteUserNamesResponse(); + + /** + * Model tests for GetCommentVoteUserNamesResponse + */ + @Test + public void testGetCommentVoteUserNamesResponse() { + // TODO: test GetCommentVoteUserNamesResponse + } + + /** + * 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/GetCommentsForUserResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetCommentsForUserResponse1Test.java new file mode 100644 index 00000000..3e1333f0 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCommentsForUserResponse1Test.java @@ -0,0 +1,118 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetCommentsForUserResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetCommentsForUserResponse1 + */ +public class GetCommentsForUserResponse1Test { + private final GetCommentsForUserResponse1 model = new GetCommentsForUserResponse1(); + + /** + * Model tests for GetCommentsForUserResponse1 + */ + @Test + public void testGetCommentsForUserResponse1() { + // TODO: test GetCommentsForUserResponse1 + } + + /** + * Test the property 'moderatingTenantIds' + */ + @Test + public void moderatingTenantIdsTest() { + // TODO: test moderatingTenantIds + } + + /** + * 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/GetCommentsPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentsPublicResponseTest.java new file mode 100644 index 00000000..c0a09a88 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCommentsPublicResponseTest.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 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 GetCommentsPublicResponse + */ +public class GetCommentsPublicResponseTest { + private final GetCommentsPublicResponse model = new GetCommentsPublicResponse(); + + /** + * Model tests for GetCommentsPublicResponse + */ + @Test + public void testGetCommentsPublicResponse() { + // TODO: test GetCommentsPublicResponse + } + + /** + * 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/GetCommentsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentsResponseTest.java new file mode 100644 index 00000000..54427995 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCommentsResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetCommentsResponse + */ +public class GetCommentsResponseTest { + private final GetCommentsResponse model = new GetCommentsResponse(); + + /** + * Model tests for GetCommentsResponse + */ + @Test + public void testGetCommentsResponse() { + // TODO: test GetCommentsResponse + } + + /** + * 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/GetCountResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCountResponseTest.java new file mode 100644 index 00000000..97a6b12b --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCountResponseTest.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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.ModerationAPICountCommentsResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetCountResponse + */ +public class GetCountResponseTest { + private final GetCountResponse model = new GetCountResponse(); + + /** + * Model tests for GetCountResponse + */ + @Test + public void testGetCountResponse() { + // TODO: test GetCountResponse + } + + /** + * 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/GetCountsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCountsResponseTest.java new file mode 100644 index 00000000..92bc542c --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetCountsResponseTest.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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.GetBannedUsersCountResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetCountsResponse + */ +public class GetCountsResponseTest { + private final GetCountsResponse model = new GetCountsResponse(); + + /** + * Model tests for GetCountsResponse + */ + @Test + public void testGetCountsResponse() { + // TODO: test GetCountsResponse + } + + /** + * Test the property 'totalCount' + */ + @Test + public void totalCountTest() { + // TODO: test totalCount + } + + /** + * 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/GetEmailTemplateDefinitionsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1Test.java new file mode 100644 index 00000000..52139eaa --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetEmailTemplateDefinitionsResponse1 + */ +public class GetEmailTemplateDefinitionsResponse1Test { + private final GetEmailTemplateDefinitionsResponse1 model = new GetEmailTemplateDefinitionsResponse1(); + + /** + * Model tests for GetEmailTemplateDefinitionsResponse1 + */ + @Test + public void testGetEmailTemplateDefinitionsResponse1() { + // TODO: test GetEmailTemplateDefinitionsResponse1 + } + + /** + * 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/GetEmailTemplateRenderErrorsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1Test.java new file mode 100644 index 00000000..f382dfbb --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetEmailTemplateRenderErrorsResponse1 + */ +public class GetEmailTemplateRenderErrorsResponse1Test { + private final GetEmailTemplateRenderErrorsResponse1 model = new GetEmailTemplateRenderErrorsResponse1(); + + /** + * Model tests for GetEmailTemplateRenderErrorsResponse1 + */ + @Test + public void testGetEmailTemplateRenderErrorsResponse1() { + // TODO: test GetEmailTemplateRenderErrorsResponse1 + } + + /** + * 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/GetEmailTemplateResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplateResponse1Test.java new file mode 100644 index 00000000..aac218b1 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetEmailTemplateResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetEmailTemplateResponse1 + */ +public class GetEmailTemplateResponse1Test { + private final GetEmailTemplateResponse1 model = new GetEmailTemplateResponse1(); + + /** + * Model tests for GetEmailTemplateResponse1 + */ + @Test + public void testGetEmailTemplateResponse1() { + // TODO: test GetEmailTemplateResponse1 + } + + /** + * 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/GetEmailTemplatesResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplatesResponse1Test.java new file mode 100644 index 00000000..8468172a --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetEmailTemplatesResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetEmailTemplatesResponse1 + */ +public class GetEmailTemplatesResponse1Test { + private final GetEmailTemplatesResponse1 model = new GetEmailTemplatesResponse1(); + + /** + * Model tests for GetEmailTemplatesResponse1 + */ + @Test + public void testGetEmailTemplatesResponse1() { + // TODO: test GetEmailTemplatesResponse1 + } + + /** + * 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/GetEventLogResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetEventLogResponse1Test.java new file mode 100644 index 00000000..a4726491 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetEventLogResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetEventLogResponse1 + */ +public class GetEventLogResponse1Test { + private final GetEventLogResponse1 model = new GetEventLogResponse1(); + + /** + * Model tests for GetEventLogResponse1 + */ + @Test + public void testGetEventLogResponse1() { + // TODO: test GetEventLogResponse1 + } + + /** + * 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/GetFeedPostsPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/GetFeedPostsPublicResponseTest.java new file mode 100644 index 00000000..04cad375 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetFeedPostsPublicResponseTest.java @@ -0,0 +1,162 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetFeedPostsPublicResponse + */ +public class GetFeedPostsPublicResponseTest { + private final GetFeedPostsPublicResponse model = new GetFeedPostsPublicResponse(); + + /** + * Model tests for GetFeedPostsPublicResponse + */ + @Test + public void testGetFeedPostsPublicResponse() { + // TODO: test GetFeedPostsPublicResponse + } + + /** + * 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/GetFeedPostsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetFeedPostsResponse1Test.java new file mode 100644 index 00000000..92462b26 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetFeedPostsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetFeedPostsResponse1 + */ +public class GetFeedPostsResponse1Test { + private final GetFeedPostsResponse1 model = new GetFeedPostsResponse1(); + + /** + * Model tests for GetFeedPostsResponse1 + */ + @Test + public void testGetFeedPostsResponse1() { + // TODO: test GetFeedPostsResponse1 + } + + /** + * 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/GetFeedPostsStatsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetFeedPostsStatsResponseTest.java new file mode 100644 index 00000000..04b40948 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetFeedPostsStatsResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetFeedPostsStatsResponse + */ +public class GetFeedPostsStatsResponseTest { + private final GetFeedPostsStatsResponse model = new GetFeedPostsStatsResponse(); + + /** + * Model tests for GetFeedPostsStatsResponse + */ + @Test + public void testGetFeedPostsStatsResponse() { + // TODO: test GetFeedPostsStatsResponse + } + + /** + * 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/GetGifLargeResponseTest.java b/client/src/test/java/com/fastcomments/model/GetGifLargeResponseTest.java new file mode 100644 index 00000000..a3db14f0 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetGifLargeResponseTest.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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.GifGetLargeResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetGifLargeResponse + */ +public class GetGifLargeResponseTest { + private final GetGifLargeResponse model = new GetGifLargeResponse(); + + /** + * Model tests for GetGifLargeResponse + */ + @Test + public void testGetGifLargeResponse() { + // TODO: test GetGifLargeResponse + } + + /** + * Test the property 'src' + */ + @Test + public void srcTest() { + // TODO: test src + } + + /** + * 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/GetGifsSearchResponseTest.java b/client/src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java index 08a299d5..5061a2fe 100644 --- a/client/src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java @@ -13,7 +13,9 @@ package com.fastcomments.model; +import com.fastcomments.model.APIError; import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; import com.fastcomments.model.GifSearchInternalError; import com.fastcomments.model.GifSearchResponse; import com.fastcomments.model.GifSearchResponseImagesInnerInner; @@ -67,4 +69,52 @@ 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/GetGlobalEventLogResponseTest.java b/client/src/test/java/com/fastcomments/model/GetGlobalEventLogResponseTest.java new file mode 100644 index 00000000..127ac7be --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetGlobalEventLogResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetGlobalEventLogResponse + */ +public class GetGlobalEventLogResponseTest { + private final GetGlobalEventLogResponse model = new GetGlobalEventLogResponse(); + + /** + * Model tests for GetGlobalEventLogResponse + */ + @Test + public void testGetGlobalEventLogResponse() { + // TODO: test GetGlobalEventLogResponse + } + + /** + * 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/GetHashTagsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetHashTagsResponse1Test.java new file mode 100644 index 00000000..1078b400 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetHashTagsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetHashTagsResponse1 + */ +public class GetHashTagsResponse1Test { + private final GetHashTagsResponse1 model = new GetHashTagsResponse1(); + + /** + * Model tests for GetHashTagsResponse1 + */ + @Test + public void testGetHashTagsResponse1() { + // TODO: test GetHashTagsResponse1 + } + + /** + * 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/GetLogsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetLogsResponseTest.java new file mode 100644 index 00000000..c73c90d9 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetLogsResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPICommentLog; +import com.fastcomments.model.ModerationAPIGetLogsResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetLogsResponse + */ +public class GetLogsResponseTest { + private final GetLogsResponse model = new GetLogsResponse(); + + /** + * Model tests for GetLogsResponse + */ + @Test + public void testGetLogsResponse() { + // TODO: test GetLogsResponse + } + + /** + * Test the property 'logs' + */ + @Test + public void logsTest() { + // TODO: test logs + } + + /** + * 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/GetManualBadgesForUserResponseTest.java b/client/src/test/java/com/fastcomments/model/GetManualBadgesForUserResponseTest.java new file mode 100644 index 00000000..9f40078d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetManualBadgesForUserResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetUserManualBadgesResponse; +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 GetManualBadgesForUserResponse + */ +public class GetManualBadgesForUserResponseTest { + private final GetManualBadgesForUserResponse model = new GetManualBadgesForUserResponse(); + + /** + * Model tests for GetManualBadgesForUserResponse + */ + @Test + public void testGetManualBadgesForUserResponse() { + // TODO: test GetManualBadgesForUserResponse + } + + /** + * Test the property 'badges' + */ + @Test + public void badgesTest() { + // TODO: test badges + } + + /** + * 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/GetManualBadgesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetManualBadgesResponseTest.java new file mode 100644 index 00000000..9cc45899 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetManualBadgesResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetTenantManualBadgesResponse; +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 GetManualBadgesResponse + */ +public class GetManualBadgesResponseTest { + private final GetManualBadgesResponse model = new GetManualBadgesResponse(); + + /** + * Model tests for GetManualBadgesResponse + */ + @Test + public void testGetManualBadgesResponse() { + // TODO: test GetManualBadgesResponse + } + + /** + * Test the property 'badges' + */ + @Test + public void badgesTest() { + // TODO: test badges + } + + /** + * 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/GetModerationCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/GetModerationCommentResponseTest.java new file mode 100644 index 00000000..f1237ff4 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetModerationCommentResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPIComment; +import com.fastcomments.model.ModerationAPICommentResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetModerationCommentResponse + */ +public class GetModerationCommentResponseTest { + private final GetModerationCommentResponse model = new GetModerationCommentResponse(); + + /** + * Model tests for GetModerationCommentResponse + */ + @Test + public void testGetModerationCommentResponse() { + // TODO: test GetModerationCommentResponse + } + + /** + * 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/GetModerationCommentTextResponseTest.java b/client/src/test/java/com/fastcomments/model/GetModerationCommentTextResponseTest.java new file mode 100644 index 00000000..efee76ab --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetModerationCommentTextResponseTest.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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.GetCommentTextResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetModerationCommentTextResponse + */ +public class GetModerationCommentTextResponseTest { + private final GetModerationCommentTextResponse model = new GetModerationCommentTextResponse(); + + /** + * Model tests for GetModerationCommentTextResponse + */ + @Test + public void testGetModerationCommentTextResponse() { + // TODO: test GetModerationCommentTextResponse + } + + /** + * 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/GetModeratorResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetModeratorResponse1Test.java new file mode 100644 index 00000000..d2a6b98e --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetModeratorResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetModeratorResponse1 + */ +public class GetModeratorResponse1Test { + private final GetModeratorResponse1 model = new GetModeratorResponse1(); + + /** + * Model tests for GetModeratorResponse1 + */ + @Test + public void testGetModeratorResponse1() { + // TODO: test GetModeratorResponse1 + } + + /** + * 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/GetModeratorsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetModeratorsResponse1Test.java new file mode 100644 index 00000000..110cd489 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetModeratorsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetModeratorsResponse1 + */ +public class GetModeratorsResponse1Test { + private final GetModeratorsResponse1 model = new GetModeratorsResponse1(); + + /** + * Model tests for GetModeratorsResponse1 + */ + @Test + public void testGetModeratorsResponse1() { + // TODO: test GetModeratorsResponse1 + } + + /** + * 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/GetNotificationCountResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetNotificationCountResponse1Test.java new file mode 100644 index 00000000..56aa6bf9 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetNotificationCountResponse1Test.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.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 GetNotificationCountResponse1 + */ +public class GetNotificationCountResponse1Test { + private final GetNotificationCountResponse1 model = new GetNotificationCountResponse1(); + + /** + * Model tests for GetNotificationCountResponse1 + */ + @Test + public void testGetNotificationCountResponse1() { + // TODO: test GetNotificationCountResponse1 + } + + /** + * 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/GetNotificationsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetNotificationsResponse1Test.java new file mode 100644 index 00000000..9af34873 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetNotificationsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetNotificationsResponse1 + */ +public class GetNotificationsResponse1Test { + private final GetNotificationsResponse1 model = new GetNotificationsResponse1(); + + /** + * Model tests for GetNotificationsResponse1 + */ + @Test + public void testGetNotificationsResponse1() { + // TODO: test GetNotificationsResponse1 + } + + /** + * 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/GetOfflineUsersResponseTest.java b/client/src/test/java/com/fastcomments/model/GetOfflineUsersResponseTest.java new file mode 100644 index 00000000..e632a27e --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetOfflineUsersResponseTest.java @@ -0,0 +1,135 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.PageUserEntry; +import com.fastcomments.model.PageUsersOfflineResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetOfflineUsersResponse + */ +public class GetOfflineUsersResponseTest { + private final GetOfflineUsersResponse model = new GetOfflineUsersResponse(); + + /** + * Model tests for GetOfflineUsersResponse + */ + @Test + public void testGetOfflineUsersResponse() { + // TODO: test GetOfflineUsersResponse + } + + /** + * 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 + } + + /** + * 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/GetOnlineUsersResponseTest.java b/client/src/test/java/com/fastcomments/model/GetOnlineUsersResponseTest.java new file mode 100644 index 00000000..39f12bc6 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetOnlineUsersResponseTest.java @@ -0,0 +1,151 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.PageUserEntry; +import com.fastcomments.model.PageUsersOnlineResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetOnlineUsersResponse + */ +public class GetOnlineUsersResponseTest { + private final GetOnlineUsersResponse model = new GetOnlineUsersResponse(); + + /** + * Model tests for GetOnlineUsersResponse + */ + @Test + public void testGetOnlineUsersResponse() { + // TODO: test GetOnlineUsersResponse + } + + /** + * 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 + } + + /** + * 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/GetPagesPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/GetPagesPublicResponseTest.java new file mode 100644 index 00000000..44ef2c6c --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetPagesPublicResponseTest.java @@ -0,0 +1,127 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetPublicPagesResponse; +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 GetPagesPublicResponse + */ +public class GetPagesPublicResponseTest { + private final GetPagesPublicResponse model = new GetPagesPublicResponse(); + + /** + * Model tests for GetPagesPublicResponse + */ + @Test + public void testGetPagesPublicResponse() { + // TODO: test GetPagesPublicResponse + } + + /** + * 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 + } + + /** + * 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/GetPendingWebhookEventCountResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1Test.java new file mode 100644 index 00000000..9c6ec337 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1Test.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.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 GetPendingWebhookEventCountResponse1 + */ +public class GetPendingWebhookEventCountResponse1Test { + private final GetPendingWebhookEventCountResponse1 model = new GetPendingWebhookEventCountResponse1(); + + /** + * Model tests for GetPendingWebhookEventCountResponse1 + */ + @Test + public void testGetPendingWebhookEventCountResponse1() { + // TODO: test GetPendingWebhookEventCountResponse1 + } + + /** + * 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/GetPendingWebhookEventsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetPendingWebhookEventsResponse1Test.java new file mode 100644 index 00000000..5f7097f4 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetPendingWebhookEventsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetPendingWebhookEventsResponse1 + */ +public class GetPendingWebhookEventsResponse1Test { + private final GetPendingWebhookEventsResponse1 model = new GetPendingWebhookEventsResponse1(); + + /** + * Model tests for GetPendingWebhookEventsResponse1 + */ + @Test + public void testGetPendingWebhookEventsResponse1() { + // TODO: test GetPendingWebhookEventsResponse1 + } + + /** + * 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/GetPreBanSummaryResponseTest.java b/client/src/test/java/com/fastcomments/model/GetPreBanSummaryResponseTest.java new file mode 100644 index 00000000..4d01367c --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetPreBanSummaryResponseTest.java @@ -0,0 +1,126 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.PreBanSummary; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetPreBanSummaryResponse + */ +public class GetPreBanSummaryResponseTest { + private final GetPreBanSummaryResponse model = new GetPreBanSummaryResponse(); + + /** + * Model tests for GetPreBanSummaryResponse + */ + @Test + public void testGetPreBanSummaryResponse() { + // TODO: test GetPreBanSummaryResponse + } + + /** + * 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 + } + + /** + * 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/GetQuestionConfigResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetQuestionConfigResponse1Test.java new file mode 100644 index 00000000..c8bb89f2 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetQuestionConfigResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetQuestionConfigResponse1 + */ +public class GetQuestionConfigResponse1Test { + private final GetQuestionConfigResponse1 model = new GetQuestionConfigResponse1(); + + /** + * Model tests for GetQuestionConfigResponse1 + */ + @Test + public void testGetQuestionConfigResponse1() { + // TODO: test GetQuestionConfigResponse1 + } + + /** + * 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/GetQuestionConfigsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetQuestionConfigsResponse1Test.java new file mode 100644 index 00000000..b2814d5e --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetQuestionConfigsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetQuestionConfigsResponse1 + */ +public class GetQuestionConfigsResponse1Test { + private final GetQuestionConfigsResponse1 model = new GetQuestionConfigsResponse1(); + + /** + * Model tests for GetQuestionConfigsResponse1 + */ + @Test + public void testGetQuestionConfigsResponse1() { + // TODO: test GetQuestionConfigsResponse1 + } + + /** + * 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/GetQuestionResultResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetQuestionResultResponse1Test.java new file mode 100644 index 00000000..2d33d26a --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetQuestionResultResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetQuestionResultResponse1 + */ +public class GetQuestionResultResponse1Test { + private final GetQuestionResultResponse1 model = new GetQuestionResultResponse1(); + + /** + * Model tests for GetQuestionResultResponse1 + */ + @Test + public void testGetQuestionResultResponse1() { + // TODO: test GetQuestionResultResponse1 + } + + /** + * 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/GetQuestionResultsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetQuestionResultsResponse1Test.java new file mode 100644 index 00000000..b4065700 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetQuestionResultsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetQuestionResultsResponse1 + */ +public class GetQuestionResultsResponse1Test { + private final GetQuestionResultsResponse1 model = new GetQuestionResultsResponse1(); + + /** + * Model tests for GetQuestionResultsResponse1 + */ + @Test + public void testGetQuestionResultsResponse1() { + // TODO: test GetQuestionResultsResponse1 + } + + /** + * 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/GetSearchCommentsSummaryResponseTest.java b/client/src/test/java/com/fastcomments/model/GetSearchCommentsSummaryResponseTest.java new file mode 100644 index 00000000..67a71643 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetSearchCommentsSummaryResponseTest.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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.ModerationCommentSearchResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetSearchCommentsSummaryResponse + */ +public class GetSearchCommentsSummaryResponseTest { + private final GetSearchCommentsSummaryResponse model = new GetSearchCommentsSummaryResponse(); + + /** + * Model tests for GetSearchCommentsSummaryResponse + */ + @Test + public void testGetSearchCommentsSummaryResponse() { + // TODO: test GetSearchCommentsSummaryResponse + } + + /** + * Test the property 'commentCount' + */ + @Test + public void commentCountTest() { + // TODO: test commentCount + } + + /** + * 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/GetSearchPagesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetSearchPagesResponseTest.java new file mode 100644 index 00000000..4ab3a37a --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetSearchPagesResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationPageSearchProjected; +import com.fastcomments.model.ModerationPageSearchResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetSearchPagesResponse + */ +public class GetSearchPagesResponseTest { + private final GetSearchPagesResponse model = new GetSearchPagesResponse(); + + /** + * Model tests for GetSearchPagesResponse + */ + @Test + public void testGetSearchPagesResponse() { + // TODO: test GetSearchPagesResponse + } + + /** + * Test the property 'pages' + */ + @Test + public void pagesTest() { + // TODO: test pages + } + + /** + * 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/GetSearchSitesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetSearchSitesResponseTest.java new file mode 100644 index 00000000..e89e183f --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetSearchSitesResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationSiteSearchProjected; +import com.fastcomments.model.ModerationSiteSearchResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetSearchSitesResponse + */ +public class GetSearchSitesResponseTest { + private final GetSearchSitesResponse model = new GetSearchSitesResponse(); + + /** + * Model tests for GetSearchSitesResponse + */ + @Test + public void testGetSearchSitesResponse() { + // TODO: test GetSearchSitesResponse + } + + /** + * Test the property 'sites' + */ + @Test + public void sitesTest() { + // TODO: test sites + } + + /** + * 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/GetSearchSuggestResponseTest.java b/client/src/test/java/com/fastcomments/model/GetSearchSuggestResponseTest.java new file mode 100644 index 00000000..43326fe0 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetSearchSuggestResponseTest.java @@ -0,0 +1,128 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationPageSearchProjected; +import com.fastcomments.model.ModerationSuggestResponse; +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 GetSearchSuggestResponse + */ +public class GetSearchSuggestResponseTest { + private final GetSearchSuggestResponse model = new GetSearchSuggestResponse(); + + /** + * Model tests for GetSearchSuggestResponse + */ + @Test + public void testGetSearchSuggestResponse() { + // TODO: test GetSearchSuggestResponse + } + + /** + * 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 + } + + /** + * 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/GetSearchUsersResponseTest.java b/client/src/test/java/com/fastcomments/model/GetSearchUsersResponseTest.java new file mode 100644 index 00000000..6ac74dac --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetSearchUsersResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationUserSearchProjected; +import com.fastcomments.model.ModerationUserSearchResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetSearchUsersResponse + */ +public class GetSearchUsersResponseTest { + private final GetSearchUsersResponse model = new GetSearchUsersResponse(); + + /** + * Model tests for GetSearchUsersResponse + */ + @Test + public void testGetSearchUsersResponse() { + // TODO: test GetSearchUsersResponse + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } + + /** + * 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/GetTenantDailyUsagesResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantDailyUsagesResponse1Test.java new file mode 100644 index 00000000..6334f41c --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTenantDailyUsagesResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetTenantDailyUsagesResponse1 + */ +public class GetTenantDailyUsagesResponse1Test { + private final GetTenantDailyUsagesResponse1 model = new GetTenantDailyUsagesResponse1(); + + /** + * Model tests for GetTenantDailyUsagesResponse1 + */ + @Test + public void testGetTenantDailyUsagesResponse1() { + // TODO: test GetTenantDailyUsagesResponse1 + } + + /** + * 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/GetTenantPackageResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantPackageResponse1Test.java new file mode 100644 index 00000000..2061a576 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTenantPackageResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetTenantPackageResponse1 + */ +public class GetTenantPackageResponse1Test { + private final GetTenantPackageResponse1 model = new GetTenantPackageResponse1(); + + /** + * Model tests for GetTenantPackageResponse1 + */ + @Test + public void testGetTenantPackageResponse1() { + // TODO: test GetTenantPackageResponse1 + } + + /** + * 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/GetTenantPackagesResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantPackagesResponse1Test.java new file mode 100644 index 00000000..fd3be3ac --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTenantPackagesResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetTenantPackagesResponse1 + */ +public class GetTenantPackagesResponse1Test { + private final GetTenantPackagesResponse1 model = new GetTenantPackagesResponse1(); + + /** + * Model tests for GetTenantPackagesResponse1 + */ + @Test + public void testGetTenantPackagesResponse1() { + // TODO: test GetTenantPackagesResponse1 + } + + /** + * 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/GetTenantResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantResponse1Test.java new file mode 100644 index 00000000..5b21a5c8 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTenantResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetTenantResponse1 + */ +public class GetTenantResponse1Test { + private final GetTenantResponse1 model = new GetTenantResponse1(); + + /** + * Model tests for GetTenantResponse1 + */ + @Test + public void testGetTenantResponse1() { + // TODO: test GetTenantResponse1 + } + + /** + * 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/GetTenantUserResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantUserResponse1Test.java new file mode 100644 index 00000000..c6198429 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTenantUserResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetTenantUserResponse1 + */ +public class GetTenantUserResponse1Test { + private final GetTenantUserResponse1 model = new GetTenantUserResponse1(); + + /** + * Model tests for GetTenantUserResponse1 + */ + @Test + public void testGetTenantUserResponse1() { + // TODO: test GetTenantUserResponse1 + } + + /** + * 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/GetTenantUsersResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantUsersResponse1Test.java new file mode 100644 index 00000000..f5d77845 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTenantUsersResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetTenantUsersResponse1 + */ +public class GetTenantUsersResponse1Test { + private final GetTenantUsersResponse1 model = new GetTenantUsersResponse1(); + + /** + * Model tests for GetTenantUsersResponse1 + */ + @Test + public void testGetTenantUsersResponse1() { + // TODO: test GetTenantUsersResponse1 + } + + /** + * 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/GetTenantsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantsResponse1Test.java new file mode 100644 index 00000000..dee92d1d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTenantsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetTenantsResponse1 + */ +public class GetTenantsResponse1Test { + private final GetTenantsResponse1 model = new GetTenantsResponse1(); + + /** + * Model tests for GetTenantsResponse1 + */ + @Test + public void testGetTenantsResponse1() { + // TODO: test GetTenantsResponse1 + } + + /** + * 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/GetTicketResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTicketResponse1Test.java new file mode 100644 index 00000000..1e1295ac --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTicketResponse1Test.java @@ -0,0 +1,127 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetTicketResponse1 + */ +public class GetTicketResponse1Test { + private final GetTicketResponse1 model = new GetTicketResponse1(); + + /** + * Model tests for GetTicketResponse1 + */ + @Test + public void testGetTicketResponse1() { + // TODO: test GetTicketResponse1 + } + + /** + * 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/GetTicketsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTicketsResponse1Test.java new file mode 100644 index 00000000..bfb20e37 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTicketsResponse1Test.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetTicketsResponse1 + */ +public class GetTicketsResponse1Test { + private final GetTicketsResponse1 model = new GetTicketsResponse1(); + + /** + * Model tests for GetTicketsResponse1 + */ + @Test + public void testGetTicketsResponse1() { + // TODO: test GetTicketsResponse1 + } + + /** + * 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/GetTranslationsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTranslationsResponse1Test.java new file mode 100644 index 00000000..54bf0372 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTranslationsResponse1Test.java @@ -0,0 +1,118 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetTranslationsResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetTranslationsResponse1 + */ +public class GetTranslationsResponse1Test { + private final GetTranslationsResponse1 model = new GetTranslationsResponse1(); + + /** + * Model tests for GetTranslationsResponse1 + */ + @Test + public void testGetTranslationsResponse1() { + // TODO: test GetTranslationsResponse1 + } + + /** + * Test the property 'translations' + */ + @Test + public void translationsTest() { + // TODO: test translations + } + + /** + * 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/GetTrustFactorResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTrustFactorResponseTest.java new file mode 100644 index 00000000..0baa0905 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetTrustFactorResponseTest.java @@ -0,0 +1,124 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetUserTrustFactorResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetTrustFactorResponse + */ +public class GetTrustFactorResponseTest { + private final GetTrustFactorResponse model = new GetTrustFactorResponse(); + + /** + * Model tests for GetTrustFactorResponse + */ + @Test + public void testGetTrustFactorResponse() { + // TODO: test GetTrustFactorResponse + } + + /** + * 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 + } + + /** + * 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/GetUserBadgeProgressByIdResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByIdResponseTest.java new file mode 100644 index 00000000..d0288855 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByIdResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetUserBadgeProgressByIdResponse + */ +public class GetUserBadgeProgressByIdResponseTest { + private final GetUserBadgeProgressByIdResponse model = new GetUserBadgeProgressByIdResponse(); + + /** + * Model tests for GetUserBadgeProgressByIdResponse + */ + @Test + public void testGetUserBadgeProgressByIdResponse() { + // TODO: test GetUserBadgeProgressByIdResponse + } + + /** + * 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/GetUserBadgeProgressByUserIdResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponseTest.java new file mode 100644 index 00000000..1ff64dd2 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetUserBadgeProgressByUserIdResponse + */ +public class GetUserBadgeProgressByUserIdResponseTest { + private final GetUserBadgeProgressByUserIdResponse model = new GetUserBadgeProgressByUserIdResponse(); + + /** + * Model tests for GetUserBadgeProgressByUserIdResponse + */ + @Test + public void testGetUserBadgeProgressByUserIdResponse() { + // TODO: test GetUserBadgeProgressByUserIdResponse + } + + /** + * 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/GetUserBadgeProgressListResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressListResponseTest.java new file mode 100644 index 00000000..6f91cdf2 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressListResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetUserBadgeProgressListResponse + */ +public class GetUserBadgeProgressListResponseTest { + private final GetUserBadgeProgressListResponse model = new GetUserBadgeProgressListResponse(); + + /** + * Model tests for GetUserBadgeProgressListResponse + */ + @Test + public void testGetUserBadgeProgressListResponse() { + // TODO: test GetUserBadgeProgressListResponse + } + + /** + * 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/GetUserBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgeResponseTest.java new file mode 100644 index 00000000..66bd4244 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserBadgeResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetUserBadgeResponse + */ +public class GetUserBadgeResponseTest { + private final GetUserBadgeResponse model = new GetUserBadgeResponse(); + + /** + * Model tests for GetUserBadgeResponse + */ + @Test + public void testGetUserBadgeResponse() { + // TODO: test GetUserBadgeResponse + } + + /** + * 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/GetUserBadgesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgesResponseTest.java new file mode 100644 index 00000000..fda21ebc --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserBadgesResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetUserBadgesResponse + */ +public class GetUserBadgesResponseTest { + private final GetUserBadgesResponse model = new GetUserBadgesResponse(); + + /** + * Model tests for GetUserBadgesResponse + */ + @Test + public void testGetUserBadgesResponse() { + // TODO: test GetUserBadgesResponse + } + + /** + * 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/GetUserBanPreferenceResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBanPreferenceResponseTest.java new file mode 100644 index 00000000..800bc98e --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserBanPreferenceResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.APIModerateGetUserBanPreferencesResponse; +import com.fastcomments.model.APIModerateUserBanPreferences; +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 GetUserBanPreferenceResponse + */ +public class GetUserBanPreferenceResponseTest { + private final GetUserBanPreferenceResponse model = new GetUserBanPreferenceResponse(); + + /** + * Model tests for GetUserBanPreferenceResponse + */ + @Test + public void testGetUserBanPreferenceResponse() { + // TODO: test GetUserBanPreferenceResponse + } + + /** + * Test the property 'preferences' + */ + @Test + public void preferencesTest() { + // TODO: test preferences + } + + /** + * 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/GetUserInternalProfileResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponse1Test.java new file mode 100644 index 00000000..f6b4cefd --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetUserInternalProfileResponse; +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 GetUserInternalProfileResponse1 + */ +public class GetUserInternalProfileResponse1Test { + private final GetUserInternalProfileResponse1 model = new GetUserInternalProfileResponse1(); + + /** + * Model tests for GetUserInternalProfileResponse1 + */ + @Test + public void testGetUserInternalProfileResponse1() { + // TODO: test GetUserInternalProfileResponse1 + } + + /** + * Test the property 'profile' + */ + @Test + public void profileTest() { + // TODO: test profile + } + + /** + * 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/GetUserNotificationCountResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetUserNotificationCountResponse1Test.java new file mode 100644 index 00000000..7df7b838 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserNotificationCountResponse1Test.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.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 GetUserNotificationCountResponse1 + */ +public class GetUserNotificationCountResponse1Test { + private final GetUserNotificationCountResponse1 model = new GetUserNotificationCountResponse1(); + + /** + * Model tests for GetUserNotificationCountResponse1 + */ + @Test + public void testGetUserNotificationCountResponse1() { + // TODO: test GetUserNotificationCountResponse1 + } + + /** + * 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/GetUserNotificationsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserNotificationsResponseTest.java new file mode 100644 index 00000000..229f2165 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserNotificationsResponseTest.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.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 GetUserNotificationsResponse + */ +public class GetUserNotificationsResponseTest { + private final GetUserNotificationsResponse model = new GetUserNotificationsResponse(); + + /** + * Model tests for GetUserNotificationsResponse + */ + @Test + public void testGetUserNotificationsResponse() { + // TODO: test GetUserNotificationsResponse + } + + /** + * 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/GetUserPresenceStatusesResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetUserPresenceStatusesResponse1Test.java new file mode 100644 index 00000000..c6917ddd --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserPresenceStatusesResponse1Test.java @@ -0,0 +1,118 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetUserPresenceStatusesResponse1 + */ +public class GetUserPresenceStatusesResponse1Test { + private final GetUserPresenceStatusesResponse1 model = new GetUserPresenceStatusesResponse1(); + + /** + * Model tests for GetUserPresenceStatusesResponse1 + */ + @Test + public void testGetUserPresenceStatusesResponse1() { + // TODO: test GetUserPresenceStatusesResponse1 + } + + /** + * 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/GetUserReactsPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserReactsPublicResponseTest.java new file mode 100644 index 00000000..b99f24a2 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserReactsPublicResponseTest.java @@ -0,0 +1,118 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetUserReactsPublicResponse + */ +public class GetUserReactsPublicResponseTest { + private final GetUserReactsPublicResponse model = new GetUserReactsPublicResponse(); + + /** + * Model tests for GetUserReactsPublicResponse + */ + @Test + public void testGetUserReactsPublicResponse() { + // TODO: test GetUserReactsPublicResponse + } + + /** + * 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/GetUserResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetUserResponse1Test.java new file mode 100644 index 00000000..5c646033 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUserResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetUserResponse1 + */ +public class GetUserResponse1Test { + private final GetUserResponse1 model = new GetUserResponse1(); + + /** + * Model tests for GetUserResponse1 + */ + @Test + public void testGetUserResponse1() { + // TODO: test GetUserResponse1 + } + + /** + * 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/GetUsersInfoResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUsersInfoResponseTest.java new file mode 100644 index 00000000..4b0fa3d4 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetUsersInfoResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.PageUserEntry; +import com.fastcomments.model.PageUsersInfoResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetUsersInfoResponse + */ +public class GetUsersInfoResponseTest { + private final GetUsersInfoResponse model = new GetUsersInfoResponse(); + + /** + * Model tests for GetUsersInfoResponse + */ + @Test + public void testGetUsersInfoResponse() { + // TODO: test GetUsersInfoResponse + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } + + /** + * 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/GetV1PageLikesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetV1PageLikesResponseTest.java new file mode 100644 index 00000000..57e7465a --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetV1PageLikesResponseTest.java @@ -0,0 +1,140 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetV1PageLikes; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetV1PageLikesResponse + */ +public class GetV1PageLikesResponseTest { + private final GetV1PageLikesResponse model = new GetV1PageLikesResponse(); + + /** + * Model tests for GetV1PageLikesResponse + */ + @Test + public void testGetV1PageLikesResponse() { + // TODO: test GetV1PageLikesResponse + } + + /** + * 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 + } + + /** + * 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/GetV2PageReactUsersResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetV2PageReactUsersResponse1Test.java new file mode 100644 index 00000000..90d7f7ff --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetV2PageReactUsersResponse1Test.java @@ -0,0 +1,118 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetV2PageReactUsersResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetV2PageReactUsersResponse1 + */ +public class GetV2PageReactUsersResponse1Test { + private final GetV2PageReactUsersResponse1 model = new GetV2PageReactUsersResponse1(); + + /** + * Model tests for GetV2PageReactUsersResponse1 + */ + @Test + public void testGetV2PageReactUsersResponse1() { + // TODO: test GetV2PageReactUsersResponse1 + } + + /** + * Test the property 'userNames' + */ + @Test + public void userNamesTest() { + // TODO: test userNames + } + + /** + * 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/GetV2PageReactsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetV2PageReactsResponseTest.java new file mode 100644 index 00000000..79a776a0 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetV2PageReactsResponseTest.java @@ -0,0 +1,128 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.GetV2PageReacts; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 GetV2PageReactsResponse + */ +public class GetV2PageReactsResponseTest { + private final GetV2PageReactsResponse model = new GetV2PageReactsResponse(); + + /** + * Model tests for GetV2PageReactsResponse + */ + @Test + public void testGetV2PageReactsResponse() { + // TODO: test GetV2PageReactsResponse + } + + /** + * 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 + } + + /** + * 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/GetVotesForUserResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetVotesForUserResponse1Test.java new file mode 100644 index 00000000..363a816a --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetVotesForUserResponse1Test.java @@ -0,0 +1,135 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetVotesForUserResponse1 + */ +public class GetVotesForUserResponse1Test { + private final GetVotesForUserResponse1 model = new GetVotesForUserResponse1(); + + /** + * Model tests for GetVotesForUserResponse1 + */ + @Test + public void testGetVotesForUserResponse1() { + // TODO: test GetVotesForUserResponse1 + } + + /** + * 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/GetVotesResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetVotesResponse1Test.java new file mode 100644 index 00000000..084c0df3 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/GetVotesResponse1Test.java @@ -0,0 +1,135 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 GetVotesResponse1 + */ +public class GetVotesResponse1Test { + private final GetVotesResponse1 model = new GetVotesResponse1(); + + /** + * Model tests for GetVotesResponse1 + */ + @Test + public void testGetVotesResponse1() { + // TODO: test GetVotesResponse1 + } + + /** + * 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/LockCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/LockCommentResponseTest.java new file mode 100644 index 00000000..28efb84d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/LockCommentResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 LockCommentResponse + */ +public class LockCommentResponseTest { + private final LockCommentResponse model = new LockCommentResponse(); + + /** + * Model tests for LockCommentResponse + */ + @Test + public void testLockCommentResponse() { + // TODO: test LockCommentResponse + } + + /** + * 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/PatchHashTagResponseTest.java b/client/src/test/java/com/fastcomments/model/PatchHashTagResponseTest.java new file mode 100644 index 00000000..cf252df7 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PatchHashTagResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 PatchHashTagResponse + */ +public class PatchHashTagResponseTest { + private final PatchHashTagResponse model = new PatchHashTagResponse(); + + /** + * Model tests for PatchHashTagResponse + */ + @Test + public void testPatchHashTagResponse() { + // TODO: test PatchHashTagResponse + } + + /** + * 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/PinCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PinCommentResponseTest.java new file mode 100644 index 00000000..d5321645 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PinCommentResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 PinCommentResponse + */ +public class PinCommentResponseTest { + private final PinCommentResponse model = new PinCommentResponse(); + + /** + * Model tests for PinCommentResponse + */ + @Test + public void testPinCommentResponse() { + // TODO: test PinCommentResponse + } + + /** + * 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/PostAdjustCommentVotesResponseTest.java b/client/src/test/java/com/fastcomments/model/PostAdjustCommentVotesResponseTest.java new file mode 100644 index 00000000..c1400acb --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostAdjustCommentVotesResponseTest.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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.AdjustVotesResponse; +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 PostAdjustCommentVotesResponse + */ +public class PostAdjustCommentVotesResponseTest { + private final PostAdjustCommentVotesResponse model = new PostAdjustCommentVotesResponse(); + + /** + * Model tests for PostAdjustCommentVotesResponse + */ + @Test + public void testPostAdjustCommentVotesResponse() { + // TODO: test PostAdjustCommentVotesResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'newCommentVotes' + */ + @Test + public void newCommentVotesTest() { + // TODO: test newCommentVotes + } + + /** + * 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/PostApiExportResponseTest.java b/client/src/test/java/com/fastcomments/model/PostApiExportResponseTest.java new file mode 100644 index 00000000..5191e4cb --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostApiExportResponseTest.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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.ModerationExportResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 PostApiExportResponse + */ +public class PostApiExportResponseTest { + private final PostApiExportResponse model = new PostApiExportResponse(); + + /** + * Model tests for PostApiExportResponse + */ + @Test + public void testPostApiExportResponse() { + // TODO: test PostApiExportResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'batchJobId' + */ + @Test + public void batchJobIdTest() { + // TODO: test batchJobId + } + + /** + * 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/PostBanUserFromCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PostBanUserFromCommentResponseTest.java new file mode 100644 index 00000000..bd00b157 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostBanUserFromCommentResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.fastcomments.model.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.BanUserFromCommentResult; +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 PostBanUserFromCommentResponse + */ +public class PostBanUserFromCommentResponseTest { + private final PostBanUserFromCommentResponse model = new PostBanUserFromCommentResponse(); + + /** + * Model tests for PostBanUserFromCommentResponse + */ + @Test + public void testPostBanUserFromCommentResponse() { + // TODO: test PostBanUserFromCommentResponse + } + + /** + * 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 + } + + /** + * 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/PostBanUserUndoResponseTest.java b/client/src/test/java/com/fastcomments/model/PostBanUserUndoResponseTest.java new file mode 100644 index 00000000..adde83f4 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostBanUserUndoResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 PostBanUserUndoResponse + */ +public class PostBanUserUndoResponseTest { + private final PostBanUserUndoResponse model = new PostBanUserUndoResponse(); + + /** + * Model tests for PostBanUserUndoResponse + */ + @Test + public void testPostBanUserUndoResponse() { + // TODO: test PostBanUserUndoResponse + } + + /** + * 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/PostBulkPreBanSummaryResponseTest.java b/client/src/test/java/com/fastcomments/model/PostBulkPreBanSummaryResponseTest.java new file mode 100644 index 00000000..fa505b49 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostBulkPreBanSummaryResponseTest.java @@ -0,0 +1,150 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.BulkPreBanSummary; +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 PostBulkPreBanSummaryResponse + */ +public class PostBulkPreBanSummaryResponseTest { + private final PostBulkPreBanSummaryResponse model = new PostBulkPreBanSummaryResponse(); + + /** + * Model tests for PostBulkPreBanSummaryResponse + */ + @Test + public void testPostBulkPreBanSummaryResponse() { + // TODO: test PostBulkPreBanSummaryResponse + } + + /** + * 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 + } + + /** + * 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/PostCommentsByIdsResponseTest.java b/client/src/test/java/com/fastcomments/model/PostCommentsByIdsResponseTest.java new file mode 100644 index 00000000..69afa8c6 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostCommentsByIdsResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.ModerationAPIChildCommentsResponse; +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 PostCommentsByIdsResponse + */ +public class PostCommentsByIdsResponseTest { + private final PostCommentsByIdsResponse model = new PostCommentsByIdsResponse(); + + /** + * Model tests for PostCommentsByIdsResponse + */ + @Test + public void testPostCommentsByIdsResponse() { + // TODO: test PostCommentsByIdsResponse + } + + /** + * Test the property 'comments' + */ + @Test + public void commentsTest() { + // TODO: test comments + } + + /** + * 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/PostFlagCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PostFlagCommentResponseTest.java new file mode 100644 index 00000000..31d07f1f --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostFlagCommentResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 PostFlagCommentResponse + */ +public class PostFlagCommentResponseTest { + private final PostFlagCommentResponse model = new PostFlagCommentResponse(); + + /** + * Model tests for PostFlagCommentResponse + */ + @Test + public void testPostFlagCommentResponse() { + // TODO: test PostFlagCommentResponse + } + + /** + * 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 index dba61c87..4dd7ab26 100644 --- a/client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java @@ -13,6 +13,9 @@ package com.fastcomments.model; +import com.fastcomments.model.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; import com.fastcomments.model.DeleteCommentResult; import com.fastcomments.model.RemoveCommentActionResponse; import com.google.gson.TypeAdapter; @@ -55,4 +58,60 @@ 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/PostRestoreDeletedCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PostRestoreDeletedCommentResponseTest.java new file mode 100644 index 00000000..ad005683 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostRestoreDeletedCommentResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 PostRestoreDeletedCommentResponse + */ +public class PostRestoreDeletedCommentResponseTest { + private final PostRestoreDeletedCommentResponse model = new PostRestoreDeletedCommentResponse(); + + /** + * Model tests for PostRestoreDeletedCommentResponse + */ + @Test + public void testPostRestoreDeletedCommentResponse() { + // TODO: test PostRestoreDeletedCommentResponse + } + + /** + * 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/PostSetCommentApprovalStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/PostSetCommentApprovalStatusResponseTest.java new file mode 100644 index 00000000..e8ef5405 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostSetCommentApprovalStatusResponseTest.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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.SetCommentApprovedResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 PostSetCommentApprovalStatusResponse + */ +public class PostSetCommentApprovalStatusResponseTest { + private final PostSetCommentApprovalStatusResponse model = new PostSetCommentApprovalStatusResponse(); + + /** + * Model tests for PostSetCommentApprovalStatusResponse + */ + @Test + public void testPostSetCommentApprovalStatusResponse() { + // TODO: test PostSetCommentApprovalStatusResponse + } + + /** + * Test the property 'didResetFlaggedCount' + */ + @Test + public void didResetFlaggedCountTest() { + // TODO: test didResetFlaggedCount + } + + /** + * 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/PostSetCommentReviewStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/PostSetCommentReviewStatusResponseTest.java new file mode 100644 index 00000000..ffa5274b --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostSetCommentReviewStatusResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 PostSetCommentReviewStatusResponse + */ +public class PostSetCommentReviewStatusResponseTest { + private final PostSetCommentReviewStatusResponse model = new PostSetCommentReviewStatusResponse(); + + /** + * Model tests for PostSetCommentReviewStatusResponse + */ + @Test + public void testPostSetCommentReviewStatusResponse() { + // TODO: test PostSetCommentReviewStatusResponse + } + + /** + * 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/PostSetCommentSpamStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/PostSetCommentSpamStatusResponseTest.java new file mode 100644 index 00000000..da5237fb --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostSetCommentSpamStatusResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 PostSetCommentSpamStatusResponse + */ +public class PostSetCommentSpamStatusResponseTest { + private final PostSetCommentSpamStatusResponse model = new PostSetCommentSpamStatusResponse(); + + /** + * Model tests for PostSetCommentSpamStatusResponse + */ + @Test + public void testPostSetCommentSpamStatusResponse() { + // TODO: test PostSetCommentSpamStatusResponse + } + + /** + * 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/PostSetCommentTextResponseTest.java b/client/src/test/java/com/fastcomments/model/PostSetCommentTextResponseTest.java new file mode 100644 index 00000000..156cf0b1 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostSetCommentTextResponseTest.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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.SetCommentTextResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 PostSetCommentTextResponse + */ +public class PostSetCommentTextResponseTest { + private final PostSetCommentTextResponse model = new PostSetCommentTextResponse(); + + /** + * Model tests for PostSetCommentTextResponse + */ + @Test + public void testPostSetCommentTextResponse() { + // TODO: test PostSetCommentTextResponse + } + + /** + * Test the property 'newCommentTextHTML' + */ + @Test + public void newCommentTextHTMLTest() { + // TODO: test newCommentTextHTML + } + + /** + * 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/PostUnFlagCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PostUnFlagCommentResponseTest.java new file mode 100644 index 00000000..8b56150d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostUnFlagCommentResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 PostUnFlagCommentResponse + */ +public class PostUnFlagCommentResponseTest { + private final PostUnFlagCommentResponse model = new PostUnFlagCommentResponse(); + + /** + * Model tests for PostUnFlagCommentResponse + */ + @Test + public void testPostUnFlagCommentResponse() { + // TODO: test PostUnFlagCommentResponse + } + + /** + * 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/PostVoteResponseTest.java b/client/src/test/java/com/fastcomments/model/PostVoteResponseTest.java new file mode 100644 index 00000000..2def301a --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PostVoteResponseTest.java @@ -0,0 +1,141 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 PostVoteResponse + */ +public class PostVoteResponseTest { + private final PostVoteResponse model = new PostVoteResponse(); + + /** + * Model tests for PostVoteResponse + */ + @Test + public void testPostVoteResponse() { + // TODO: test PostVoteResponse + } + + /** + * 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/client/src/test/java/com/fastcomments/model/PutAwardBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/PutAwardBadgeResponseTest.java new file mode 100644 index 00000000..9d6c92e1 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PutAwardBadgeResponseTest.java @@ -0,0 +1,127 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.AwardUserBadgeResponse; +import com.fastcomments.model.CommentUserBadgeInfo; +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 PutAwardBadgeResponse + */ +public class PutAwardBadgeResponseTest { + private final PutAwardBadgeResponse model = new PutAwardBadgeResponse(); + + /** + * Model tests for PutAwardBadgeResponse + */ + @Test + public void testPutAwardBadgeResponse() { + // TODO: test PutAwardBadgeResponse + } + + /** + * 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 + } + + /** + * 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/PutCloseThreadResponseTest.java b/client/src/test/java/com/fastcomments/model/PutCloseThreadResponseTest.java new file mode 100644 index 00000000..9dc01e8d --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PutCloseThreadResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 PutCloseThreadResponse + */ +public class PutCloseThreadResponseTest { + private final PutCloseThreadResponse model = new PutCloseThreadResponse(); + + /** + * Model tests for PutCloseThreadResponse + */ + @Test + public void testPutCloseThreadResponse() { + // TODO: test PutCloseThreadResponse + } + + /** + * 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/PutRemoveBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/PutRemoveBadgeResponseTest.java new file mode 100644 index 00000000..2d7edad8 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PutRemoveBadgeResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.CommentUserBadgeInfo; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.RemoveUserBadgeResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 PutRemoveBadgeResponse + */ +public class PutRemoveBadgeResponseTest { + private final PutRemoveBadgeResponse model = new PutRemoveBadgeResponse(); + + /** + * Model tests for PutRemoveBadgeResponse + */ + @Test + public void testPutRemoveBadgeResponse() { + // TODO: test PutRemoveBadgeResponse + } + + /** + * Test the property 'badges' + */ + @Test + public void badgesTest() { + // TODO: test badges + } + + /** + * 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/PutReopenThreadResponseTest.java b/client/src/test/java/com/fastcomments/model/PutReopenThreadResponseTest.java new file mode 100644 index 00000000..344876bd --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/PutReopenThreadResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 PutReopenThreadResponse + */ +public class PutReopenThreadResponseTest { + private final PutReopenThreadResponse model = new PutReopenThreadResponse(); + + /** + * Model tests for PutReopenThreadResponse + */ + @Test + public void testPutReopenThreadResponse() { + // TODO: test PutReopenThreadResponse + } + + /** + * 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/ReactFeedPostPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/ReactFeedPostPublicResponseTest.java new file mode 100644 index 00000000..a4e6655f --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ReactFeedPostPublicResponseTest.java @@ -0,0 +1,124 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 ReactFeedPostPublicResponse + */ +public class ReactFeedPostPublicResponseTest { + private final ReactFeedPostPublicResponse model = new ReactFeedPostPublicResponse(); + + /** + * Model tests for ReactFeedPostPublicResponse + */ + @Test + public void testReactFeedPostPublicResponse() { + // TODO: test ReactFeedPostPublicResponse + } + + /** + * 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/RenderEmailTemplateResponse1Test.java b/client/src/test/java/com/fastcomments/model/RenderEmailTemplateResponse1Test.java new file mode 100644 index 00000000..ea61003f --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/RenderEmailTemplateResponse1Test.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.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 RenderEmailTemplateResponse1 + */ +public class RenderEmailTemplateResponse1Test { + private final RenderEmailTemplateResponse1 model = new RenderEmailTemplateResponse1(); + + /** + * Model tests for RenderEmailTemplateResponse1 + */ + @Test + public void testRenderEmailTemplateResponse1() { + // TODO: test RenderEmailTemplateResponse1 + } + + /** + * 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/ReplaceTenantPackageResponseTest.java b/client/src/test/java/com/fastcomments/model/ReplaceTenantPackageResponseTest.java new file mode 100644 index 00000000..23b65400 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ReplaceTenantPackageResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 ReplaceTenantPackageResponse + */ +public class ReplaceTenantPackageResponseTest { + private final ReplaceTenantPackageResponse model = new ReplaceTenantPackageResponse(); + + /** + * Model tests for ReplaceTenantPackageResponse + */ + @Test + public void testReplaceTenantPackageResponse() { + // TODO: test ReplaceTenantPackageResponse + } + + /** + * 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/ReplaceTenantUserResponseTest.java b/client/src/test/java/com/fastcomments/model/ReplaceTenantUserResponseTest.java new file mode 100644 index 00000000..c8a10843 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ReplaceTenantUserResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 ReplaceTenantUserResponse + */ +public class ReplaceTenantUserResponseTest { + private final ReplaceTenantUserResponse model = new ReplaceTenantUserResponse(); + + /** + * Model tests for ReplaceTenantUserResponse + */ + @Test + public void testReplaceTenantUserResponse() { + // TODO: test ReplaceTenantUserResponse + } + + /** + * 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/ResetUserNotificationCountResponseTest.java b/client/src/test/java/com/fastcomments/model/ResetUserNotificationCountResponseTest.java new file mode 100644 index 00000000..1bab7cd2 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ResetUserNotificationCountResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 ResetUserNotificationCountResponse + */ +public class ResetUserNotificationCountResponseTest { + private final ResetUserNotificationCountResponse model = new ResetUserNotificationCountResponse(); + + /** + * Model tests for ResetUserNotificationCountResponse + */ + @Test + public void testResetUserNotificationCountResponse() { + // TODO: test ResetUserNotificationCountResponse + } + + /** + * 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/ResetUserNotificationsResponse1Test.java b/client/src/test/java/com/fastcomments/model/ResetUserNotificationsResponse1Test.java new file mode 100644 index 00000000..1389ddf6 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/ResetUserNotificationsResponse1Test.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 ResetUserNotificationsResponse1 + */ +public class ResetUserNotificationsResponse1Test { + private final ResetUserNotificationsResponse1 model = new ResetUserNotificationsResponse1(); + + /** + * Model tests for ResetUserNotificationsResponse1 + */ + @Test + public void testResetUserNotificationsResponse1() { + // TODO: test ResetUserNotificationsResponse1 + } + + /** + * 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/SaveCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/SaveCommentResponseTest.java new file mode 100644 index 00000000..4f3822d8 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/SaveCommentResponseTest.java @@ -0,0 +1,136 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.APISaveCommentResponse; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +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 SaveCommentResponse + */ +public class SaveCommentResponseTest { + private final SaveCommentResponse model = new SaveCommentResponse(); + + /** + * Model tests for SaveCommentResponse + */ + @Test + public void testSaveCommentResponse() { + // TODO: test SaveCommentResponse + } + + /** + * 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 '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/SearchUsersResponse1Test.java b/client/src/test/java/com/fastcomments/model/SearchUsersResponse1Test.java new file mode 100644 index 00000000..a093de1f --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/SearchUsersResponse1Test.java @@ -0,0 +1,128 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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.SearchUsersResult; +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 SearchUsersResponse1 + */ +public class SearchUsersResponse1Test { + private final SearchUsersResponse1 model = new SearchUsersResponse1(); + + /** + * Model tests for SearchUsersResponse1 + */ + @Test + public void testSearchUsersResponse1() { + // TODO: test SearchUsersResponse1 + } + + /** + * 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/SendInviteResponseTest.java b/client/src/test/java/com/fastcomments/model/SendInviteResponseTest.java new file mode 100644 index 00000000..fe3e5b99 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/SendInviteResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 SendInviteResponse + */ +public class SendInviteResponseTest { + private final SendInviteResponse model = new SendInviteResponse(); + + /** + * Model tests for SendInviteResponse + */ + @Test + public void testSendInviteResponse() { + // TODO: test SendInviteResponse + } + + /** + * 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/SendLoginLinkResponseTest.java b/client/src/test/java/com/fastcomments/model/SendLoginLinkResponseTest.java new file mode 100644 index 00000000..59cd4ad5 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/SendLoginLinkResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 SendLoginLinkResponse + */ +public class SendLoginLinkResponseTest { + private final SendLoginLinkResponse model = new SendLoginLinkResponse(); + + /** + * Model tests for SendLoginLinkResponse + */ + @Test + public void testSendLoginLinkResponse() { + // TODO: test SendLoginLinkResponse + } + + /** + * 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/SetCommentTextResponse1Test.java b/client/src/test/java/com/fastcomments/model/SetCommentTextResponse1Test.java new file mode 100644 index 00000000..5a153429 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/SetCommentTextResponse1Test.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 SetCommentTextResponse1 + */ +public class SetCommentTextResponse1Test { + private final SetCommentTextResponse1 model = new SetCommentTextResponse1(); + + /** + * Model tests for SetCommentTextResponse1 + */ + @Test + public void testSetCommentTextResponse1() { + // TODO: test SetCommentTextResponse1 + } + + /** + * 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/SetTrustFactorResponseTest.java b/client/src/test/java/com/fastcomments/model/SetTrustFactorResponseTest.java new file mode 100644 index 00000000..27663099 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/SetTrustFactorResponseTest.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.APIError; +import com.fastcomments.model.APIStatus; +import com.fastcomments.model.CustomConfigParameters; +import com.fastcomments.model.SetUserTrustFactorResponse; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import 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 SetTrustFactorResponse + */ +public class SetTrustFactorResponseTest { + private final SetTrustFactorResponse model = new SetTrustFactorResponse(); + + /** + * Model tests for SetTrustFactorResponse + */ + @Test + public void testSetTrustFactorResponse() { + // TODO: test SetTrustFactorResponse + } + + /** + * Test the property 'previousManualTrustFactor' + */ + @Test + public void previousManualTrustFactorTest() { + // TODO: test previousManualTrustFactor + } + + /** + * 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/UnBlockCommentPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/UnBlockCommentPublicResponseTest.java new file mode 100644 index 00000000..72cbbe56 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UnBlockCommentPublicResponseTest.java @@ -0,0 +1,118 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UnBlockCommentPublicResponse + */ +public class UnBlockCommentPublicResponseTest { + private final UnBlockCommentPublicResponse model = new UnBlockCommentPublicResponse(); + + /** + * Model tests for UnBlockCommentPublicResponse + */ + @Test + public void testUnBlockCommentPublicResponse() { + // TODO: test UnBlockCommentPublicResponse + } + + /** + * 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/UnBlockUserFromCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/UnBlockUserFromCommentResponseTest.java new file mode 100644 index 00000000..341b3abb --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UnBlockUserFromCommentResponseTest.java @@ -0,0 +1,118 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UnBlockUserFromCommentResponse + */ +public class UnBlockUserFromCommentResponseTest { + private final UnBlockUserFromCommentResponse model = new UnBlockUserFromCommentResponse(); + + /** + * Model tests for UnBlockUserFromCommentResponse + */ + @Test + public void testUnBlockUserFromCommentResponse() { + // TODO: test UnBlockUserFromCommentResponse + } + + /** + * 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/UnFlagCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/UnFlagCommentResponseTest.java new file mode 100644 index 00000000..2097f0dd --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UnFlagCommentResponseTest.java @@ -0,0 +1,124 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UnFlagCommentResponse + */ +public class UnFlagCommentResponseTest { + private final UnFlagCommentResponse model = new UnFlagCommentResponse(); + + /** + * Model tests for UnFlagCommentResponse + */ + @Test + public void testUnFlagCommentResponse() { + // TODO: test UnFlagCommentResponse + } + + /** + * 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/UnLockCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/UnLockCommentResponseTest.java new file mode 100644 index 00000000..4e75c904 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UnLockCommentResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UnLockCommentResponse + */ +public class UnLockCommentResponseTest { + private final UnLockCommentResponse model = new UnLockCommentResponse(); + + /** + * Model tests for UnLockCommentResponse + */ + @Test + public void testUnLockCommentResponse() { + // TODO: test UnLockCommentResponse + } + + /** + * 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/UnPinCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/UnPinCommentResponseTest.java new file mode 100644 index 00000000..c01cb6fc --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UnPinCommentResponseTest.java @@ -0,0 +1,119 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UnPinCommentResponse + */ +public class UnPinCommentResponseTest { + private final UnPinCommentResponse model = new UnPinCommentResponse(); + + /** + * Model tests for UnPinCommentResponse + */ + @Test + public void testUnPinCommentResponse() { + // TODO: test UnPinCommentResponse + } + + /** + * 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/UpdateCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateCommentResponseTest.java new file mode 100644 index 00000000..86f78a6f --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateCommentResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateCommentResponse + */ +public class UpdateCommentResponseTest { + private final UpdateCommentResponse model = new UpdateCommentResponse(); + + /** + * Model tests for UpdateCommentResponse + */ + @Test + public void testUpdateCommentResponse() { + // TODO: test UpdateCommentResponse + } + + /** + * 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/UpdateEmailTemplateResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateEmailTemplateResponseTest.java new file mode 100644 index 00000000..c52444cc --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateEmailTemplateResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateEmailTemplateResponse + */ +public class UpdateEmailTemplateResponseTest { + private final UpdateEmailTemplateResponse model = new UpdateEmailTemplateResponse(); + + /** + * Model tests for UpdateEmailTemplateResponse + */ + @Test + public void testUpdateEmailTemplateResponse() { + // TODO: test UpdateEmailTemplateResponse + } + + /** + * 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/UpdateFeedPostPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateFeedPostPublicResponseTest.java new file mode 100644 index 00000000..3bcd0c55 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateFeedPostPublicResponseTest.java @@ -0,0 +1,117 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateFeedPostPublicResponse + */ +public class UpdateFeedPostPublicResponseTest { + private final UpdateFeedPostPublicResponse model = new UpdateFeedPostPublicResponse(); + + /** + * Model tests for UpdateFeedPostPublicResponse + */ + @Test + public void testUpdateFeedPostPublicResponse() { + // TODO: test UpdateFeedPostPublicResponse + } + + /** + * 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/UpdateFeedPostResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateFeedPostResponseTest.java new file mode 100644 index 00000000..329980a5 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateFeedPostResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateFeedPostResponse + */ +public class UpdateFeedPostResponseTest { + private final UpdateFeedPostResponse model = new UpdateFeedPostResponse(); + + /** + * Model tests for UpdateFeedPostResponse + */ + @Test + public void testUpdateFeedPostResponse() { + // TODO: test UpdateFeedPostResponse + } + + /** + * 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/UpdateModeratorResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateModeratorResponseTest.java new file mode 100644 index 00000000..bcd4c293 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateModeratorResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateModeratorResponse + */ +public class UpdateModeratorResponseTest { + private final UpdateModeratorResponse model = new UpdateModeratorResponse(); + + /** + * Model tests for UpdateModeratorResponse + */ + @Test + public void testUpdateModeratorResponse() { + // TODO: test UpdateModeratorResponse + } + + /** + * 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/UpdateNotificationResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateNotificationResponseTest.java new file mode 100644 index 00000000..7fd7d98b --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateNotificationResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateNotificationResponse + */ +public class UpdateNotificationResponseTest { + private final UpdateNotificationResponse model = new UpdateNotificationResponse(); + + /** + * Model tests for UpdateNotificationResponse + */ + @Test + public void testUpdateNotificationResponse() { + // TODO: test UpdateNotificationResponse + } + + /** + * 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/UpdateQuestionConfigResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateQuestionConfigResponseTest.java new file mode 100644 index 00000000..f9b73c3b --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateQuestionConfigResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateQuestionConfigResponse + */ +public class UpdateQuestionConfigResponseTest { + private final UpdateQuestionConfigResponse model = new UpdateQuestionConfigResponse(); + + /** + * Model tests for UpdateQuestionConfigResponse + */ + @Test + public void testUpdateQuestionConfigResponse() { + // TODO: test UpdateQuestionConfigResponse + } + + /** + * 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/UpdateQuestionResultResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateQuestionResultResponseTest.java new file mode 100644 index 00000000..f1b662e5 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateQuestionResultResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateQuestionResultResponse + */ +public class UpdateQuestionResultResponseTest { + private final UpdateQuestionResultResponse model = new UpdateQuestionResultResponse(); + + /** + * Model tests for UpdateQuestionResultResponse + */ + @Test + public void testUpdateQuestionResultResponse() { + // TODO: test UpdateQuestionResultResponse + } + + /** + * 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/UpdateTenantPackageResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateTenantPackageResponseTest.java new file mode 100644 index 00000000..f3064ce5 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateTenantPackageResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateTenantPackageResponse + */ +public class UpdateTenantPackageResponseTest { + private final UpdateTenantPackageResponse model = new UpdateTenantPackageResponse(); + + /** + * Model tests for UpdateTenantPackageResponse + */ + @Test + public void testUpdateTenantPackageResponse() { + // TODO: test UpdateTenantPackageResponse + } + + /** + * 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/UpdateTenantResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateTenantResponseTest.java new file mode 100644 index 00000000..2ca952c2 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateTenantResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateTenantResponse + */ +public class UpdateTenantResponseTest { + private final UpdateTenantResponse model = new UpdateTenantResponse(); + + /** + * Model tests for UpdateTenantResponse + */ + @Test + public void testUpdateTenantResponse() { + // TODO: test UpdateTenantResponse + } + + /** + * 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/UpdateTenantUserResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateTenantUserResponseTest.java new file mode 100644 index 00000000..2fdf3df2 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateTenantUserResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateTenantUserResponse + */ +public class UpdateTenantUserResponseTest { + private final UpdateTenantUserResponse model = new UpdateTenantUserResponse(); + + /** + * Model tests for UpdateTenantUserResponse + */ + @Test + public void testUpdateTenantUserResponse() { + // TODO: test UpdateTenantUserResponse + } + + /** + * 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/UpdateUserBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateUserBadgeResponseTest.java new file mode 100644 index 00000000..32c648d7 --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/UpdateUserBadgeResponseTest.java @@ -0,0 +1,108 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 UpdateUserBadgeResponse + */ +public class UpdateUserBadgeResponseTest { + private final UpdateUserBadgeResponse model = new UpdateUserBadgeResponse(); + + /** + * Model tests for UpdateUserBadgeResponse + */ + @Test + public void testUpdateUserBadgeResponse() { + // TODO: test UpdateUserBadgeResponse + } + + /** + * 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 index e1d0e1bf..46693466 100644 --- a/client/src/test/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponseTest.java @@ -13,7 +13,9 @@ 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; @@ -72,4 +74,60 @@ 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/UpdateUserNotificationPageSubscriptionStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponseTest.java index 9c910d47..c08688fd 100644 --- a/client/src/test/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponseTest.java @@ -13,7 +13,9 @@ 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; @@ -72,4 +74,60 @@ 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 index 38e08f7c..a4c01631 100644 --- a/client/src/test/java/com/fastcomments/model/UpdateUserNotificationStatusResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationStatusResponseTest.java @@ -13,7 +13,9 @@ 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; @@ -72,4 +74,60 @@ 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/VoteCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/VoteCommentResponseTest.java new file mode 100644 index 00000000..5e3ca73b --- /dev/null +++ b/client/src/test/java/com/fastcomments/model/VoteCommentResponseTest.java @@ -0,0 +1,141 @@ +/* + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * Contact: support@fastcomments.com + * + * NOTE: This class is 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 VoteCommentResponse + */ +public class VoteCommentResponseTest { + private final VoteCommentResponse model = new VoteCommentResponse(); + + /** + * Model tests for VoteCommentResponse + */ + @Test + public void testVoteCommentResponse() { + // TODO: test VoteCommentResponse + } + + /** + * 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/openapi.json b/openapi.json index ca0225c5..b02430d0 100644 --- a/openapi.json +++ b/openapi.json @@ -11528,17 +11528,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SearchUsersResult" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SearchUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/SearchUsersResult" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -11616,7 +11614,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" + "title": "GetUserPresenceStatusesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -11630,16 +11636,6 @@ } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -11683,17 +11679,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetMyNotificationsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserNotificationsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetMyNotificationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -11815,17 +11809,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ResetUserNotificationsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -11905,17 +11897,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserNotificationCountResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserNotificationCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserNotificationCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -11954,17 +11944,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ResetUserNotificationCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12010,21 +11998,14 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" + }, + { + "$ref": "#/components/schemas/APIError" } ] } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -12087,21 +12068,14 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" + }, + { + "$ref": "#/components/schemas/APIError" } ] } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "description": "Enable or disable notifications for a specific comment.", @@ -12173,21 +12147,14 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" + }, + { + "$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", @@ -12329,7 +12296,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTranslationsResponse" + "title": "GetTranslationsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTranslationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12353,16 +12328,6 @@ } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -12414,17 +12379,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetPublicPagesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetPagesPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetPublicPagesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12502,7 +12465,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageUsersOnlineResponse" + "title": "GetOnlineUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PageUsersOnlineResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12526,16 +12497,6 @@ } } } - }, - "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).", @@ -12591,7 +12552,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageUsersOfflineResponse" + "title": "GetOfflineUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PageUsersOfflineResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12615,16 +12584,6 @@ } } } - }, - "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.", @@ -12680,7 +12639,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PageUsersInfoResponse" + "title": "GetUsersInfoResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PageUsersInfoResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12694,16 +12661,6 @@ } } } - }, - "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).", @@ -12741,17 +12698,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetV1PageLikes" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetV1PageLikesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetV1PageLikes" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12788,17 +12743,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateV1PageReact" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateV1PageReactResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateV1PageReact" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12843,17 +12796,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeleteV1PageReact" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteV1PageReactResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/DeleteV1PageReact" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12892,17 +12843,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetV2PageReactUsersResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetV2PageReactUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetV2PageReactUsersResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12949,17 +12898,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetV2PageReacts" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetV2PageReactsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetV2PageReacts" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -12996,17 +12943,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateV2PageReact" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateV2PageReactResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateV2PageReact" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13059,17 +13004,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeleteV2PageReact" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteV2PageReactResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/DeleteV2PageReact" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13116,17 +13059,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPICountCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPICountCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13177,6 +13118,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13197,17 +13146,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPIGetCommentIdsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetApiIdsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPIGetCommentIdsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13266,6 +13213,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13286,17 +13241,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPIGetCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetApiCommentsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPIGetCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13373,6 +13326,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13393,17 +13354,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationExportResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostApiExportResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationExportResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13454,6 +13413,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13474,17 +13441,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationExportStatusResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetApiExportStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationExportStatusResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13503,6 +13468,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13523,17 +13496,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationUserSearchResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetSearchUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationUserSearchResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13552,6 +13523,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13572,17 +13551,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationPageSearchResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetSearchPagesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationPageSearchResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13601,6 +13578,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13621,17 +13606,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationSiteSearchResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetSearchSitesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationSiteSearchResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13650,6 +13633,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13670,17 +13661,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationCommentSearchResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetSearchCommentsSummaryResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationCommentSearchResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13715,6 +13704,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13735,17 +13732,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationSuggestResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetSearchSuggestResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationSuggestResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13764,6 +13759,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13784,17 +13787,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PreBanSummary" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetPreBanSummaryResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PreBanSummary" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13837,6 +13838,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13857,17 +13866,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BulkPreBanSummary" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostBulkPreBanSummaryResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BulkPreBanSummary" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -13902,6 +13909,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13932,17 +13947,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BanUserFromCommentResult" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostBanUserFromCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BanUserFromCommentResult" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14025,6 +14038,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14045,17 +14066,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetBannedUsersFromCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetBanUsersFromCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetBannedUsersFromCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14074,6 +14093,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14094,17 +14121,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostBanUserUndoResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14115,6 +14140,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14152,21 +14185,14 @@ }, { "$ref": "#/components/schemas/RemoveCommentActionResponse" + }, + { + "$ref": "#/components/schemas/APIError" } ] } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -14182,6 +14208,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14202,17 +14244,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostRestoreDeletedCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14231,6 +14271,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14251,17 +14307,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostFlagCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14280,6 +14334,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14300,17 +14370,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostUnFlagCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14329,6 +14397,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14349,17 +14433,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostSetCommentReviewStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14386,6 +14468,22 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14406,17 +14504,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostSetCommentSpamStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14451,6 +14547,22 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14471,17 +14583,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SetCommentApprovedResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostSetCommentApprovalStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/SetCommentApprovedResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14508,6 +14618,22 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14528,17 +14654,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPIGetLogsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetLogsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPIGetLogsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14557,6 +14681,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14577,17 +14709,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPICommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetModerationCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPICommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14622,6 +14752,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14642,17 +14780,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostCommentsByIdsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14663,6 +14799,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14693,17 +14837,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentChildrenResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14722,6 +14864,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14742,17 +14892,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCommentTextResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetModerationCommentTextResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentTextResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14771,6 +14919,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14791,17 +14947,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SetCommentTextResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostSetCommentTextResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/SetCommentTextResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14820,6 +14974,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14850,17 +15020,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AdjustVotesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostAdjustCommentVotesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/AdjustVotesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14879,6 +15047,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14909,17 +15093,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PostVoteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -14946,6 +15128,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14966,17 +15164,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteDeleteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteModerationVoteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteDeleteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15003,6 +15199,22 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15023,17 +15235,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCommentBanStatusResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentBanStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentBanStatusResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15052,6 +15262,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15072,17 +15290,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIModerateGetUserBanPreferencesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBanPreferenceResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIModerateGetUserBanPreferencesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15093,6 +15309,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15113,17 +15337,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantManualBadgesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetManualBadgesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantManualBadgesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15134,6 +15356,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15154,17 +15384,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserManualBadgesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetManualBadgesForUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserManualBadgesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15191,6 +15419,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15211,17 +15447,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AwardUserBadgeResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PutAwardBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/AwardUserBadgeResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15264,6 +15498,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15284,17 +15526,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RemoveUserBadgeResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PutRemoveBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/RemoveUserBadgeResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15337,6 +15577,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15357,17 +15605,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserTrustFactorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTrustFactorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserTrustFactorResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15386,6 +15632,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15406,17 +15660,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SetUserTrustFactorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SetTrustFactorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/SetUserTrustFactorResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15443,6 +15695,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15463,17 +15723,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserInternalProfileResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserInternalProfileResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserInternalProfileResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15486,7 +15744,15 @@ "parameters": [ { "in": "query", - "name": "commentId", + "name": "commentId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tenantId", "required": false, "schema": { "type": "string" @@ -15512,17 +15778,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PutReopenThreadResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15541,6 +15805,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15561,17 +15833,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PutCloseThreadResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15590,6 +15860,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15610,17 +15888,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetBannedUsersCountResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCountsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetBannedUsersCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15631,6 +15907,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15722,6 +16006,9 @@ }, { "$ref": "#/components/schemas/GifSearchInternalError" + }, + { + "$ref": "#/components/schemas/APIError" } ] } @@ -15737,16 +16024,6 @@ } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -15807,7 +16084,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GifGetLargeResponse" + "title": "GetGifLargeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GifGetLargeResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15821,16 +16106,6 @@ } } } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" - } - } - } } }, "tags": [ @@ -15866,17 +16141,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "FlagCommentPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -15931,17 +16204,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PublicFeedPostsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetFeedPostsPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PublicFeedPostsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16023,17 +16294,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFeedPostResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateFeedPostPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateFeedPostResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16090,17 +16359,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReactFeedPostResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ReactFeedPostPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ReactFeedPostResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16173,17 +16440,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserReactsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserReactsPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UserReactsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16233,17 +16498,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFeedPostResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateFeedPostPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateFeedPostResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16307,25 +16570,22 @@ "application/json": { "schema": { "title": "DeleteFeedPostPublicResponse", - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "anyOf": [ + { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + { + "$ref": "#/components/schemas/APIError" } - }, - "required": [ - "status" - ], - "type": "object" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + ] } } } @@ -16380,17 +16640,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FeedPostsStatsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetFeedPostsStatsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/FeedPostsStatsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16440,17 +16698,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetEventLogResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetEventLogResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEventLogResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16516,17 +16772,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetEventLogResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetGlobalEventLogResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEventLogResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16592,17 +16846,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentTextResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16657,17 +16909,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SetCommentTextResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16740,17 +16990,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCommentsForUserResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentsForUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentsForUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -16830,17 +17078,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentsPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17095,17 +17341,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateCommentPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17178,17 +17422,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteCommentPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17251,17 +17493,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CheckBlockedCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CheckedCommentsForBlockedResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CheckBlockedCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17309,17 +17549,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "VoteCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17400,17 +17638,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteDeleteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteCommentVoteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteDeleteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17489,17 +17725,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentVoteUserNamesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17555,17 +17789,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PinCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17620,17 +17852,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UnPinCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17685,17 +17915,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "LockCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIError" + }, + { + "$ref": "#/components/schemas/APIEmptyResponse" + } + ] } } } @@ -17750,17 +17978,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UnLockCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIError" + }, + { + "$ref": "#/components/schemas/APIEmptyResponse" + } + ] } } } @@ -17815,17 +18041,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BlockSuccess" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "BlockFromCommentPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BlockSuccess" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -17880,17 +18104,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UnblockSuccess" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UnBlockCommentPublicResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UnblockSuccess" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18698,17 +18920,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetVotesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetVotesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetVotesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18746,17 +18966,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateVoteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18824,17 +19042,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetVotesForUserResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetVotesForUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetVotesForUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18890,17 +19106,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VoteDeleteResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteVoteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/VoteDeleteResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18948,17 +19162,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUserResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -18998,17 +19210,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetUserBadgeResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgeResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19046,17 +19256,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateUserBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptySuccessResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19104,17 +19312,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteUserBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptySuccessResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19154,17 +19360,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetUserBadgesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBadgesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19245,17 +19449,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APICreateUserBadgeResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateUserBadgeResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APICreateUserBadgeResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19297,17 +19499,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBadgeProgressByIdResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19347,17 +19547,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBadgeProgressListResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19415,17 +19613,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetUserBadgeProgressByUserIdResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19465,17 +19661,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTicketsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTicketsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTicketsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19540,17 +19734,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTicketResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateTicketResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateTicketResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19600,17 +19792,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTicketResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTicketResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTicketResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19658,17 +19848,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ChangeTicketStateResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ChangeTicketStateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/ChangeTicketStateResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19726,17 +19914,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19774,17 +19960,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateTenantResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19832,17 +20016,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteTenantResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19883,24 +20065,22 @@ }, "/api/v1/tenants": { "get": { - "operationId": "GetTenants", - "responses": { - "200": { - "description": "Ok", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetTenantsResponse" - } - } - } - }, - "default": { - "description": "Error", + "operationId": "GetTenants", + "responses": { + "200": { + "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19947,17 +20127,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTenantResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateTenantResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateTenantResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -19999,17 +20177,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantUserResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20047,17 +20223,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ReplaceTenantUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20113,17 +20287,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateTenantUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20179,17 +20351,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteTenantUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20245,17 +20415,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantUsersResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantUsersResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantUsersResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20294,17 +20462,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTenantUserResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateTenantUserResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateTenantUserResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20346,17 +20512,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SendLoginLinkResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20404,17 +20568,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantPackageResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantPackageResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantPackageResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20452,17 +20614,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "ReplaceTenantPackageResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20510,17 +20670,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateTenantPackageResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20568,17 +20726,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteTenantPackageResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20618,17 +20774,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantPackagesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantPackagesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantPackagesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20667,17 +20821,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateTenantPackageResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateTenantPackageResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateTenantPackageResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20719,17 +20871,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetTenantDailyUsagesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20797,17 +20947,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetQuestionResultResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetQuestionResultResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetQuestionResultResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20845,17 +20993,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateQuestionResultResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20903,17 +21049,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteQuestionResultResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -20953,17 +21097,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetQuestionResultsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetQuestionResultsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetQuestionResultsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21042,17 +21184,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateQuestionResultResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateQuestionResultResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateQuestionResultResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21094,17 +21234,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AggregateQuestionResultsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "AggregateQuestionResultsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/AggregateQuestionResultsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21188,17 +21326,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "BulkAggregateQuestionResultsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21248,17 +21384,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CombineCommentsWithQuestionResultsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21361,17 +21495,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetQuestionConfigResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetQuestionConfigResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetQuestionConfigResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21409,17 +21541,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateQuestionConfigResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21467,17 +21597,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteQuestionConfigResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21517,17 +21645,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetQuestionConfigsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetQuestionConfigsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetQuestionConfigsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21566,17 +21692,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateQuestionConfigResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateQuestionConfigResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateQuestionConfigResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21618,17 +21742,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetPendingWebhookEventsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21718,17 +21840,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetPendingWebhookEventCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21809,17 +21929,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeletePendingWebhookEventResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21859,17 +21977,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetNotificationsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetNotificationsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetNotificationsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -21950,17 +22066,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetNotificationCountResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetNotificationCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetNotificationCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22032,17 +22146,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateNotificationResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22092,25 +22204,23 @@ } }, "/api/v1/notification-count/{id}": { - "get": { - "operationId": "GetCachedNotificationCount", - "responses": { - "200": { - "description": "Ok", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetCachedNotificationCountResponse" - } - } - } - }, - "default": { - "description": "Error", + "get": { + "operationId": "GetCachedNotificationCount", + "responses": { + "200": { + "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCachedNotificationCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetCachedNotificationCountResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22148,17 +22258,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteNotificationCountResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22198,17 +22306,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetModeratorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetModeratorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetModeratorResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22246,17 +22352,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateModeratorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22304,17 +22408,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteModeratorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22362,17 +22464,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetModeratorsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetModeratorsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetModeratorsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22411,17 +22511,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateModeratorResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateModeratorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateModeratorResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22463,17 +22561,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SendInviteResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22521,17 +22617,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetHashTagsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetHashTagsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetHashTagsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22570,17 +22664,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateHashTagResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "AddHashTagResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateHashTagResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22622,17 +22714,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BulkCreateHashTagsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "AddHashTagsBulkResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BulkCreateHashTagsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22674,17 +22764,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateHashTagResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "PatchHashTagResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UpdateHashTagResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22732,17 +22820,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteHashTagResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22798,17 +22884,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetFeedPostsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetFeedPostsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetFeedPostsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22867,17 +22951,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFeedPostsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateFeedPostResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateFeedPostsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -22951,17 +23033,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateFeedPostResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23011,17 +23091,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetEmailTemplateDefinitionsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23044,26 +23122,24 @@ ] } }, - "/api/v1/email-templates/{id}/render-errors": { - "get": { - "operationId": "GetEmailTemplateRenderErrors", - "responses": { - "200": { - "description": "Ok", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" - } - } - } - }, - "default": { - "description": "Error", + "/api/v1/email-templates/{id}/render-errors": { + "get": { + "operationId": "GetEmailTemplateRenderErrors", + "responses": { + "200": { + "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetEmailTemplateRenderErrorsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23112,17 +23188,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteEmailTemplateRenderErrorResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23170,17 +23244,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetEmailTemplateResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetEmailTemplateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEmailTemplateResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23218,17 +23290,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateEmailTemplateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23276,17 +23346,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteEmailTemplateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23326,17 +23394,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetEmailTemplatesResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetEmailTemplatesResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetEmailTemplatesResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23375,17 +23441,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateEmailTemplateResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "CreateEmailTemplateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/CreateEmailTemplateResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23427,17 +23491,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RenderEmailTemplateResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "RenderEmailTemplateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/RenderEmailTemplateResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23892,17 +23954,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -23940,17 +24000,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIEmptyResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UpdateCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIEmptyResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24022,17 +24080,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeleteCommentResult" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "DeleteCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/DeleteCommentResult" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24088,17 +24144,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIGetCommentsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetCommentsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APIGetCommentsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24264,17 +24318,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APISaveCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "SaveCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/APISaveCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24436,17 +24488,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FlagCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "FlagCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/FlagCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24502,17 +24552,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FlagCommentResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UnFlagCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/FlagCommentResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24568,17 +24616,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BlockSuccess" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "BlockUserFromCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/BlockSuccess" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24644,17 +24690,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UnblockSuccess" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "UnBlockUserFromCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UnblockSuccess" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } @@ -24720,17 +24764,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetAuditLogsResponse" - } - } - } - }, - "default": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIError" + "title": "GetAuditLogsResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/GetAuditLogsResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] } } } From 66429b481cf261300daf0d6164b3ee26a66a9d0f Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 22 Jun 2026 14:38:55 -0700 Subject: [PATCH 2/5] Regenerate against corrected spec (tsoa 6.6.8 splits X | APIError response unions) --- client/.openapi-generator/FILES | 531 --- client/README.md | 177 - client/api/openapi.yaml | 2341 ++++++----- client/docs/AddHashTagResponse.md | 21 - client/docs/AddHashTagsBulkResponse.md | 21 - .../docs/AggregateQuestionResultsResponse1.md | 21 - client/docs/BlockFromCommentPublicResponse.md | 21 - client/docs/BlockUserFromCommentResponse.md | 21 - .../BulkAggregateQuestionResultsResponse1.md | 21 - client/docs/ChangeTicketStateResponse1.md | 21 - .../docs/CheckedCommentsForBlockedResponse.md | 21 - ...bineCommentsWithQuestionResultsResponse.md | 21 - client/docs/CreateCommentPublicResponse.md | 24 - client/docs/CreateEmailTemplateResponse1.md | 21 - client/docs/CreateFeedPostPublicResponse.md | 21 - client/docs/CreateFeedPostResponse1.md | 21 - client/docs/CreateModeratorResponse1.md | 21 - client/docs/CreateQuestionConfigResponse1.md | 21 - client/docs/CreateQuestionResultResponse1.md | 21 - client/docs/CreateTenantPackageResponse1.md | 21 - client/docs/CreateTenantResponse1.md | 21 - client/docs/CreateTenantUserResponse1.md | 21 - client/docs/CreateTicketResponse1.md | 21 - client/docs/CreateUserBadgeResponse.md | 22 - client/docs/CreateV1PageReactResponse.md | 20 - client/docs/CreateV2PageReactResponse.md | 20 - client/docs/CreateVoteResponse.md | 24 - client/docs/DefaultApi.md | 630 +-- client/docs/DeleteCommentPublicResponse.md | 22 - client/docs/DeleteCommentResponse.md | 21 - client/docs/DeleteCommentVoteResponse.md | 21 - .../DeleteEmailTemplateRenderErrorResponse.md | 20 - client/docs/DeleteEmailTemplateResponse.md | 20 - client/docs/DeleteFeedPostPublicResponse.md | 7 - .../docs/DeleteFeedPostPublicResponseAnyOf.md | 13 - client/docs/DeleteHashTagResponse.md | 20 - client/docs/DeleteModerationVoteResponse.md | 21 - client/docs/DeleteModeratorResponse.md | 20 - .../docs/DeleteNotificationCountResponse.md | 20 - .../docs/DeletePendingWebhookEventResponse.md | 20 - client/docs/DeleteQuestionConfigResponse.md | 20 - client/docs/DeleteQuestionResultResponse.md | 20 - client/docs/DeleteTenantPackageResponse.md | 20 - client/docs/DeleteTenantResponse.md | 20 - client/docs/DeleteTenantUserResponse.md | 20 - client/docs/DeleteUserBadgeResponse.md | 20 - client/docs/DeleteV1PageReactResponse.md | 20 - client/docs/DeleteV2PageReactResponse.md | 20 - client/docs/DeleteVoteResponse.md | 21 - client/docs/FlagCommentPublicResponse.md | 20 - client/docs/FlagCommentResponse1.md | 22 - client/docs/GetApiCommentsResponse.md | 23 - client/docs/GetApiExportStatusResponse.md | 23 - client/docs/GetApiIdsResponse.md | 22 - client/docs/GetAuditLogsResponse1.md | 21 - client/docs/GetBanUsersFromCommentResponse.md | 21 - .../GetCachedNotificationCountResponse1.md | 21 - client/docs/GetCommentBanStatusResponse1.md | 22 - client/docs/GetCommentChildrenResponse.md | 21 - client/docs/GetCommentResponse.md | 21 - client/docs/GetCommentTextResponse1.md | 22 - .../docs/GetCommentVoteUserNamesResponse.md | 22 - client/docs/GetCommentsForUserResponse1.md | 21 - client/docs/GetCommentsPublicResponse.md | 43 - client/docs/GetCommentsResponse.md | 21 - client/docs/GetCountResponse.md | 21 - client/docs/GetCountsResponse.md | 21 - .../GetEmailTemplateDefinitionsResponse1.md | 21 - .../GetEmailTemplateRenderErrorsResponse1.md | 21 - client/docs/GetEmailTemplateResponse1.md | 21 - client/docs/GetEmailTemplatesResponse1.md | 21 - client/docs/GetEventLogResponse1.md | 21 - client/docs/GetFeedPostsPublicResponse.md | 26 - client/docs/GetFeedPostsResponse1.md | 21 - client/docs/GetFeedPostsStatsResponse.md | 21 - client/docs/GetGifLargeResponse.md | 21 - client/docs/GetGifsSearchResponse.md | 6 - client/docs/GetGlobalEventLogResponse.md | 21 - client/docs/GetHashTagsResponse1.md | 21 - client/docs/GetLogsResponse.md | 21 - client/docs/GetManualBadgesForUserResponse.md | 21 - client/docs/GetManualBadgesResponse.md | 21 - client/docs/GetModerationCommentResponse.md | 21 - .../docs/GetModerationCommentTextResponse.md | 21 - client/docs/GetModeratorResponse1.md | 21 - client/docs/GetModeratorsResponse1.md | 21 - client/docs/GetNotificationCountResponse1.md | 21 - client/docs/GetNotificationsResponse1.md | 21 - client/docs/GetOfflineUsersResponse.md | 23 - client/docs/GetOnlineUsersResponse.md | 25 - client/docs/GetPagesPublicResponse.md | 22 - .../GetPendingWebhookEventCountResponse1.md | 21 - .../docs/GetPendingWebhookEventsResponse1.md | 21 - client/docs/GetPreBanSummaryResponse.md | 22 - client/docs/GetQuestionConfigResponse1.md | 21 - client/docs/GetQuestionConfigsResponse1.md | 21 - client/docs/GetQuestionResultResponse1.md | 21 - client/docs/GetQuestionResultsResponse1.md | 21 - .../docs/GetSearchCommentsSummaryResponse.md | 21 - client/docs/GetSearchPagesResponse.md | 21 - client/docs/GetSearchSitesResponse.md | 21 - client/docs/GetSearchSuggestResponse.md | 22 - client/docs/GetSearchUsersResponse.md | 21 - client/docs/GetTenantDailyUsagesResponse1.md | 21 - client/docs/GetTenantPackageResponse1.md | 21 - client/docs/GetTenantPackagesResponse1.md | 21 - client/docs/GetTenantResponse1.md | 21 - client/docs/GetTenantUserResponse1.md | 21 - client/docs/GetTenantUsersResponse1.md | 21 - client/docs/GetTenantsResponse1.md | 21 - client/docs/GetTicketResponse1.md | 22 - client/docs/GetTicketsResponse1.md | 21 - client/docs/GetTranslationsResponse1.md | 21 - client/docs/GetTrustFactorResponse.md | 22 - .../docs/GetUserBadgeProgressByIdResponse.md | 21 - .../GetUserBadgeProgressByUserIdResponse.md | 21 - .../docs/GetUserBadgeProgressListResponse.md | 21 - client/docs/GetUserBadgeResponse.md | 21 - client/docs/GetUserBadgesResponse.md | 21 - client/docs/GetUserBanPreferenceResponse.md | 21 - .../docs/GetUserInternalProfileResponse1.md | 21 - .../docs/GetUserNotificationCountResponse1.md | 21 - client/docs/GetUserNotificationsResponse.md | 24 - .../docs/GetUserPresenceStatusesResponse1.md | 21 - client/docs/GetUserReactsPublicResponse.md | 21 - client/docs/GetUserResponse1.md | 21 - client/docs/GetUsersInfoResponse.md | 21 - client/docs/GetV1PageLikesResponse.md | 24 - client/docs/GetV2PageReactUsersResponse1.md | 21 - client/docs/GetV2PageReactsResponse.md | 22 - client/docs/GetVotesForUserResponse1.md | 23 - client/docs/GetVotesResponse1.md | 23 - client/docs/LockCommentResponse.md | 20 - client/docs/ModerationApi.md | 295 +- client/docs/PatchHashTagResponse.md | 21 - client/docs/PinCommentResponse.md | 21 - client/docs/PostAdjustCommentVotesResponse.md | 21 - client/docs/PostApiExportResponse.md | 21 - client/docs/PostBanUserFromCommentResponse.md | 21 - client/docs/PostBanUserUndoResponse.md | 20 - client/docs/PostBulkPreBanSummaryResponse.md | 25 - client/docs/PostCommentsByIdsResponse.md | 21 - client/docs/PostFlagCommentResponse.md | 20 - client/docs/PostRemoveCommentResponse.md | 11 +- .../docs/PostRestoreDeletedCommentResponse.md | 20 - .../PostSetCommentApprovalStatusResponse.md | 21 - .../PostSetCommentReviewStatusResponse.md | 20 - .../docs/PostSetCommentSpamStatusResponse.md | 20 - client/docs/PostSetCommentTextResponse.md | 21 - client/docs/PostUnFlagCommentResponse.md | 20 - client/docs/PostVoteResponse.md | 24 - client/docs/PublicApi.md | 313 +- client/docs/PutAwardBadgeResponse.md | 22 - client/docs/PutCloseThreadResponse.md | 20 - client/docs/PutRemoveBadgeResponse.md | 21 - client/docs/PutReopenThreadResponse.md | 20 - client/docs/ReactFeedPostPublicResponse.md | 22 - client/docs/RenderEmailTemplateResponse1.md | 21 - client/docs/ReplaceTenantPackageResponse.md | 20 - client/docs/ReplaceTenantUserResponse.md | 20 - .../ResetUserNotificationCountResponse.md | 20 - .../docs/ResetUserNotificationsResponse1.md | 20 - client/docs/SaveCommentResponse.md | 23 - client/docs/SearchUsersResponse1.md | 22 - client/docs/SendInviteResponse.md | 20 - client/docs/SendLoginLinkResponse.md | 20 - client/docs/SetCommentTextResponse1.md | 21 - client/docs/SetTrustFactorResponse.md | 21 - client/docs/UnBlockCommentPublicResponse.md | 21 - client/docs/UnBlockUserFromCommentResponse.md | 21 - client/docs/UnFlagCommentResponse.md | 22 - client/docs/UnLockCommentResponse.md | 20 - client/docs/UnPinCommentResponse.md | 21 - client/docs/UpdateCommentResponse.md | 20 - client/docs/UpdateEmailTemplateResponse.md | 20 - client/docs/UpdateFeedPostPublicResponse.md | 21 - client/docs/UpdateFeedPostResponse.md | 20 - client/docs/UpdateModeratorResponse.md | 20 - client/docs/UpdateNotificationResponse.md | 20 - client/docs/UpdateQuestionConfigResponse.md | 20 - client/docs/UpdateQuestionResultResponse.md | 20 - client/docs/UpdateTenantPackageResponse.md | 20 - client/docs/UpdateTenantResponse.md | 20 - client/docs/UpdateTenantUserResponse.md | 20 - client/docs/UpdateUserBadgeResponse.md | 20 - ...cationCommentSubscriptionStatusResponse.md | 7 - ...ificationPageSubscriptionStatusResponse.md | 7 - .../UpdateUserNotificationStatusResponse.md | 7 - client/docs/VoteCommentResponse.md | 24 - .../java/com/fastcomments/api/DefaultApi.java | 2404 ++++++----- .../com/fastcomments/api/ModerationApi.java | 1132 ++--- .../java/com/fastcomments/api/PublicApi.java | 1203 +++--- .../java/com/fastcomments/invoker/JSON.java | 177 - .../model/AddHashTagResponse.java | 270 -- .../model/AddHashTagsBulkResponse.java | 272 -- .../AggregateQuestionResultsResponse1.java | 270 -- .../model/BlockFromCommentPublicResponse.java | 271 -- .../model/BlockUserFromCommentResponse.java | 271 -- ...BulkAggregateQuestionResultsResponse1.java | 272 -- .../model/ChangeTicketStateResponse1.java | 270 -- .../CheckedCommentsForBlockedResponse.java | 271 -- ...neCommentsWithQuestionResultsResponse.java | 270 -- .../model/CreateCommentPublicResponse.java | 273 -- .../model/CreateEmailTemplateResponse1.java | 270 -- .../model/CreateFeedPostPublicResponse.java | 270 -- .../model/CreateFeedPostResponse1.java | 270 -- .../model/CreateModeratorResponse1.java | 270 -- .../model/CreateQuestionConfigResponse1.java | 270 -- .../model/CreateQuestionResultResponse1.java | 270 -- .../model/CreateTenantPackageResponse1.java | 270 -- .../model/CreateTenantResponse1.java | 270 -- .../model/CreateTenantUserResponse1.java | 270 -- .../model/CreateTicketResponse1.java | 270 -- .../model/CreateUserBadgeResponse.java | 272 -- .../model/CreateV1PageReactResponse.java | 269 -- .../model/CreateV2PageReactResponse.java | 269 -- .../model/CreateVoteResponse.java | 270 -- .../model/DeleteCommentPublicResponse.java | 270 -- .../model/DeleteCommentResponse.java | 270 -- .../model/DeleteCommentVoteResponse.java | 269 -- ...eleteEmailTemplateRenderErrorResponse.java | 269 -- .../model/DeleteEmailTemplateResponse.java | 269 -- .../model/DeleteFeedPostPublicResponse.java | 441 +- .../DeleteFeedPostPublicResponseAnyOf.java | 290 -- .../model/DeleteHashTagResponse.java | 269 -- .../model/DeleteModerationVoteResponse.java | 269 -- .../model/DeleteModeratorResponse.java | 269 -- .../DeleteNotificationCountResponse.java | 269 -- .../DeletePendingWebhookEventResponse.java | 269 -- .../model/DeleteQuestionConfigResponse.java | 269 -- .../model/DeleteQuestionResultResponse.java | 269 -- .../model/DeleteTenantPackageResponse.java | 269 -- .../model/DeleteTenantResponse.java | 269 -- .../model/DeleteTenantUserResponse.java | 269 -- .../model/DeleteUserBadgeResponse.java | 269 -- .../model/DeleteV1PageReactResponse.java | 269 -- .../model/DeleteV2PageReactResponse.java | 269 -- .../model/DeleteVoteResponse.java | 269 -- .../model/FlagCommentPublicResponse.java | 269 -- .../model/FlagCommentResponse1.java | 269 -- .../model/GetApiCommentsResponse.java | 273 -- .../model/GetApiExportStatusResponse.java | 269 -- .../fastcomments/model/GetApiIdsResponse.java | 271 -- .../model/GetAuditLogsResponse1.java | 272 -- .../model/GetBanUsersFromCommentResponse.java | 272 -- .../GetCachedNotificationCountResponse1.java | 270 -- .../model/GetCommentBanStatusResponse1.java | 269 -- .../model/GetCommentChildrenResponse.java | 272 -- .../model/GetCommentResponse.java | 270 -- .../model/GetCommentTextResponse1.java | 269 -- .../GetCommentVoteUserNamesResponse.java | 271 -- .../model/GetCommentsForUserResponse1.java | 271 -- .../model/GetCommentsPublicResponse.java | 275 -- .../model/GetCommentsResponse.java | 272 -- .../fastcomments/model/GetCountResponse.java | 269 -- .../fastcomments/model/GetCountsResponse.java | 269 -- .../GetEmailTemplateDefinitionsResponse1.java | 272 -- ...GetEmailTemplateRenderErrorsResponse1.java | 272 -- .../model/GetEmailTemplateResponse1.java | 270 -- .../model/GetEmailTemplatesResponse1.java | 272 -- .../model/GetEventLogResponse1.java | 272 -- .../model/GetFeedPostsPublicResponse.java | 275 -- .../model/GetFeedPostsResponse1.java | 272 -- .../model/GetFeedPostsStatsResponse.java | 272 -- .../model/GetGifLargeResponse.java | 269 -- .../model/GetGifsSearchResponse.java | 59 +- .../model/GetGlobalEventLogResponse.java | 272 -- .../model/GetHashTagsResponse1.java | 272 -- .../fastcomments/model/GetLogsResponse.java | 272 -- .../model/GetManualBadgesForUserResponse.java | 272 -- .../model/GetManualBadgesResponse.java | 272 -- .../model/GetModerationCommentResponse.java | 270 -- .../GetModerationCommentTextResponse.java | 269 -- .../model/GetModeratorResponse1.java | 270 -- .../model/GetModeratorsResponse1.java | 272 -- .../model/GetNotificationCountResponse1.java | 269 -- .../model/GetNotificationsResponse1.java | 272 -- .../model/GetOfflineUsersResponse.java | 272 -- .../model/GetOnlineUsersResponse.java | 272 -- .../model/GetPagesPublicResponse.java | 272 -- .../GetPendingWebhookEventCountResponse1.java | 269 -- .../GetPendingWebhookEventsResponse1.java | 272 -- .../model/GetPreBanSummaryResponse.java | 271 -- .../model/GetQuestionConfigResponse1.java | 270 -- .../model/GetQuestionConfigsResponse1.java | 272 -- .../model/GetQuestionResultResponse1.java | 270 -- .../model/GetQuestionResultsResponse1.java | 272 -- .../GetSearchCommentsSummaryResponse.java | 269 -- .../model/GetSearchPagesResponse.java | 272 -- .../model/GetSearchSitesResponse.java | 272 -- .../model/GetSearchSuggestResponse.java | 273 -- .../model/GetSearchUsersResponse.java | 272 -- .../model/GetTenantDailyUsagesResponse1.java | 272 -- .../model/GetTenantPackageResponse1.java | 270 -- .../model/GetTenantPackagesResponse1.java | 272 -- .../model/GetTenantResponse1.java | 270 -- .../model/GetTenantUserResponse1.java | 270 -- .../model/GetTenantUsersResponse1.java | 272 -- .../model/GetTenantsResponse1.java | 272 -- .../model/GetTicketResponse1.java | 272 -- .../model/GetTicketsResponse1.java | 272 -- .../model/GetTranslationsResponse1.java | 271 -- .../model/GetTrustFactorResponse.java | 269 -- .../GetUserBadgeProgressByIdResponse.java | 270 -- .../GetUserBadgeProgressByUserIdResponse.java | 270 -- .../GetUserBadgeProgressListResponse.java | 272 -- .../model/GetUserBadgeResponse.java | 270 -- .../model/GetUserBadgesResponse.java | 272 -- .../model/GetUserBanPreferenceResponse.java | 270 -- .../GetUserInternalProfileResponse1.java | 270 -- .../GetUserNotificationCountResponse1.java | 269 -- .../model/GetUserNotificationsResponse.java | 274 -- .../GetUserPresenceStatusesResponse1.java | 271 -- .../model/GetUserReactsPublicResponse.java | 271 -- .../fastcomments/model/GetUserResponse1.java | 270 -- .../model/GetUsersInfoResponse.java | 272 -- .../model/GetV1PageLikesResponse.java | 269 -- .../model/GetV2PageReactUsersResponse1.java | 271 -- .../model/GetV2PageReactsResponse.java | 273 -- .../model/GetVotesForUserResponse1.java | 272 -- .../fastcomments/model/GetVotesResponse1.java | 272 -- .../model/LockCommentResponse.java | 269 -- .../model/PatchHashTagResponse.java | 270 -- .../model/PinCommentResponse.java | 272 -- .../model/PostAdjustCommentVotesResponse.java | 269 -- .../model/PostApiExportResponse.java | 269 -- .../model/PostBanUserFromCommentResponse.java | 270 -- .../model/PostBanUserUndoResponse.java | 269 -- .../model/PostBulkPreBanSummaryResponse.java | 271 -- .../model/PostCommentsByIdsResponse.java | 272 -- .../model/PostFlagCommentResponse.java | 269 -- .../model/PostRemoveCommentResponse.java | 60 +- .../PostRestoreDeletedCommentResponse.java | 269 -- .../PostSetCommentApprovalStatusResponse.java | 269 -- .../PostSetCommentReviewStatusResponse.java | 269 -- .../PostSetCommentSpamStatusResponse.java | 269 -- .../model/PostSetCommentTextResponse.java | 269 -- .../model/PostUnFlagCommentResponse.java | 269 -- .../fastcomments/model/PostVoteResponse.java | 270 -- .../model/PutAwardBadgeResponse.java | 272 -- .../model/PutCloseThreadResponse.java | 269 -- .../model/PutRemoveBadgeResponse.java | 272 -- .../model/PutReopenThreadResponse.java | 269 -- .../model/ReactFeedPostPublicResponse.java | 269 -- .../model/RenderEmailTemplateResponse1.java | 269 -- .../model/ReplaceTenantPackageResponse.java | 269 -- .../model/ReplaceTenantUserResponse.java | 269 -- .../ResetUserNotificationCountResponse.java | 269 -- .../ResetUserNotificationsResponse1.java | 269 -- .../model/SaveCommentResponse.java | 273 -- .../model/SearchUsersResponse1.java | 273 -- .../model/SendInviteResponse.java | 269 -- .../model/SendLoginLinkResponse.java | 269 -- .../model/SetCommentTextResponse1.java | 270 -- .../model/SetTrustFactorResponse.java | 269 -- .../model/UnBlockCommentPublicResponse.java | 271 -- .../model/UnBlockUserFromCommentResponse.java | 271 -- .../model/UnFlagCommentResponse.java | 269 -- .../model/UnLockCommentResponse.java | 269 -- .../model/UnPinCommentResponse.java | 272 -- .../model/UpdateCommentResponse.java | 269 -- .../model/UpdateEmailTemplateResponse.java | 269 -- .../model/UpdateFeedPostPublicResponse.java | 270 -- .../model/UpdateFeedPostResponse.java | 269 -- .../model/UpdateModeratorResponse.java | 269 -- .../model/UpdateNotificationResponse.java | 269 -- .../model/UpdateQuestionConfigResponse.java | 269 -- .../model/UpdateQuestionResultResponse.java | 269 -- .../model/UpdateTenantPackageResponse.java | 269 -- .../model/UpdateTenantResponse.java | 269 -- .../model/UpdateTenantUserResponse.java | 269 -- .../model/UpdateUserBadgeResponse.java | 269 -- ...tionCommentSubscriptionStatusResponse.java | 59 +- ...icationPageSubscriptionStatusResponse.java | 59 +- .../UpdateUserNotificationStatusResponse.java | 59 +- .../model/VoteCommentResponse.java | 270 -- .../com/fastcomments/api/DefaultApiTest.java | 334 +- .../fastcomments/api/ModerationApiTest.java | 161 +- .../com/fastcomments/api/PublicApiTest.java | 166 +- .../model/AddHashTagResponseTest.java | 117 - .../model/AddHashTagsBulkResponseTest.java | 119 - ...AggregateQuestionResultsResponse1Test.java | 117 - .../BlockFromCommentPublicResponseTest.java | 118 - .../BlockUserFromCommentResponseTest.java | 118 - ...AggregateQuestionResultsResponse1Test.java | 119 - .../model/ChangeTicketStateResponse1Test.java | 117 - ...CheckedCommentsForBlockedResponseTest.java | 118 - ...mmentsWithQuestionResultsResponseTest.java | 117 - .../CreateCommentPublicResponseTest.java | 144 - .../CreateEmailTemplateResponse1Test.java | 117 - .../CreateFeedPostPublicResponseTest.java | 117 - .../model/CreateFeedPostResponse1Test.java | 117 - .../model/CreateModeratorResponse1Test.java | 117 - .../CreateQuestionConfigResponse1Test.java | 117 - .../CreateQuestionResultResponse1Test.java | 117 - .../CreateTenantPackageResponse1Test.java | 117 - .../model/CreateTenantResponse1Test.java | 117 - .../model/CreateTenantUserResponse1Test.java | 117 - .../model/CreateTicketResponse1Test.java | 117 - .../model/CreateUserBadgeResponseTest.java | 127 - .../model/CreateV1PageReactResponseTest.java | 108 - .../model/CreateV2PageReactResponseTest.java | 108 - .../model/CreateVoteResponseTest.java | 141 - .../DeleteCommentPublicResponseTest.java | 125 - .../model/DeleteCommentResponseTest.java | 117 - .../model/DeleteCommentVoteResponseTest.java | 116 - ...eEmailTemplateRenderErrorResponseTest.java | 108 - .../DeleteEmailTemplateResponseTest.java | 108 - ...DeleteFeedPostPublicResponseAnyOfTest.java | 49 - .../DeleteFeedPostPublicResponseTest.java | 59 - .../model/DeleteHashTagResponseTest.java | 108 - .../DeleteModerationVoteResponseTest.java | 116 - .../model/DeleteModeratorResponseTest.java | 108 - .../DeleteNotificationCountResponseTest.java | 108 - ...DeletePendingWebhookEventResponseTest.java | 108 - .../DeleteQuestionConfigResponseTest.java | 108 - .../DeleteQuestionResultResponseTest.java | 108 - .../DeleteTenantPackageResponseTest.java | 108 - .../model/DeleteTenantResponseTest.java | 108 - .../model/DeleteTenantUserResponseTest.java | 108 - .../model/DeleteUserBadgeResponseTest.java | 108 - .../model/DeleteV1PageReactResponseTest.java | 108 - .../model/DeleteV2PageReactResponseTest.java | 108 - .../model/DeleteVoteResponseTest.java | 116 - .../model/FlagCommentPublicResponseTest.java | 108 - .../model/FlagCommentResponse1Test.java | 124 - .../model/GetApiCommentsResponseTest.java | 136 - .../model/GetApiExportStatusResponseTest.java | 132 - .../model/GetApiIdsResponseTest.java | 126 - .../model/GetAuditLogsResponse1Test.java | 119 - .../GetBanUsersFromCommentResponseTest.java | 119 - ...tCachedNotificationCountResponse1Test.java | 117 - .../GetCommentBanStatusResponse1Test.java | 124 - .../model/GetCommentChildrenResponseTest.java | 119 - .../model/GetCommentResponseTest.java | 117 - .../model/GetCommentTextResponse1Test.java | 124 - .../GetCommentVoteUserNamesResponseTest.java | 126 - .../GetCommentsForUserResponse1Test.java | 118 - .../model/GetCommentsPublicResponseTest.java | 298 -- .../model/GetCommentsResponseTest.java | 119 - .../model/GetCountResponseTest.java | 116 - .../model/GetCountsResponseTest.java | 116 - ...EmailTemplateDefinitionsResponse1Test.java | 119 - ...mailTemplateRenderErrorsResponse1Test.java | 119 - .../model/GetEmailTemplateResponse1Test.java | 117 - .../model/GetEmailTemplatesResponse1Test.java | 119 - .../model/GetEventLogResponse1Test.java | 119 - .../model/GetFeedPostsPublicResponseTest.java | 162 - .../model/GetFeedPostsResponse1Test.java | 119 - .../model/GetFeedPostsStatsResponseTest.java | 119 - .../model/GetGifLargeResponseTest.java | 116 - .../model/GetGifsSearchResponseTest.java | 50 - .../model/GetGlobalEventLogResponseTest.java | 119 - .../model/GetHashTagsResponse1Test.java | 119 - .../model/GetLogsResponseTest.java | 119 - .../GetManualBadgesForUserResponseTest.java | 119 - .../model/GetManualBadgesResponseTest.java | 119 - .../GetModerationCommentResponseTest.java | 117 - .../GetModerationCommentTextResponseTest.java | 116 - .../model/GetModeratorResponse1Test.java | 117 - .../model/GetModeratorsResponse1Test.java | 119 - .../GetNotificationCountResponse1Test.java | 116 - .../model/GetNotificationsResponse1Test.java | 119 - .../model/GetOfflineUsersResponseTest.java | 135 - .../model/GetOnlineUsersResponseTest.java | 151 - .../model/GetPagesPublicResponseTest.java | 127 - ...PendingWebhookEventCountResponse1Test.java | 116 - .../GetPendingWebhookEventsResponse1Test.java | 119 - .../model/GetPreBanSummaryResponseTest.java | 126 - .../model/GetQuestionConfigResponse1Test.java | 117 - .../GetQuestionConfigsResponse1Test.java | 119 - .../model/GetQuestionResultResponse1Test.java | 117 - .../GetQuestionResultsResponse1Test.java | 119 - .../GetSearchCommentsSummaryResponseTest.java | 116 - .../model/GetSearchPagesResponseTest.java | 119 - .../model/GetSearchSitesResponseTest.java | 119 - .../model/GetSearchSuggestResponseTest.java | 128 - .../model/GetSearchUsersResponseTest.java | 119 - .../GetTenantDailyUsagesResponse1Test.java | 119 - .../model/GetTenantPackageResponse1Test.java | 117 - .../model/GetTenantPackagesResponse1Test.java | 119 - .../model/GetTenantResponse1Test.java | 117 - .../model/GetTenantUserResponse1Test.java | 117 - .../model/GetTenantUsersResponse1Test.java | 119 - .../model/GetTenantsResponse1Test.java | 119 - .../model/GetTicketResponse1Test.java | 127 - .../model/GetTicketsResponse1Test.java | 119 - .../model/GetTranslationsResponse1Test.java | 118 - .../model/GetTrustFactorResponseTest.java | 124 - .../GetUserBadgeProgressByIdResponseTest.java | 117 - ...UserBadgeProgressByUserIdResponseTest.java | 117 - .../GetUserBadgeProgressListResponseTest.java | 119 - .../model/GetUserBadgeResponseTest.java | 117 - .../model/GetUserBadgesResponseTest.java | 119 - .../GetUserBanPreferenceResponseTest.java | 117 - .../GetUserInternalProfileResponse1Test.java | 117 - ...GetUserNotificationCountResponse1Test.java | 116 - .../GetUserNotificationsResponseTest.java | 145 - .../GetUserPresenceStatusesResponse1Test.java | 118 - .../GetUserReactsPublicResponseTest.java | 118 - .../model/GetUserResponse1Test.java | 117 - .../model/GetUsersInfoResponseTest.java | 119 - .../model/GetV1PageLikesResponseTest.java | 140 - .../GetV2PageReactUsersResponse1Test.java | 118 - .../model/GetV2PageReactsResponseTest.java | 128 - .../model/GetVotesForUserResponse1Test.java | 135 - .../model/GetVotesResponse1Test.java | 135 - .../model/LockCommentResponseTest.java | 108 - .../model/PatchHashTagResponseTest.java | 117 - .../model/PinCommentResponseTest.java | 119 - .../PostAdjustCommentVotesResponseTest.java | 116 - .../model/PostApiExportResponseTest.java | 116 - .../PostBanUserFromCommentResponseTest.java | 117 - .../model/PostBanUserUndoResponseTest.java | 108 - .../PostBulkPreBanSummaryResponseTest.java | 150 - .../model/PostCommentsByIdsResponseTest.java | 119 - .../model/PostFlagCommentResponseTest.java | 108 - .../model/PostRemoveCommentResponseTest.java | 59 - ...PostRestoreDeletedCommentResponseTest.java | 108 - ...tSetCommentApprovalStatusResponseTest.java | 116 - ...ostSetCommentReviewStatusResponseTest.java | 108 - .../PostSetCommentSpamStatusResponseTest.java | 108 - .../model/PostSetCommentTextResponseTest.java | 116 - .../model/PostUnFlagCommentResponseTest.java | 108 - .../model/PostVoteResponseTest.java | 141 - .../model/PutAwardBadgeResponseTest.java | 127 - .../model/PutCloseThreadResponseTest.java | 108 - .../model/PutRemoveBadgeResponseTest.java | 119 - .../model/PutReopenThreadResponseTest.java | 108 - .../ReactFeedPostPublicResponseTest.java | 124 - .../RenderEmailTemplateResponse1Test.java | 116 - .../ReplaceTenantPackageResponseTest.java | 108 - .../model/ReplaceTenantUserResponseTest.java | 108 - ...esetUserNotificationCountResponseTest.java | 108 - .../ResetUserNotificationsResponse1Test.java | 108 - .../model/SaveCommentResponseTest.java | 136 - .../model/SearchUsersResponse1Test.java | 128 - .../model/SendInviteResponseTest.java | 108 - .../model/SendLoginLinkResponseTest.java | 108 - .../model/SetCommentTextResponse1Test.java | 117 - .../model/SetTrustFactorResponseTest.java | 116 - .../UnBlockCommentPublicResponseTest.java | 118 - .../UnBlockUserFromCommentResponseTest.java | 118 - .../model/UnFlagCommentResponseTest.java | 124 - .../model/UnLockCommentResponseTest.java | 108 - .../model/UnPinCommentResponseTest.java | 119 - .../model/UpdateCommentResponseTest.java | 108 - .../UpdateEmailTemplateResponseTest.java | 108 - .../UpdateFeedPostPublicResponseTest.java | 117 - .../model/UpdateFeedPostResponseTest.java | 108 - .../model/UpdateModeratorResponseTest.java | 108 - .../model/UpdateNotificationResponseTest.java | 108 - .../UpdateQuestionConfigResponseTest.java | 108 - .../UpdateQuestionResultResponseTest.java | 108 - .../UpdateTenantPackageResponseTest.java | 108 - .../model/UpdateTenantResponseTest.java | 108 - .../model/UpdateTenantUserResponseTest.java | 108 - .../model/UpdateUserBadgeResponseTest.java | 108 - ...CommentSubscriptionStatusResponseTest.java | 58 - ...ionPageSubscriptionStatusResponseTest.java | 58 - ...ateUserNotificationStatusResponseTest.java | 58 - .../model/VoteCommentResponseTest.java | 141 - openapi.json | 3634 +++++++++-------- 563 files changed, 7369 insertions(+), 79889 deletions(-) delete mode 100644 client/docs/AddHashTagResponse.md delete mode 100644 client/docs/AddHashTagsBulkResponse.md delete mode 100644 client/docs/AggregateQuestionResultsResponse1.md delete mode 100644 client/docs/BlockFromCommentPublicResponse.md delete mode 100644 client/docs/BlockUserFromCommentResponse.md delete mode 100644 client/docs/BulkAggregateQuestionResultsResponse1.md delete mode 100644 client/docs/ChangeTicketStateResponse1.md delete mode 100644 client/docs/CheckedCommentsForBlockedResponse.md delete mode 100644 client/docs/CombineCommentsWithQuestionResultsResponse.md delete mode 100644 client/docs/CreateCommentPublicResponse.md delete mode 100644 client/docs/CreateEmailTemplateResponse1.md delete mode 100644 client/docs/CreateFeedPostPublicResponse.md delete mode 100644 client/docs/CreateFeedPostResponse1.md delete mode 100644 client/docs/CreateModeratorResponse1.md delete mode 100644 client/docs/CreateQuestionConfigResponse1.md delete mode 100644 client/docs/CreateQuestionResultResponse1.md delete mode 100644 client/docs/CreateTenantPackageResponse1.md delete mode 100644 client/docs/CreateTenantResponse1.md delete mode 100644 client/docs/CreateTenantUserResponse1.md delete mode 100644 client/docs/CreateTicketResponse1.md delete mode 100644 client/docs/CreateUserBadgeResponse.md delete mode 100644 client/docs/CreateV1PageReactResponse.md delete mode 100644 client/docs/CreateV2PageReactResponse.md delete mode 100644 client/docs/CreateVoteResponse.md delete mode 100644 client/docs/DeleteCommentPublicResponse.md delete mode 100644 client/docs/DeleteCommentResponse.md delete mode 100644 client/docs/DeleteCommentVoteResponse.md delete mode 100644 client/docs/DeleteEmailTemplateRenderErrorResponse.md delete mode 100644 client/docs/DeleteEmailTemplateResponse.md delete mode 100644 client/docs/DeleteFeedPostPublicResponseAnyOf.md delete mode 100644 client/docs/DeleteHashTagResponse.md delete mode 100644 client/docs/DeleteModerationVoteResponse.md delete mode 100644 client/docs/DeleteModeratorResponse.md delete mode 100644 client/docs/DeleteNotificationCountResponse.md delete mode 100644 client/docs/DeletePendingWebhookEventResponse.md delete mode 100644 client/docs/DeleteQuestionConfigResponse.md delete mode 100644 client/docs/DeleteQuestionResultResponse.md delete mode 100644 client/docs/DeleteTenantPackageResponse.md delete mode 100644 client/docs/DeleteTenantResponse.md delete mode 100644 client/docs/DeleteTenantUserResponse.md delete mode 100644 client/docs/DeleteUserBadgeResponse.md delete mode 100644 client/docs/DeleteV1PageReactResponse.md delete mode 100644 client/docs/DeleteV2PageReactResponse.md delete mode 100644 client/docs/DeleteVoteResponse.md delete mode 100644 client/docs/FlagCommentPublicResponse.md delete mode 100644 client/docs/FlagCommentResponse1.md delete mode 100644 client/docs/GetApiCommentsResponse.md delete mode 100644 client/docs/GetApiExportStatusResponse.md delete mode 100644 client/docs/GetApiIdsResponse.md delete mode 100644 client/docs/GetAuditLogsResponse1.md delete mode 100644 client/docs/GetBanUsersFromCommentResponse.md delete mode 100644 client/docs/GetCachedNotificationCountResponse1.md delete mode 100644 client/docs/GetCommentBanStatusResponse1.md delete mode 100644 client/docs/GetCommentChildrenResponse.md delete mode 100644 client/docs/GetCommentResponse.md delete mode 100644 client/docs/GetCommentTextResponse1.md delete mode 100644 client/docs/GetCommentVoteUserNamesResponse.md delete mode 100644 client/docs/GetCommentsForUserResponse1.md delete mode 100644 client/docs/GetCommentsPublicResponse.md delete mode 100644 client/docs/GetCommentsResponse.md delete mode 100644 client/docs/GetCountResponse.md delete mode 100644 client/docs/GetCountsResponse.md delete mode 100644 client/docs/GetEmailTemplateDefinitionsResponse1.md delete mode 100644 client/docs/GetEmailTemplateRenderErrorsResponse1.md delete mode 100644 client/docs/GetEmailTemplateResponse1.md delete mode 100644 client/docs/GetEmailTemplatesResponse1.md delete mode 100644 client/docs/GetEventLogResponse1.md delete mode 100644 client/docs/GetFeedPostsPublicResponse.md delete mode 100644 client/docs/GetFeedPostsResponse1.md delete mode 100644 client/docs/GetFeedPostsStatsResponse.md delete mode 100644 client/docs/GetGifLargeResponse.md delete mode 100644 client/docs/GetGlobalEventLogResponse.md delete mode 100644 client/docs/GetHashTagsResponse1.md delete mode 100644 client/docs/GetLogsResponse.md delete mode 100644 client/docs/GetManualBadgesForUserResponse.md delete mode 100644 client/docs/GetManualBadgesResponse.md delete mode 100644 client/docs/GetModerationCommentResponse.md delete mode 100644 client/docs/GetModerationCommentTextResponse.md delete mode 100644 client/docs/GetModeratorResponse1.md delete mode 100644 client/docs/GetModeratorsResponse1.md delete mode 100644 client/docs/GetNotificationCountResponse1.md delete mode 100644 client/docs/GetNotificationsResponse1.md delete mode 100644 client/docs/GetOfflineUsersResponse.md delete mode 100644 client/docs/GetOnlineUsersResponse.md delete mode 100644 client/docs/GetPagesPublicResponse.md delete mode 100644 client/docs/GetPendingWebhookEventCountResponse1.md delete mode 100644 client/docs/GetPendingWebhookEventsResponse1.md delete mode 100644 client/docs/GetPreBanSummaryResponse.md delete mode 100644 client/docs/GetQuestionConfigResponse1.md delete mode 100644 client/docs/GetQuestionConfigsResponse1.md delete mode 100644 client/docs/GetQuestionResultResponse1.md delete mode 100644 client/docs/GetQuestionResultsResponse1.md delete mode 100644 client/docs/GetSearchCommentsSummaryResponse.md delete mode 100644 client/docs/GetSearchPagesResponse.md delete mode 100644 client/docs/GetSearchSitesResponse.md delete mode 100644 client/docs/GetSearchSuggestResponse.md delete mode 100644 client/docs/GetSearchUsersResponse.md delete mode 100644 client/docs/GetTenantDailyUsagesResponse1.md delete mode 100644 client/docs/GetTenantPackageResponse1.md delete mode 100644 client/docs/GetTenantPackagesResponse1.md delete mode 100644 client/docs/GetTenantResponse1.md delete mode 100644 client/docs/GetTenantUserResponse1.md delete mode 100644 client/docs/GetTenantUsersResponse1.md delete mode 100644 client/docs/GetTenantsResponse1.md delete mode 100644 client/docs/GetTicketResponse1.md delete mode 100644 client/docs/GetTicketsResponse1.md delete mode 100644 client/docs/GetTranslationsResponse1.md delete mode 100644 client/docs/GetTrustFactorResponse.md delete mode 100644 client/docs/GetUserBadgeProgressByIdResponse.md delete mode 100644 client/docs/GetUserBadgeProgressByUserIdResponse.md delete mode 100644 client/docs/GetUserBadgeProgressListResponse.md delete mode 100644 client/docs/GetUserBadgeResponse.md delete mode 100644 client/docs/GetUserBadgesResponse.md delete mode 100644 client/docs/GetUserBanPreferenceResponse.md delete mode 100644 client/docs/GetUserInternalProfileResponse1.md delete mode 100644 client/docs/GetUserNotificationCountResponse1.md delete mode 100644 client/docs/GetUserNotificationsResponse.md delete mode 100644 client/docs/GetUserPresenceStatusesResponse1.md delete mode 100644 client/docs/GetUserReactsPublicResponse.md delete mode 100644 client/docs/GetUserResponse1.md delete mode 100644 client/docs/GetUsersInfoResponse.md delete mode 100644 client/docs/GetV1PageLikesResponse.md delete mode 100644 client/docs/GetV2PageReactUsersResponse1.md delete mode 100644 client/docs/GetV2PageReactsResponse.md delete mode 100644 client/docs/GetVotesForUserResponse1.md delete mode 100644 client/docs/GetVotesResponse1.md delete mode 100644 client/docs/LockCommentResponse.md delete mode 100644 client/docs/PatchHashTagResponse.md delete mode 100644 client/docs/PinCommentResponse.md delete mode 100644 client/docs/PostAdjustCommentVotesResponse.md delete mode 100644 client/docs/PostApiExportResponse.md delete mode 100644 client/docs/PostBanUserFromCommentResponse.md delete mode 100644 client/docs/PostBanUserUndoResponse.md delete mode 100644 client/docs/PostBulkPreBanSummaryResponse.md delete mode 100644 client/docs/PostCommentsByIdsResponse.md delete mode 100644 client/docs/PostFlagCommentResponse.md delete mode 100644 client/docs/PostRestoreDeletedCommentResponse.md delete mode 100644 client/docs/PostSetCommentApprovalStatusResponse.md delete mode 100644 client/docs/PostSetCommentReviewStatusResponse.md delete mode 100644 client/docs/PostSetCommentSpamStatusResponse.md delete mode 100644 client/docs/PostSetCommentTextResponse.md delete mode 100644 client/docs/PostUnFlagCommentResponse.md delete mode 100644 client/docs/PostVoteResponse.md delete mode 100644 client/docs/PutAwardBadgeResponse.md delete mode 100644 client/docs/PutCloseThreadResponse.md delete mode 100644 client/docs/PutRemoveBadgeResponse.md delete mode 100644 client/docs/PutReopenThreadResponse.md delete mode 100644 client/docs/ReactFeedPostPublicResponse.md delete mode 100644 client/docs/RenderEmailTemplateResponse1.md delete mode 100644 client/docs/ReplaceTenantPackageResponse.md delete mode 100644 client/docs/ReplaceTenantUserResponse.md delete mode 100644 client/docs/ResetUserNotificationCountResponse.md delete mode 100644 client/docs/ResetUserNotificationsResponse1.md delete mode 100644 client/docs/SaveCommentResponse.md delete mode 100644 client/docs/SearchUsersResponse1.md delete mode 100644 client/docs/SendInviteResponse.md delete mode 100644 client/docs/SendLoginLinkResponse.md delete mode 100644 client/docs/SetCommentTextResponse1.md delete mode 100644 client/docs/SetTrustFactorResponse.md delete mode 100644 client/docs/UnBlockCommentPublicResponse.md delete mode 100644 client/docs/UnBlockUserFromCommentResponse.md delete mode 100644 client/docs/UnFlagCommentResponse.md delete mode 100644 client/docs/UnLockCommentResponse.md delete mode 100644 client/docs/UnPinCommentResponse.md delete mode 100644 client/docs/UpdateCommentResponse.md delete mode 100644 client/docs/UpdateEmailTemplateResponse.md delete mode 100644 client/docs/UpdateFeedPostPublicResponse.md delete mode 100644 client/docs/UpdateFeedPostResponse.md delete mode 100644 client/docs/UpdateModeratorResponse.md delete mode 100644 client/docs/UpdateNotificationResponse.md delete mode 100644 client/docs/UpdateQuestionConfigResponse.md delete mode 100644 client/docs/UpdateQuestionResultResponse.md delete mode 100644 client/docs/UpdateTenantPackageResponse.md delete mode 100644 client/docs/UpdateTenantResponse.md delete mode 100644 client/docs/UpdateTenantUserResponse.md delete mode 100644 client/docs/UpdateUserBadgeResponse.md delete mode 100644 client/docs/VoteCommentResponse.md delete mode 100644 client/src/main/java/com/fastcomments/model/AddHashTagResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/AddHashTagsBulkResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/AggregateQuestionResultsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/BlockFromCommentPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/BlockUserFromCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/ChangeTicketStateResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/CheckedCommentsForBlockedResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateCommentPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateEmailTemplateResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateFeedPostPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateFeedPostResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateModeratorResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateQuestionConfigResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateQuestionResultResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateTenantPackageResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateTenantResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateTenantUserResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateTicketResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateUserBadgeResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateV1PageReactResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateV2PageReactResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/CreateVoteResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteCommentPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteCommentVoteResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteEmailTemplateResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOf.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteHashTagResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteModerationVoteResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteModeratorResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteNotificationCountResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeletePendingWebhookEventResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteQuestionConfigResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteQuestionResultResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteTenantPackageResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteTenantResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteTenantUserResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteUserBadgeResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteV1PageReactResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteV2PageReactResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/DeleteVoteResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/FlagCommentPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/FlagCommentResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetApiCommentsResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetApiExportStatusResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetApiIdsResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetAuditLogsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetBanUsersFromCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetCachedNotificationCountResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetCommentBanStatusResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetCommentChildrenResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetCommentTextResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetCommentVoteUserNamesResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetCommentsForUserResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetCommentsPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetCommentsResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetCountResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetCountsResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetEmailTemplateResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetEmailTemplatesResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetEventLogResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetFeedPostsPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetFeedPostsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetFeedPostsStatsResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetGifLargeResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetGlobalEventLogResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetHashTagsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetLogsResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetManualBadgesForUserResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetManualBadgesResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetModerationCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetModerationCommentTextResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetModeratorResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetModeratorsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetNotificationCountResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetNotificationsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetOfflineUsersResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetOnlineUsersResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetPagesPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetPreBanSummaryResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetQuestionConfigResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetQuestionConfigsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetQuestionResultResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetQuestionResultsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetSearchCommentsSummaryResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetSearchPagesResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetSearchSitesResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetSearchSuggestResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetSearchUsersResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetTenantPackageResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetTenantPackagesResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetTenantResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetTenantUserResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetTenantUsersResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetTenantsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetTicketResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetTicketsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetTranslationsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetTrustFactorResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByIdResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserBadgeProgressListResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserBadgeResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserBadgesResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserBanPreferenceResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserNotificationCountResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserNotificationsResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserReactsPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUserResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetUsersInfoResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetV1PageLikesResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetV2PageReactsResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetVotesForUserResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/GetVotesResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/LockCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PatchHashTagResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PinCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostAdjustCommentVotesResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostApiExportResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostBanUserFromCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostBanUserUndoResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostBulkPreBanSummaryResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostCommentsByIdsResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostFlagCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostRestoreDeletedCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostSetCommentApprovalStatusResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostSetCommentReviewStatusResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostSetCommentSpamStatusResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostSetCommentTextResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostUnFlagCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PostVoteResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PutAwardBadgeResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PutCloseThreadResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PutRemoveBadgeResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/PutReopenThreadResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/ReactFeedPostPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/RenderEmailTemplateResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/ReplaceTenantPackageResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/ReplaceTenantUserResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/ResetUserNotificationCountResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/ResetUserNotificationsResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/SaveCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/SearchUsersResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/SendInviteResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/SendLoginLinkResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/SetCommentTextResponse1.java delete mode 100644 client/src/main/java/com/fastcomments/model/SetTrustFactorResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UnBlockCommentPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UnBlockUserFromCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UnFlagCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UnLockCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UnPinCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateCommentResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateEmailTemplateResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateFeedPostPublicResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateFeedPostResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateModeratorResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateNotificationResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateQuestionConfigResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateQuestionResultResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateTenantPackageResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateTenantResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateTenantUserResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/UpdateUserBadgeResponse.java delete mode 100644 client/src/main/java/com/fastcomments/model/VoteCommentResponse.java delete mode 100644 client/src/test/java/com/fastcomments/model/AddHashTagResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/AddHashTagsBulkResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/AggregateQuestionResultsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/BlockFromCommentPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/BlockUserFromCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/ChangeTicketStateResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/CheckedCommentsForBlockedResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateCommentPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateEmailTemplateResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateFeedPostPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateFeedPostResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateModeratorResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateQuestionConfigResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateQuestionResultResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateTenantPackageResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateTenantResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateTenantUserResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateTicketResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateUserBadgeResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateV1PageReactResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateV2PageReactResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/CreateVoteResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteCommentPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteCommentVoteResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteEmailTemplateResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOfTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteHashTagResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteModerationVoteResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteModeratorResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteNotificationCountResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeletePendingWebhookEventResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteQuestionConfigResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteQuestionResultResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteTenantPackageResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteTenantResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteTenantUserResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteUserBadgeResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteV1PageReactResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteV2PageReactResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/DeleteVoteResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/FlagCommentPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/FlagCommentResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetApiCommentsResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetApiExportStatusResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetApiIdsResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetAuditLogsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetBanUsersFromCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetCachedNotificationCountResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetCommentBanStatusResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetCommentChildrenResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetCommentTextResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetCommentVoteUserNamesResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetCommentsForUserResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetCommentsPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetCommentsResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetCountResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetCountsResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetEmailTemplateResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetEmailTemplatesResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetEventLogResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetFeedPostsPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetFeedPostsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetFeedPostsStatsResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetGifLargeResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetGlobalEventLogResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetHashTagsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetLogsResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetManualBadgesForUserResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetManualBadgesResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetModerationCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetModerationCommentTextResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetModeratorResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetModeratorsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetNotificationCountResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetNotificationsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetOfflineUsersResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetOnlineUsersResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetPagesPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetPendingWebhookEventsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetPreBanSummaryResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetQuestionConfigResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetQuestionConfigsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetQuestionResultResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetQuestionResultsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetSearchCommentsSummaryResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetSearchPagesResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetSearchSitesResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetSearchSuggestResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetSearchUsersResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetTenantDailyUsagesResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetTenantPackageResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetTenantPackagesResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetTenantResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetTenantUserResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetTenantUsersResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetTenantsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetTicketResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetTicketsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetTranslationsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetTrustFactorResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByIdResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserBadgeProgressListResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserBadgeResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserBadgesResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserBanPreferenceResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserNotificationCountResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserNotificationsResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserPresenceStatusesResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserReactsPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUserResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetUsersInfoResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetV1PageLikesResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetV2PageReactUsersResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetV2PageReactsResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetVotesForUserResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/GetVotesResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/LockCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PatchHashTagResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PinCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostAdjustCommentVotesResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostApiExportResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostBanUserFromCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostBanUserUndoResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostBulkPreBanSummaryResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostCommentsByIdsResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostFlagCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostRestoreDeletedCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostSetCommentApprovalStatusResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostSetCommentReviewStatusResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostSetCommentSpamStatusResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostSetCommentTextResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostUnFlagCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PostVoteResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PutAwardBadgeResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PutCloseThreadResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PutRemoveBadgeResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/PutReopenThreadResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/ReactFeedPostPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/RenderEmailTemplateResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/ReplaceTenantPackageResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/ReplaceTenantUserResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/ResetUserNotificationCountResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/ResetUserNotificationsResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/SaveCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/SearchUsersResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/SendInviteResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/SendLoginLinkResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/SetCommentTextResponse1Test.java delete mode 100644 client/src/test/java/com/fastcomments/model/SetTrustFactorResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UnBlockCommentPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UnBlockUserFromCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UnFlagCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UnLockCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UnPinCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateCommentResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateEmailTemplateResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateFeedPostPublicResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateFeedPostResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateModeratorResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateNotificationResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateQuestionConfigResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateQuestionResultResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateTenantPackageResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateTenantResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateTenantUserResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/UpdateUserBadgeResponseTest.java delete mode 100644 client/src/test/java/com/fastcomments/model/VoteCommentResponseTest.java diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 3e582d5f..fb0b9ca0 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -40,14 +40,11 @@ docs/APIUserSubscription.md docs/AddDomainConfigParams.md docs/AddDomainConfigResponse.md docs/AddDomainConfigResponseAnyOf.md -docs/AddHashTagResponse.md -docs/AddHashTagsBulkResponse.md docs/AddPageAPIResponse.md docs/AddSSOUserAPIResponse.md docs/AdjustCommentVotesParams.md docs/AdjustVotesResponse.md docs/AggregateQuestionResultsResponse.md -docs/AggregateQuestionResultsResponse1.md docs/AggregateResponse.md docs/AggregateTimeBucket.md docs/AggregationAPIError.md @@ -67,15 +64,12 @@ docs/BannedUserMatchMatchedOnValue.md docs/BannedUserMatchType.md docs/BillingInfo.md docs/BlockFromCommentParams.md -docs/BlockFromCommentPublicResponse.md docs/BlockSuccess.md -docs/BlockUserFromCommentResponse.md docs/BuildModerationFilterParams.md docs/BuildModerationFilterResponse.md docs/BulkAggregateQuestionItem.md docs/BulkAggregateQuestionResultsRequest.md docs/BulkAggregateQuestionResultsResponse.md -docs/BulkAggregateQuestionResultsResponse1.md docs/BulkCreateHashTagsBody.md docs/BulkCreateHashTagsBodyTagsInner.md docs/BulkCreateHashTagsResponse.md @@ -85,10 +79,7 @@ docs/BulkPreBanSummary.md docs/ChangeCommentPinStatusResponse.md docs/ChangeTicketStateBody.md docs/ChangeTicketStateResponse.md -docs/ChangeTicketStateResponse1.md docs/CheckBlockedCommentsResponse.md -docs/CheckedCommentsForBlockedResponse.md -docs/CombineCommentsWithQuestionResultsResponse.md docs/CombineQuestionResultsWithCommentsResponse.md docs/CommentData.md docs/CommentHTMLRenderingMode.md @@ -108,76 +99,41 @@ docs/CreateAPIPageData.md docs/CreateAPISSOUserData.md docs/CreateAPIUserSubscriptionData.md docs/CreateCommentParams.md -docs/CreateCommentPublicResponse.md docs/CreateEmailTemplateBody.md docs/CreateEmailTemplateResponse.md -docs/CreateEmailTemplateResponse1.md docs/CreateFeedPostParams.md -docs/CreateFeedPostPublicResponse.md docs/CreateFeedPostResponse.md -docs/CreateFeedPostResponse1.md docs/CreateFeedPostsResponse.md docs/CreateHashTagBody.md docs/CreateHashTagResponse.md docs/CreateModeratorBody.md docs/CreateModeratorResponse.md -docs/CreateModeratorResponse1.md docs/CreateQuestionConfigBody.md docs/CreateQuestionConfigResponse.md -docs/CreateQuestionConfigResponse1.md docs/CreateQuestionResultBody.md docs/CreateQuestionResultResponse.md -docs/CreateQuestionResultResponse1.md docs/CreateSubscriptionAPIResponse.md docs/CreateTenantBody.md docs/CreateTenantPackageBody.md docs/CreateTenantPackageResponse.md -docs/CreateTenantPackageResponse1.md docs/CreateTenantResponse.md -docs/CreateTenantResponse1.md docs/CreateTenantUserBody.md docs/CreateTenantUserResponse.md -docs/CreateTenantUserResponse1.md docs/CreateTicketBody.md docs/CreateTicketResponse.md -docs/CreateTicketResponse1.md docs/CreateUserBadgeParams.md -docs/CreateUserBadgeResponse.md docs/CreateV1PageReact.md -docs/CreateV1PageReactResponse.md -docs/CreateV2PageReactResponse.md -docs/CreateVoteResponse.md docs/CustomConfigParameters.md docs/CustomEmailTemplate.md docs/DefaultApi.md docs/DeleteCommentAction.md -docs/DeleteCommentPublicResponse.md -docs/DeleteCommentResponse.md docs/DeleteCommentResult.md -docs/DeleteCommentVoteResponse.md docs/DeleteDomainConfigResponse.md -docs/DeleteEmailTemplateRenderErrorResponse.md -docs/DeleteEmailTemplateResponse.md docs/DeleteFeedPostPublicResponse.md -docs/DeleteFeedPostPublicResponseAnyOf.md docs/DeleteHashTagRequestBody.md -docs/DeleteHashTagResponse.md -docs/DeleteModerationVoteResponse.md -docs/DeleteModeratorResponse.md -docs/DeleteNotificationCountResponse.md docs/DeletePageAPIResponse.md -docs/DeletePendingWebhookEventResponse.md -docs/DeleteQuestionConfigResponse.md -docs/DeleteQuestionResultResponse.md docs/DeleteSSOUserAPIResponse.md docs/DeleteSubscriptionAPIResponse.md -docs/DeleteTenantPackageResponse.md -docs/DeleteTenantResponse.md -docs/DeleteTenantUserResponse.md -docs/DeleteUserBadgeResponse.md -docs/DeleteV1PageReactResponse.md -docs/DeleteV2PageReactResponse.md -docs/DeleteVoteResponse.md docs/DeletedCommentResultComment.md docs/DigestEmailFrequency.md docs/EmailTemplateDefinition.md @@ -193,154 +149,72 @@ docs/FeedPostStats.md docs/FeedPostsStatsResponse.md docs/FindCommentsByRangeItem.md docs/FindCommentsByRangeResponse.md -docs/FlagCommentPublicResponse.md docs/FlagCommentResponse.md -docs/FlagCommentResponse1.md -docs/GetApiCommentsResponse.md -docs/GetApiExportStatusResponse.md -docs/GetApiIdsResponse.md docs/GetAuditLogsResponse.md -docs/GetAuditLogsResponse1.md -docs/GetBanUsersFromCommentResponse.md docs/GetBannedUsersCountResponse.md docs/GetBannedUsersFromCommentResponse.md docs/GetCachedNotificationCountResponse.md -docs/GetCachedNotificationCountResponse1.md docs/GetCommentBanStatusResponse.md -docs/GetCommentBanStatusResponse1.md -docs/GetCommentChildrenResponse.md -docs/GetCommentResponse.md docs/GetCommentTextResponse.md -docs/GetCommentTextResponse1.md -docs/GetCommentVoteUserNamesResponse.md docs/GetCommentVoteUserNamesSuccessResponse.md docs/GetCommentsForUserResponse.md -docs/GetCommentsForUserResponse1.md -docs/GetCommentsPublicResponse.md -docs/GetCommentsResponse.md docs/GetCommentsResponsePublicComment.md docs/GetCommentsResponseWithPresencePublicComment.md -docs/GetCountResponse.md -docs/GetCountsResponse.md docs/GetDomainConfigResponse.md docs/GetDomainConfigsResponse.md docs/GetDomainConfigsResponseAnyOf.md docs/GetDomainConfigsResponseAnyOf1.md docs/GetEmailTemplateDefinitionsResponse.md -docs/GetEmailTemplateDefinitionsResponse1.md docs/GetEmailTemplateRenderErrorsResponse.md -docs/GetEmailTemplateRenderErrorsResponse1.md docs/GetEmailTemplateResponse.md -docs/GetEmailTemplateResponse1.md docs/GetEmailTemplatesResponse.md -docs/GetEmailTemplatesResponse1.md docs/GetEventLogResponse.md -docs/GetEventLogResponse1.md -docs/GetFeedPostsPublicResponse.md docs/GetFeedPostsResponse.md -docs/GetFeedPostsResponse1.md -docs/GetFeedPostsStatsResponse.md -docs/GetGifLargeResponse.md docs/GetGifsSearchResponse.md docs/GetGifsTrendingResponse.md -docs/GetGlobalEventLogResponse.md docs/GetHashTagsResponse.md -docs/GetHashTagsResponse1.md -docs/GetLogsResponse.md -docs/GetManualBadgesForUserResponse.md -docs/GetManualBadgesResponse.md -docs/GetModerationCommentResponse.md -docs/GetModerationCommentTextResponse.md docs/GetModeratorResponse.md -docs/GetModeratorResponse1.md docs/GetModeratorsResponse.md -docs/GetModeratorsResponse1.md docs/GetMyNotificationsResponse.md docs/GetNotificationCountResponse.md -docs/GetNotificationCountResponse1.md docs/GetNotificationsResponse.md -docs/GetNotificationsResponse1.md -docs/GetOfflineUsersResponse.md -docs/GetOnlineUsersResponse.md docs/GetPageByURLIdAPIResponse.md docs/GetPagesAPIResponse.md -docs/GetPagesPublicResponse.md docs/GetPendingWebhookEventCountResponse.md -docs/GetPendingWebhookEventCountResponse1.md docs/GetPendingWebhookEventsResponse.md -docs/GetPendingWebhookEventsResponse1.md -docs/GetPreBanSummaryResponse.md docs/GetPublicFeedPostsResponse.md docs/GetPublicPagesResponse.md docs/GetQuestionConfigResponse.md -docs/GetQuestionConfigResponse1.md docs/GetQuestionConfigsResponse.md -docs/GetQuestionConfigsResponse1.md docs/GetQuestionResultResponse.md -docs/GetQuestionResultResponse1.md docs/GetQuestionResultsResponse.md -docs/GetQuestionResultsResponse1.md docs/GetSSOUserByEmailAPIResponse.md docs/GetSSOUserByIdAPIResponse.md docs/GetSSOUsersResponse.md -docs/GetSearchCommentsSummaryResponse.md -docs/GetSearchPagesResponse.md -docs/GetSearchSitesResponse.md -docs/GetSearchSuggestResponse.md -docs/GetSearchUsersResponse.md docs/GetSubscriptionsAPIResponse.md docs/GetTenantDailyUsagesResponse.md -docs/GetTenantDailyUsagesResponse1.md docs/GetTenantManualBadgesResponse.md docs/GetTenantPackageResponse.md -docs/GetTenantPackageResponse1.md docs/GetTenantPackagesResponse.md -docs/GetTenantPackagesResponse1.md docs/GetTenantResponse.md -docs/GetTenantResponse1.md docs/GetTenantUserResponse.md -docs/GetTenantUserResponse1.md docs/GetTenantUsersResponse.md -docs/GetTenantUsersResponse1.md docs/GetTenantsResponse.md -docs/GetTenantsResponse1.md docs/GetTicketResponse.md -docs/GetTicketResponse1.md docs/GetTicketsResponse.md -docs/GetTicketsResponse1.md docs/GetTranslationsResponse.md -docs/GetTranslationsResponse1.md -docs/GetTrustFactorResponse.md -docs/GetUserBadgeProgressByIdResponse.md -docs/GetUserBadgeProgressByUserIdResponse.md -docs/GetUserBadgeProgressListResponse.md -docs/GetUserBadgeResponse.md -docs/GetUserBadgesResponse.md -docs/GetUserBanPreferenceResponse.md docs/GetUserInternalProfileResponse.md -docs/GetUserInternalProfileResponse1.md docs/GetUserInternalProfileResponseProfile.md docs/GetUserManualBadgesResponse.md docs/GetUserNotificationCountResponse.md -docs/GetUserNotificationCountResponse1.md -docs/GetUserNotificationsResponse.md docs/GetUserPresenceStatusesResponse.md -docs/GetUserPresenceStatusesResponse1.md -docs/GetUserReactsPublicResponse.md docs/GetUserResponse.md -docs/GetUserResponse1.md docs/GetUserTrustFactorResponse.md -docs/GetUsersInfoResponse.md docs/GetV1PageLikes.md -docs/GetV1PageLikesResponse.md docs/GetV2PageReactUsersResponse.md -docs/GetV2PageReactUsersResponse1.md docs/GetV2PageReacts.md -docs/GetV2PageReactsResponse.md docs/GetVotesForUserResponse.md -docs/GetVotesForUserResponse1.md docs/GetVotesResponse.md -docs/GetVotesResponse1.md docs/GifGetLargeResponse.md docs/GifRating.md docs/GifSearchInternalError.md @@ -355,7 +229,6 @@ docs/ImportedSiteType.md docs/LiveEvent.md docs/LiveEventExtraInfo.md docs/LiveEventType.md -docs/LockCommentResponse.md docs/MediaAsset.md docs/MentionAutoCompleteMode.md docs/MetaItem.md @@ -390,26 +263,10 @@ docs/PageUsersOnlineResponse.md docs/PagesSortBy.md docs/PatchDomainConfigParams.md docs/PatchDomainConfigResponse.md -docs/PatchHashTagResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md -docs/PinCommentResponse.md -docs/PostAdjustCommentVotesResponse.md -docs/PostApiExportResponse.md -docs/PostBanUserFromCommentResponse.md -docs/PostBanUserUndoResponse.md -docs/PostBulkPreBanSummaryResponse.md -docs/PostCommentsByIdsResponse.md -docs/PostFlagCommentResponse.md docs/PostRemoveCommentResponse.md -docs/PostRestoreDeletedCommentResponse.md -docs/PostSetCommentApprovalStatusResponse.md -docs/PostSetCommentReviewStatusResponse.md -docs/PostSetCommentSpamStatusResponse.md -docs/PostSetCommentTextResponse.md -docs/PostUnFlagCommentResponse.md -docs/PostVoteResponse.md docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md @@ -424,11 +281,7 @@ docs/PublicCommentBase.md docs/PublicFeedPostsResponse.md docs/PublicPage.md docs/PublicVote.md -docs/PutAwardBadgeResponse.md -docs/PutCloseThreadResponse.md docs/PutDomainConfigResponse.md -docs/PutRemoveBadgeResponse.md -docs/PutReopenThreadResponse.md docs/PutSSOUserAPIResponse.md docs/QueryPredicate.md docs/QueryPredicateValue.md @@ -441,42 +294,30 @@ docs/QuestionResultAggregationOverall.md docs/QuestionSubQuestionVisibility.md docs/QuestionWhenSave.md docs/ReactBodyParams.md -docs/ReactFeedPostPublicResponse.md docs/ReactFeedPostResponse.md docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md docs/RemoveCommentActionResponse.md docs/RemoveUserBadgeResponse.md docs/RenderEmailTemplateBody.md docs/RenderEmailTemplateResponse.md -docs/RenderEmailTemplateResponse1.md docs/RenderableUserNotification.md docs/RepeatCommentCheckIgnoredReason.md docs/RepeatCommentHandlingAction.md docs/ReplaceTenantPackageBody.md -docs/ReplaceTenantPackageResponse.md docs/ReplaceTenantUserBody.md -docs/ReplaceTenantUserResponse.md -docs/ResetUserNotificationCountResponse.md docs/ResetUserNotificationsResponse.md -docs/ResetUserNotificationsResponse1.md docs/SORTDIR.md docs/SSOSecurityLevel.md -docs/SaveCommentResponse.md docs/SaveCommentResponseOptimized.md docs/SaveCommentsBulkResponse.md docs/SaveCommentsResponseWithPresence.md docs/SearchUsersResponse.md -docs/SearchUsersResponse1.md docs/SearchUsersResult.md docs/SearchUsersSectionedResponse.md -docs/SendInviteResponse.md -docs/SendLoginLinkResponse.md docs/SetCommentApprovedResponse.md docs/SetCommentTextParams.md docs/SetCommentTextResponse.md -docs/SetCommentTextResponse1.md docs/SetCommentTextResult.md -docs/SetTrustFactorResponse.md docs/SetUserTrustFactorResponse.md docs/SizePreset.md docs/SortDirections.md @@ -485,43 +326,26 @@ docs/TOSConfig.md docs/TenantBadge.md docs/TenantHashTag.md docs/TenantPackage.md -docs/UnBlockCommentPublicResponse.md docs/UnBlockFromCommentParams.md -docs/UnBlockUserFromCommentResponse.md -docs/UnFlagCommentResponse.md -docs/UnLockCommentResponse.md -docs/UnPinCommentResponse.md docs/UnblockSuccess.md docs/UpdatableCommentParams.md docs/UpdateAPIPageData.md docs/UpdateAPISSOUserData.md docs/UpdateAPIUserSubscriptionData.md -docs/UpdateCommentResponse.md docs/UpdateDomainConfigParams.md docs/UpdateEmailTemplateBody.md -docs/UpdateEmailTemplateResponse.md docs/UpdateFeedPostParams.md -docs/UpdateFeedPostPublicResponse.md -docs/UpdateFeedPostResponse.md docs/UpdateHashTagBody.md docs/UpdateHashTagResponse.md docs/UpdateModeratorBody.md -docs/UpdateModeratorResponse.md docs/UpdateNotificationBody.md -docs/UpdateNotificationResponse.md docs/UpdateQuestionConfigBody.md -docs/UpdateQuestionConfigResponse.md docs/UpdateQuestionResultBody.md -docs/UpdateQuestionResultResponse.md docs/UpdateSubscriptionAPIResponse.md docs/UpdateTenantBody.md docs/UpdateTenantPackageBody.md -docs/UpdateTenantPackageResponse.md -docs/UpdateTenantResponse.md docs/UpdateTenantUserBody.md -docs/UpdateTenantUserResponse.md docs/UpdateUserBadgeParams.md -docs/UpdateUserBadgeResponse.md docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md docs/UpdateUserNotificationPageSubscriptionStatusResponse.md docs/UpdateUserNotificationStatusResponse.md @@ -540,7 +364,6 @@ docs/UserSearchSectionResult.md docs/UserSessionInfo.md docs/UsersListLocation.md docs/VoteBodyParams.md -docs/VoteCommentResponse.md docs/VoteDeleteResponse.md docs/VoteResponse.md docs/VoteResponseUser.md @@ -610,14 +433,11 @@ src/main/java/com/fastcomments/model/AbstractOpenApiSchema.java src/main/java/com/fastcomments/model/AddDomainConfigParams.java src/main/java/com/fastcomments/model/AddDomainConfigResponse.java src/main/java/com/fastcomments/model/AddDomainConfigResponseAnyOf.java -src/main/java/com/fastcomments/model/AddHashTagResponse.java -src/main/java/com/fastcomments/model/AddHashTagsBulkResponse.java src/main/java/com/fastcomments/model/AddPageAPIResponse.java src/main/java/com/fastcomments/model/AddSSOUserAPIResponse.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/AggregateQuestionResultsResponse1.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 @@ -637,15 +457,12 @@ 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/BlockFromCommentPublicResponse.java src/main/java/com/fastcomments/model/BlockSuccess.java -src/main/java/com/fastcomments/model/BlockUserFromCommentResponse.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/BulkAggregateQuestionResultsRequest.java src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse.java -src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1.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 @@ -655,10 +472,7 @@ src/main/java/com/fastcomments/model/BulkPreBanSummary.java src/main/java/com/fastcomments/model/ChangeCommentPinStatusResponse.java src/main/java/com/fastcomments/model/ChangeTicketStateBody.java src/main/java/com/fastcomments/model/ChangeTicketStateResponse.java -src/main/java/com/fastcomments/model/ChangeTicketStateResponse1.java src/main/java/com/fastcomments/model/CheckBlockedCommentsResponse.java -src/main/java/com/fastcomments/model/CheckedCommentsForBlockedResponse.java -src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponse.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 @@ -678,75 +492,40 @@ 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/CreateCommentPublicResponse.java src/main/java/com/fastcomments/model/CreateEmailTemplateBody.java src/main/java/com/fastcomments/model/CreateEmailTemplateResponse.java -src/main/java/com/fastcomments/model/CreateEmailTemplateResponse1.java src/main/java/com/fastcomments/model/CreateFeedPostParams.java -src/main/java/com/fastcomments/model/CreateFeedPostPublicResponse.java src/main/java/com/fastcomments/model/CreateFeedPostResponse.java -src/main/java/com/fastcomments/model/CreateFeedPostResponse1.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/CreateModeratorBody.java src/main/java/com/fastcomments/model/CreateModeratorResponse.java -src/main/java/com/fastcomments/model/CreateModeratorResponse1.java src/main/java/com/fastcomments/model/CreateQuestionConfigBody.java src/main/java/com/fastcomments/model/CreateQuestionConfigResponse.java -src/main/java/com/fastcomments/model/CreateQuestionConfigResponse1.java src/main/java/com/fastcomments/model/CreateQuestionResultBody.java src/main/java/com/fastcomments/model/CreateQuestionResultResponse.java -src/main/java/com/fastcomments/model/CreateQuestionResultResponse1.java src/main/java/com/fastcomments/model/CreateSubscriptionAPIResponse.java src/main/java/com/fastcomments/model/CreateTenantBody.java src/main/java/com/fastcomments/model/CreateTenantPackageBody.java src/main/java/com/fastcomments/model/CreateTenantPackageResponse.java -src/main/java/com/fastcomments/model/CreateTenantPackageResponse1.java src/main/java/com/fastcomments/model/CreateTenantResponse.java -src/main/java/com/fastcomments/model/CreateTenantResponse1.java src/main/java/com/fastcomments/model/CreateTenantUserBody.java src/main/java/com/fastcomments/model/CreateTenantUserResponse.java -src/main/java/com/fastcomments/model/CreateTenantUserResponse1.java src/main/java/com/fastcomments/model/CreateTicketBody.java src/main/java/com/fastcomments/model/CreateTicketResponse.java -src/main/java/com/fastcomments/model/CreateTicketResponse1.java src/main/java/com/fastcomments/model/CreateUserBadgeParams.java -src/main/java/com/fastcomments/model/CreateUserBadgeResponse.java src/main/java/com/fastcomments/model/CreateV1PageReact.java -src/main/java/com/fastcomments/model/CreateV1PageReactResponse.java -src/main/java/com/fastcomments/model/CreateV2PageReactResponse.java -src/main/java/com/fastcomments/model/CreateVoteResponse.java src/main/java/com/fastcomments/model/CustomConfigParameters.java src/main/java/com/fastcomments/model/CustomEmailTemplate.java src/main/java/com/fastcomments/model/DeleteCommentAction.java -src/main/java/com/fastcomments/model/DeleteCommentPublicResponse.java -src/main/java/com/fastcomments/model/DeleteCommentResponse.java src/main/java/com/fastcomments/model/DeleteCommentResult.java -src/main/java/com/fastcomments/model/DeleteCommentVoteResponse.java src/main/java/com/fastcomments/model/DeleteDomainConfigResponse.java -src/main/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponse.java -src/main/java/com/fastcomments/model/DeleteEmailTemplateResponse.java src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java -src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOf.java src/main/java/com/fastcomments/model/DeleteHashTagRequestBody.java -src/main/java/com/fastcomments/model/DeleteHashTagResponse.java -src/main/java/com/fastcomments/model/DeleteModerationVoteResponse.java -src/main/java/com/fastcomments/model/DeleteModeratorResponse.java -src/main/java/com/fastcomments/model/DeleteNotificationCountResponse.java src/main/java/com/fastcomments/model/DeletePageAPIResponse.java -src/main/java/com/fastcomments/model/DeletePendingWebhookEventResponse.java -src/main/java/com/fastcomments/model/DeleteQuestionConfigResponse.java -src/main/java/com/fastcomments/model/DeleteQuestionResultResponse.java src/main/java/com/fastcomments/model/DeleteSSOUserAPIResponse.java src/main/java/com/fastcomments/model/DeleteSubscriptionAPIResponse.java -src/main/java/com/fastcomments/model/DeleteTenantPackageResponse.java -src/main/java/com/fastcomments/model/DeleteTenantResponse.java -src/main/java/com/fastcomments/model/DeleteTenantUserResponse.java -src/main/java/com/fastcomments/model/DeleteUserBadgeResponse.java -src/main/java/com/fastcomments/model/DeleteV1PageReactResponse.java -src/main/java/com/fastcomments/model/DeleteV2PageReactResponse.java -src/main/java/com/fastcomments/model/DeleteVoteResponse.java src/main/java/com/fastcomments/model/DeletedCommentResultComment.java src/main/java/com/fastcomments/model/DigestEmailFrequency.java src/main/java/com/fastcomments/model/EmailTemplateDefinition.java @@ -762,154 +541,72 @@ 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/FlagCommentPublicResponse.java src/main/java/com/fastcomments/model/FlagCommentResponse.java -src/main/java/com/fastcomments/model/FlagCommentResponse1.java -src/main/java/com/fastcomments/model/GetApiCommentsResponse.java -src/main/java/com/fastcomments/model/GetApiExportStatusResponse.java -src/main/java/com/fastcomments/model/GetApiIdsResponse.java src/main/java/com/fastcomments/model/GetAuditLogsResponse.java -src/main/java/com/fastcomments/model/GetAuditLogsResponse1.java -src/main/java/com/fastcomments/model/GetBanUsersFromCommentResponse.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/GetCachedNotificationCountResponse1.java src/main/java/com/fastcomments/model/GetCommentBanStatusResponse.java -src/main/java/com/fastcomments/model/GetCommentBanStatusResponse1.java -src/main/java/com/fastcomments/model/GetCommentChildrenResponse.java -src/main/java/com/fastcomments/model/GetCommentResponse.java src/main/java/com/fastcomments/model/GetCommentTextResponse.java -src/main/java/com/fastcomments/model/GetCommentTextResponse1.java -src/main/java/com/fastcomments/model/GetCommentVoteUserNamesResponse.java src/main/java/com/fastcomments/model/GetCommentVoteUserNamesSuccessResponse.java src/main/java/com/fastcomments/model/GetCommentsForUserResponse.java -src/main/java/com/fastcomments/model/GetCommentsForUserResponse1.java -src/main/java/com/fastcomments/model/GetCommentsPublicResponse.java -src/main/java/com/fastcomments/model/GetCommentsResponse.java src/main/java/com/fastcomments/model/GetCommentsResponsePublicComment.java src/main/java/com/fastcomments/model/GetCommentsResponseWithPresencePublicComment.java -src/main/java/com/fastcomments/model/GetCountResponse.java -src/main/java/com/fastcomments/model/GetCountsResponse.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/GetEmailTemplateDefinitionsResponse1.java src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse.java -src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1.java src/main/java/com/fastcomments/model/GetEmailTemplateResponse.java -src/main/java/com/fastcomments/model/GetEmailTemplateResponse1.java src/main/java/com/fastcomments/model/GetEmailTemplatesResponse.java -src/main/java/com/fastcomments/model/GetEmailTemplatesResponse1.java src/main/java/com/fastcomments/model/GetEventLogResponse.java -src/main/java/com/fastcomments/model/GetEventLogResponse1.java -src/main/java/com/fastcomments/model/GetFeedPostsPublicResponse.java src/main/java/com/fastcomments/model/GetFeedPostsResponse.java -src/main/java/com/fastcomments/model/GetFeedPostsResponse1.java -src/main/java/com/fastcomments/model/GetFeedPostsStatsResponse.java -src/main/java/com/fastcomments/model/GetGifLargeResponse.java src/main/java/com/fastcomments/model/GetGifsSearchResponse.java src/main/java/com/fastcomments/model/GetGifsTrendingResponse.java -src/main/java/com/fastcomments/model/GetGlobalEventLogResponse.java src/main/java/com/fastcomments/model/GetHashTagsResponse.java -src/main/java/com/fastcomments/model/GetHashTagsResponse1.java -src/main/java/com/fastcomments/model/GetLogsResponse.java -src/main/java/com/fastcomments/model/GetManualBadgesForUserResponse.java -src/main/java/com/fastcomments/model/GetManualBadgesResponse.java -src/main/java/com/fastcomments/model/GetModerationCommentResponse.java -src/main/java/com/fastcomments/model/GetModerationCommentTextResponse.java src/main/java/com/fastcomments/model/GetModeratorResponse.java -src/main/java/com/fastcomments/model/GetModeratorResponse1.java src/main/java/com/fastcomments/model/GetModeratorsResponse.java -src/main/java/com/fastcomments/model/GetModeratorsResponse1.java src/main/java/com/fastcomments/model/GetMyNotificationsResponse.java src/main/java/com/fastcomments/model/GetNotificationCountResponse.java -src/main/java/com/fastcomments/model/GetNotificationCountResponse1.java src/main/java/com/fastcomments/model/GetNotificationsResponse.java -src/main/java/com/fastcomments/model/GetNotificationsResponse1.java -src/main/java/com/fastcomments/model/GetOfflineUsersResponse.java -src/main/java/com/fastcomments/model/GetOnlineUsersResponse.java src/main/java/com/fastcomments/model/GetPageByURLIdAPIResponse.java src/main/java/com/fastcomments/model/GetPagesAPIResponse.java -src/main/java/com/fastcomments/model/GetPagesPublicResponse.java src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse.java -src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1.java src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse.java -src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse1.java -src/main/java/com/fastcomments/model/GetPreBanSummaryResponse.java src/main/java/com/fastcomments/model/GetPublicFeedPostsResponse.java src/main/java/com/fastcomments/model/GetPublicPagesResponse.java src/main/java/com/fastcomments/model/GetQuestionConfigResponse.java -src/main/java/com/fastcomments/model/GetQuestionConfigResponse1.java src/main/java/com/fastcomments/model/GetQuestionConfigsResponse.java -src/main/java/com/fastcomments/model/GetQuestionConfigsResponse1.java src/main/java/com/fastcomments/model/GetQuestionResultResponse.java -src/main/java/com/fastcomments/model/GetQuestionResultResponse1.java src/main/java/com/fastcomments/model/GetQuestionResultsResponse.java -src/main/java/com/fastcomments/model/GetQuestionResultsResponse1.java src/main/java/com/fastcomments/model/GetSSOUserByEmailAPIResponse.java src/main/java/com/fastcomments/model/GetSSOUserByIdAPIResponse.java src/main/java/com/fastcomments/model/GetSSOUsersResponse.java -src/main/java/com/fastcomments/model/GetSearchCommentsSummaryResponse.java -src/main/java/com/fastcomments/model/GetSearchPagesResponse.java -src/main/java/com/fastcomments/model/GetSearchSitesResponse.java -src/main/java/com/fastcomments/model/GetSearchSuggestResponse.java -src/main/java/com/fastcomments/model/GetSearchUsersResponse.java src/main/java/com/fastcomments/model/GetSubscriptionsAPIResponse.java src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse.java -src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse1.java src/main/java/com/fastcomments/model/GetTenantManualBadgesResponse.java src/main/java/com/fastcomments/model/GetTenantPackageResponse.java -src/main/java/com/fastcomments/model/GetTenantPackageResponse1.java src/main/java/com/fastcomments/model/GetTenantPackagesResponse.java -src/main/java/com/fastcomments/model/GetTenantPackagesResponse1.java src/main/java/com/fastcomments/model/GetTenantResponse.java -src/main/java/com/fastcomments/model/GetTenantResponse1.java src/main/java/com/fastcomments/model/GetTenantUserResponse.java -src/main/java/com/fastcomments/model/GetTenantUserResponse1.java src/main/java/com/fastcomments/model/GetTenantUsersResponse.java -src/main/java/com/fastcomments/model/GetTenantUsersResponse1.java src/main/java/com/fastcomments/model/GetTenantsResponse.java -src/main/java/com/fastcomments/model/GetTenantsResponse1.java src/main/java/com/fastcomments/model/GetTicketResponse.java -src/main/java/com/fastcomments/model/GetTicketResponse1.java src/main/java/com/fastcomments/model/GetTicketsResponse.java -src/main/java/com/fastcomments/model/GetTicketsResponse1.java src/main/java/com/fastcomments/model/GetTranslationsResponse.java -src/main/java/com/fastcomments/model/GetTranslationsResponse1.java -src/main/java/com/fastcomments/model/GetTrustFactorResponse.java -src/main/java/com/fastcomments/model/GetUserBadgeProgressByIdResponse.java -src/main/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponse.java -src/main/java/com/fastcomments/model/GetUserBadgeProgressListResponse.java -src/main/java/com/fastcomments/model/GetUserBadgeResponse.java -src/main/java/com/fastcomments/model/GetUserBadgesResponse.java -src/main/java/com/fastcomments/model/GetUserBanPreferenceResponse.java src/main/java/com/fastcomments/model/GetUserInternalProfileResponse.java -src/main/java/com/fastcomments/model/GetUserInternalProfileResponse1.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/GetUserNotificationCountResponse1.java -src/main/java/com/fastcomments/model/GetUserNotificationsResponse.java src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse.java -src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse1.java -src/main/java/com/fastcomments/model/GetUserReactsPublicResponse.java src/main/java/com/fastcomments/model/GetUserResponse.java -src/main/java/com/fastcomments/model/GetUserResponse1.java src/main/java/com/fastcomments/model/GetUserTrustFactorResponse.java -src/main/java/com/fastcomments/model/GetUsersInfoResponse.java src/main/java/com/fastcomments/model/GetV1PageLikes.java -src/main/java/com/fastcomments/model/GetV1PageLikesResponse.java src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse.java -src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse1.java src/main/java/com/fastcomments/model/GetV2PageReacts.java -src/main/java/com/fastcomments/model/GetV2PageReactsResponse.java src/main/java/com/fastcomments/model/GetVotesForUserResponse.java -src/main/java/com/fastcomments/model/GetVotesForUserResponse1.java src/main/java/com/fastcomments/model/GetVotesResponse.java -src/main/java/com/fastcomments/model/GetVotesResponse1.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 @@ -924,7 +621,6 @@ 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/LockCommentResponse.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 @@ -958,26 +654,10 @@ 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/PatchDomainConfigResponse.java -src/main/java/com/fastcomments/model/PatchHashTagResponse.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/PinCommentResponse.java -src/main/java/com/fastcomments/model/PostAdjustCommentVotesResponse.java -src/main/java/com/fastcomments/model/PostApiExportResponse.java -src/main/java/com/fastcomments/model/PostBanUserFromCommentResponse.java -src/main/java/com/fastcomments/model/PostBanUserUndoResponse.java -src/main/java/com/fastcomments/model/PostBulkPreBanSummaryResponse.java -src/main/java/com/fastcomments/model/PostCommentsByIdsResponse.java -src/main/java/com/fastcomments/model/PostFlagCommentResponse.java src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java -src/main/java/com/fastcomments/model/PostRestoreDeletedCommentResponse.java -src/main/java/com/fastcomments/model/PostSetCommentApprovalStatusResponse.java -src/main/java/com/fastcomments/model/PostSetCommentReviewStatusResponse.java -src/main/java/com/fastcomments/model/PostSetCommentSpamStatusResponse.java -src/main/java/com/fastcomments/model/PostSetCommentTextResponse.java -src/main/java/com/fastcomments/model/PostUnFlagCommentResponse.java -src/main/java/com/fastcomments/model/PostVoteResponse.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 @@ -991,11 +671,7 @@ 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/PutAwardBadgeResponse.java -src/main/java/com/fastcomments/model/PutCloseThreadResponse.java src/main/java/com/fastcomments/model/PutDomainConfigResponse.java -src/main/java/com/fastcomments/model/PutRemoveBadgeResponse.java -src/main/java/com/fastcomments/model/PutReopenThreadResponse.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 @@ -1008,42 +684,30 @@ 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/ReactFeedPostPublicResponse.java src/main/java/com/fastcomments/model/ReactFeedPostResponse.java src/main/java/com/fastcomments/model/RecordStringBeforeStringOrNullAfterStringOrNullValue.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/RenderEmailTemplateResponse1.java src/main/java/com/fastcomments/model/RenderableUserNotification.java 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/ReplaceTenantPackageResponse.java src/main/java/com/fastcomments/model/ReplaceTenantUserBody.java -src/main/java/com/fastcomments/model/ReplaceTenantUserResponse.java -src/main/java/com/fastcomments/model/ResetUserNotificationCountResponse.java src/main/java/com/fastcomments/model/ResetUserNotificationsResponse.java -src/main/java/com/fastcomments/model/ResetUserNotificationsResponse1.java src/main/java/com/fastcomments/model/SORTDIR.java src/main/java/com/fastcomments/model/SSOSecurityLevel.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/SearchUsersResponse.java -src/main/java/com/fastcomments/model/SearchUsersResponse1.java src/main/java/com/fastcomments/model/SearchUsersResult.java src/main/java/com/fastcomments/model/SearchUsersSectionedResponse.java -src/main/java/com/fastcomments/model/SendInviteResponse.java -src/main/java/com/fastcomments/model/SendLoginLinkResponse.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/SetCommentTextResponse1.java src/main/java/com/fastcomments/model/SetCommentTextResult.java -src/main/java/com/fastcomments/model/SetTrustFactorResponse.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 @@ -1052,43 +716,26 @@ 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/UnBlockCommentPublicResponse.java src/main/java/com/fastcomments/model/UnBlockFromCommentParams.java -src/main/java/com/fastcomments/model/UnBlockUserFromCommentResponse.java -src/main/java/com/fastcomments/model/UnFlagCommentResponse.java -src/main/java/com/fastcomments/model/UnLockCommentResponse.java -src/main/java/com/fastcomments/model/UnPinCommentResponse.java src/main/java/com/fastcomments/model/UnblockSuccess.java src/main/java/com/fastcomments/model/UpdatableCommentParams.java src/main/java/com/fastcomments/model/UpdateAPIPageData.java src/main/java/com/fastcomments/model/UpdateAPISSOUserData.java src/main/java/com/fastcomments/model/UpdateAPIUserSubscriptionData.java -src/main/java/com/fastcomments/model/UpdateCommentResponse.java src/main/java/com/fastcomments/model/UpdateDomainConfigParams.java src/main/java/com/fastcomments/model/UpdateEmailTemplateBody.java -src/main/java/com/fastcomments/model/UpdateEmailTemplateResponse.java src/main/java/com/fastcomments/model/UpdateFeedPostParams.java -src/main/java/com/fastcomments/model/UpdateFeedPostPublicResponse.java -src/main/java/com/fastcomments/model/UpdateFeedPostResponse.java src/main/java/com/fastcomments/model/UpdateHashTagBody.java src/main/java/com/fastcomments/model/UpdateHashTagResponse.java src/main/java/com/fastcomments/model/UpdateModeratorBody.java -src/main/java/com/fastcomments/model/UpdateModeratorResponse.java src/main/java/com/fastcomments/model/UpdateNotificationBody.java -src/main/java/com/fastcomments/model/UpdateNotificationResponse.java src/main/java/com/fastcomments/model/UpdateQuestionConfigBody.java -src/main/java/com/fastcomments/model/UpdateQuestionConfigResponse.java src/main/java/com/fastcomments/model/UpdateQuestionResultBody.java -src/main/java/com/fastcomments/model/UpdateQuestionResultResponse.java 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/UpdateTenantPackageResponse.java -src/main/java/com/fastcomments/model/UpdateTenantResponse.java src/main/java/com/fastcomments/model/UpdateTenantUserBody.java -src/main/java/com/fastcomments/model/UpdateTenantUserResponse.java src/main/java/com/fastcomments/model/UpdateUserBadgeParams.java -src/main/java/com/fastcomments/model/UpdateUserBadgeResponse.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 @@ -1107,7 +754,6 @@ 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/VoteCommentResponse.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 @@ -1150,13 +796,10 @@ src/test/java/com/fastcomments/model/APIUserSubscriptionTest.java src/test/java/com/fastcomments/model/AddDomainConfigParamsTest.java src/test/java/com/fastcomments/model/AddDomainConfigResponseAnyOfTest.java src/test/java/com/fastcomments/model/AddDomainConfigResponseTest.java -src/test/java/com/fastcomments/model/AddHashTagResponseTest.java -src/test/java/com/fastcomments/model/AddHashTagsBulkResponseTest.java src/test/java/com/fastcomments/model/AddPageAPIResponseTest.java src/test/java/com/fastcomments/model/AddSSOUserAPIResponseTest.java src/test/java/com/fastcomments/model/AdjustCommentVotesParamsTest.java src/test/java/com/fastcomments/model/AdjustVotesResponseTest.java -src/test/java/com/fastcomments/model/AggregateQuestionResultsResponse1Test.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 @@ -1177,14 +820,11 @@ 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/BlockFromCommentPublicResponseTest.java src/test/java/com/fastcomments/model/BlockSuccessTest.java -src/test/java/com/fastcomments/model/BlockUserFromCommentResponseTest.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/BulkAggregateQuestionResultsRequestTest.java -src/test/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1Test.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 @@ -1194,11 +834,8 @@ 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/ChangeTicketStateBodyTest.java -src/test/java/com/fastcomments/model/ChangeTicketStateResponse1Test.java src/test/java/com/fastcomments/model/ChangeTicketStateResponseTest.java src/test/java/com/fastcomments/model/CheckBlockedCommentsResponseTest.java -src/test/java/com/fastcomments/model/CheckedCommentsForBlockedResponseTest.java -src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponseTest.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 @@ -1218,75 +855,40 @@ 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/CreateCommentPublicResponseTest.java src/test/java/com/fastcomments/model/CreateEmailTemplateBodyTest.java -src/test/java/com/fastcomments/model/CreateEmailTemplateResponse1Test.java src/test/java/com/fastcomments/model/CreateEmailTemplateResponseTest.java src/test/java/com/fastcomments/model/CreateFeedPostParamsTest.java -src/test/java/com/fastcomments/model/CreateFeedPostPublicResponseTest.java -src/test/java/com/fastcomments/model/CreateFeedPostResponse1Test.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/CreateModeratorBodyTest.java -src/test/java/com/fastcomments/model/CreateModeratorResponse1Test.java src/test/java/com/fastcomments/model/CreateModeratorResponseTest.java src/test/java/com/fastcomments/model/CreateQuestionConfigBodyTest.java -src/test/java/com/fastcomments/model/CreateQuestionConfigResponse1Test.java src/test/java/com/fastcomments/model/CreateQuestionConfigResponseTest.java src/test/java/com/fastcomments/model/CreateQuestionResultBodyTest.java -src/test/java/com/fastcomments/model/CreateQuestionResultResponse1Test.java src/test/java/com/fastcomments/model/CreateQuestionResultResponseTest.java src/test/java/com/fastcomments/model/CreateSubscriptionAPIResponseTest.java src/test/java/com/fastcomments/model/CreateTenantBodyTest.java src/test/java/com/fastcomments/model/CreateTenantPackageBodyTest.java -src/test/java/com/fastcomments/model/CreateTenantPackageResponse1Test.java src/test/java/com/fastcomments/model/CreateTenantPackageResponseTest.java -src/test/java/com/fastcomments/model/CreateTenantResponse1Test.java src/test/java/com/fastcomments/model/CreateTenantResponseTest.java src/test/java/com/fastcomments/model/CreateTenantUserBodyTest.java -src/test/java/com/fastcomments/model/CreateTenantUserResponse1Test.java src/test/java/com/fastcomments/model/CreateTenantUserResponseTest.java src/test/java/com/fastcomments/model/CreateTicketBodyTest.java -src/test/java/com/fastcomments/model/CreateTicketResponse1Test.java src/test/java/com/fastcomments/model/CreateTicketResponseTest.java src/test/java/com/fastcomments/model/CreateUserBadgeParamsTest.java -src/test/java/com/fastcomments/model/CreateUserBadgeResponseTest.java -src/test/java/com/fastcomments/model/CreateV1PageReactResponseTest.java src/test/java/com/fastcomments/model/CreateV1PageReactTest.java -src/test/java/com/fastcomments/model/CreateV2PageReactResponseTest.java -src/test/java/com/fastcomments/model/CreateVoteResponseTest.java src/test/java/com/fastcomments/model/CustomConfigParametersTest.java src/test/java/com/fastcomments/model/CustomEmailTemplateTest.java src/test/java/com/fastcomments/model/DeleteCommentActionTest.java -src/test/java/com/fastcomments/model/DeleteCommentPublicResponseTest.java -src/test/java/com/fastcomments/model/DeleteCommentResponseTest.java src/test/java/com/fastcomments/model/DeleteCommentResultTest.java -src/test/java/com/fastcomments/model/DeleteCommentVoteResponseTest.java src/test/java/com/fastcomments/model/DeleteDomainConfigResponseTest.java -src/test/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponseTest.java -src/test/java/com/fastcomments/model/DeleteEmailTemplateResponseTest.java -src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOfTest.java src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java src/test/java/com/fastcomments/model/DeleteHashTagRequestBodyTest.java -src/test/java/com/fastcomments/model/DeleteHashTagResponseTest.java -src/test/java/com/fastcomments/model/DeleteModerationVoteResponseTest.java -src/test/java/com/fastcomments/model/DeleteModeratorResponseTest.java -src/test/java/com/fastcomments/model/DeleteNotificationCountResponseTest.java src/test/java/com/fastcomments/model/DeletePageAPIResponseTest.java -src/test/java/com/fastcomments/model/DeletePendingWebhookEventResponseTest.java -src/test/java/com/fastcomments/model/DeleteQuestionConfigResponseTest.java -src/test/java/com/fastcomments/model/DeleteQuestionResultResponseTest.java src/test/java/com/fastcomments/model/DeleteSSOUserAPIResponseTest.java src/test/java/com/fastcomments/model/DeleteSubscriptionAPIResponseTest.java -src/test/java/com/fastcomments/model/DeleteTenantPackageResponseTest.java -src/test/java/com/fastcomments/model/DeleteTenantResponseTest.java -src/test/java/com/fastcomments/model/DeleteTenantUserResponseTest.java -src/test/java/com/fastcomments/model/DeleteUserBadgeResponseTest.java -src/test/java/com/fastcomments/model/DeleteV1PageReactResponseTest.java -src/test/java/com/fastcomments/model/DeleteV2PageReactResponseTest.java -src/test/java/com/fastcomments/model/DeleteVoteResponseTest.java src/test/java/com/fastcomments/model/DeletedCommentResultCommentTest.java src/test/java/com/fastcomments/model/DigestEmailFrequencyTest.java src/test/java/com/fastcomments/model/EmailTemplateDefinitionTest.java @@ -1302,153 +904,71 @@ 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/FlagCommentPublicResponseTest.java -src/test/java/com/fastcomments/model/FlagCommentResponse1Test.java src/test/java/com/fastcomments/model/FlagCommentResponseTest.java -src/test/java/com/fastcomments/model/GetApiCommentsResponseTest.java -src/test/java/com/fastcomments/model/GetApiExportStatusResponseTest.java -src/test/java/com/fastcomments/model/GetApiIdsResponseTest.java -src/test/java/com/fastcomments/model/GetAuditLogsResponse1Test.java src/test/java/com/fastcomments/model/GetAuditLogsResponseTest.java -src/test/java/com/fastcomments/model/GetBanUsersFromCommentResponseTest.java src/test/java/com/fastcomments/model/GetBannedUsersCountResponseTest.java src/test/java/com/fastcomments/model/GetBannedUsersFromCommentResponseTest.java -src/test/java/com/fastcomments/model/GetCachedNotificationCountResponse1Test.java src/test/java/com/fastcomments/model/GetCachedNotificationCountResponseTest.java -src/test/java/com/fastcomments/model/GetCommentBanStatusResponse1Test.java src/test/java/com/fastcomments/model/GetCommentBanStatusResponseTest.java -src/test/java/com/fastcomments/model/GetCommentChildrenResponseTest.java -src/test/java/com/fastcomments/model/GetCommentResponseTest.java -src/test/java/com/fastcomments/model/GetCommentTextResponse1Test.java src/test/java/com/fastcomments/model/GetCommentTextResponseTest.java -src/test/java/com/fastcomments/model/GetCommentVoteUserNamesResponseTest.java src/test/java/com/fastcomments/model/GetCommentVoteUserNamesSuccessResponseTest.java -src/test/java/com/fastcomments/model/GetCommentsForUserResponse1Test.java src/test/java/com/fastcomments/model/GetCommentsForUserResponseTest.java -src/test/java/com/fastcomments/model/GetCommentsPublicResponseTest.java src/test/java/com/fastcomments/model/GetCommentsResponsePublicCommentTest.java -src/test/java/com/fastcomments/model/GetCommentsResponseTest.java src/test/java/com/fastcomments/model/GetCommentsResponseWithPresencePublicCommentTest.java -src/test/java/com/fastcomments/model/GetCountResponseTest.java -src/test/java/com/fastcomments/model/GetCountsResponseTest.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/GetEmailTemplateDefinitionsResponse1Test.java src/test/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponseTest.java -src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1Test.java src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponseTest.java -src/test/java/com/fastcomments/model/GetEmailTemplateResponse1Test.java src/test/java/com/fastcomments/model/GetEmailTemplateResponseTest.java -src/test/java/com/fastcomments/model/GetEmailTemplatesResponse1Test.java src/test/java/com/fastcomments/model/GetEmailTemplatesResponseTest.java -src/test/java/com/fastcomments/model/GetEventLogResponse1Test.java src/test/java/com/fastcomments/model/GetEventLogResponseTest.java -src/test/java/com/fastcomments/model/GetFeedPostsPublicResponseTest.java -src/test/java/com/fastcomments/model/GetFeedPostsResponse1Test.java src/test/java/com/fastcomments/model/GetFeedPostsResponseTest.java -src/test/java/com/fastcomments/model/GetFeedPostsStatsResponseTest.java -src/test/java/com/fastcomments/model/GetGifLargeResponseTest.java src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java src/test/java/com/fastcomments/model/GetGifsTrendingResponseTest.java -src/test/java/com/fastcomments/model/GetGlobalEventLogResponseTest.java -src/test/java/com/fastcomments/model/GetHashTagsResponse1Test.java src/test/java/com/fastcomments/model/GetHashTagsResponseTest.java -src/test/java/com/fastcomments/model/GetLogsResponseTest.java -src/test/java/com/fastcomments/model/GetManualBadgesForUserResponseTest.java -src/test/java/com/fastcomments/model/GetManualBadgesResponseTest.java -src/test/java/com/fastcomments/model/GetModerationCommentResponseTest.java -src/test/java/com/fastcomments/model/GetModerationCommentTextResponseTest.java -src/test/java/com/fastcomments/model/GetModeratorResponse1Test.java src/test/java/com/fastcomments/model/GetModeratorResponseTest.java -src/test/java/com/fastcomments/model/GetModeratorsResponse1Test.java src/test/java/com/fastcomments/model/GetModeratorsResponseTest.java src/test/java/com/fastcomments/model/GetMyNotificationsResponseTest.java -src/test/java/com/fastcomments/model/GetNotificationCountResponse1Test.java src/test/java/com/fastcomments/model/GetNotificationCountResponseTest.java -src/test/java/com/fastcomments/model/GetNotificationsResponse1Test.java src/test/java/com/fastcomments/model/GetNotificationsResponseTest.java -src/test/java/com/fastcomments/model/GetOfflineUsersResponseTest.java -src/test/java/com/fastcomments/model/GetOnlineUsersResponseTest.java src/test/java/com/fastcomments/model/GetPageByURLIdAPIResponseTest.java src/test/java/com/fastcomments/model/GetPagesAPIResponseTest.java -src/test/java/com/fastcomments/model/GetPagesPublicResponseTest.java -src/test/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1Test.java src/test/java/com/fastcomments/model/GetPendingWebhookEventCountResponseTest.java -src/test/java/com/fastcomments/model/GetPendingWebhookEventsResponse1Test.java src/test/java/com/fastcomments/model/GetPendingWebhookEventsResponseTest.java -src/test/java/com/fastcomments/model/GetPreBanSummaryResponseTest.java src/test/java/com/fastcomments/model/GetPublicFeedPostsResponseTest.java src/test/java/com/fastcomments/model/GetPublicPagesResponseTest.java -src/test/java/com/fastcomments/model/GetQuestionConfigResponse1Test.java src/test/java/com/fastcomments/model/GetQuestionConfigResponseTest.java -src/test/java/com/fastcomments/model/GetQuestionConfigsResponse1Test.java src/test/java/com/fastcomments/model/GetQuestionConfigsResponseTest.java -src/test/java/com/fastcomments/model/GetQuestionResultResponse1Test.java src/test/java/com/fastcomments/model/GetQuestionResultResponseTest.java -src/test/java/com/fastcomments/model/GetQuestionResultsResponse1Test.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/GetSSOUsersResponseTest.java -src/test/java/com/fastcomments/model/GetSearchCommentsSummaryResponseTest.java -src/test/java/com/fastcomments/model/GetSearchPagesResponseTest.java -src/test/java/com/fastcomments/model/GetSearchSitesResponseTest.java -src/test/java/com/fastcomments/model/GetSearchSuggestResponseTest.java -src/test/java/com/fastcomments/model/GetSearchUsersResponseTest.java src/test/java/com/fastcomments/model/GetSubscriptionsAPIResponseTest.java -src/test/java/com/fastcomments/model/GetTenantDailyUsagesResponse1Test.java src/test/java/com/fastcomments/model/GetTenantDailyUsagesResponseTest.java src/test/java/com/fastcomments/model/GetTenantManualBadgesResponseTest.java -src/test/java/com/fastcomments/model/GetTenantPackageResponse1Test.java src/test/java/com/fastcomments/model/GetTenantPackageResponseTest.java -src/test/java/com/fastcomments/model/GetTenantPackagesResponse1Test.java src/test/java/com/fastcomments/model/GetTenantPackagesResponseTest.java -src/test/java/com/fastcomments/model/GetTenantResponse1Test.java src/test/java/com/fastcomments/model/GetTenantResponseTest.java -src/test/java/com/fastcomments/model/GetTenantUserResponse1Test.java src/test/java/com/fastcomments/model/GetTenantUserResponseTest.java -src/test/java/com/fastcomments/model/GetTenantUsersResponse1Test.java src/test/java/com/fastcomments/model/GetTenantUsersResponseTest.java -src/test/java/com/fastcomments/model/GetTenantsResponse1Test.java src/test/java/com/fastcomments/model/GetTenantsResponseTest.java -src/test/java/com/fastcomments/model/GetTicketResponse1Test.java src/test/java/com/fastcomments/model/GetTicketResponseTest.java -src/test/java/com/fastcomments/model/GetTicketsResponse1Test.java src/test/java/com/fastcomments/model/GetTicketsResponseTest.java -src/test/java/com/fastcomments/model/GetTranslationsResponse1Test.java src/test/java/com/fastcomments/model/GetTranslationsResponseTest.java -src/test/java/com/fastcomments/model/GetTrustFactorResponseTest.java -src/test/java/com/fastcomments/model/GetUserBadgeProgressByIdResponseTest.java -src/test/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponseTest.java -src/test/java/com/fastcomments/model/GetUserBadgeProgressListResponseTest.java -src/test/java/com/fastcomments/model/GetUserBadgeResponseTest.java -src/test/java/com/fastcomments/model/GetUserBadgesResponseTest.java -src/test/java/com/fastcomments/model/GetUserBanPreferenceResponseTest.java -src/test/java/com/fastcomments/model/GetUserInternalProfileResponse1Test.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/GetUserNotificationCountResponse1Test.java src/test/java/com/fastcomments/model/GetUserNotificationCountResponseTest.java -src/test/java/com/fastcomments/model/GetUserNotificationsResponseTest.java -src/test/java/com/fastcomments/model/GetUserPresenceStatusesResponse1Test.java src/test/java/com/fastcomments/model/GetUserPresenceStatusesResponseTest.java -src/test/java/com/fastcomments/model/GetUserReactsPublicResponseTest.java -src/test/java/com/fastcomments/model/GetUserResponse1Test.java src/test/java/com/fastcomments/model/GetUserResponseTest.java src/test/java/com/fastcomments/model/GetUserTrustFactorResponseTest.java -src/test/java/com/fastcomments/model/GetUsersInfoResponseTest.java -src/test/java/com/fastcomments/model/GetV1PageLikesResponseTest.java src/test/java/com/fastcomments/model/GetV1PageLikesTest.java -src/test/java/com/fastcomments/model/GetV2PageReactUsersResponse1Test.java src/test/java/com/fastcomments/model/GetV2PageReactUsersResponseTest.java -src/test/java/com/fastcomments/model/GetV2PageReactsResponseTest.java src/test/java/com/fastcomments/model/GetV2PageReactsTest.java -src/test/java/com/fastcomments/model/GetVotesForUserResponse1Test.java src/test/java/com/fastcomments/model/GetVotesForUserResponseTest.java -src/test/java/com/fastcomments/model/GetVotesResponse1Test.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 @@ -1464,7 +984,6 @@ 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/LockCommentResponseTest.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 @@ -1498,26 +1017,10 @@ 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/PatchDomainConfigResponseTest.java -src/test/java/com/fastcomments/model/PatchHashTagResponseTest.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/PinCommentResponseTest.java -src/test/java/com/fastcomments/model/PostAdjustCommentVotesResponseTest.java -src/test/java/com/fastcomments/model/PostApiExportResponseTest.java -src/test/java/com/fastcomments/model/PostBanUserFromCommentResponseTest.java -src/test/java/com/fastcomments/model/PostBanUserUndoResponseTest.java -src/test/java/com/fastcomments/model/PostBulkPreBanSummaryResponseTest.java -src/test/java/com/fastcomments/model/PostCommentsByIdsResponseTest.java -src/test/java/com/fastcomments/model/PostFlagCommentResponseTest.java src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java -src/test/java/com/fastcomments/model/PostRestoreDeletedCommentResponseTest.java -src/test/java/com/fastcomments/model/PostSetCommentApprovalStatusResponseTest.java -src/test/java/com/fastcomments/model/PostSetCommentReviewStatusResponseTest.java -src/test/java/com/fastcomments/model/PostSetCommentSpamStatusResponseTest.java -src/test/java/com/fastcomments/model/PostSetCommentTextResponseTest.java -src/test/java/com/fastcomments/model/PostUnFlagCommentResponseTest.java -src/test/java/com/fastcomments/model/PostVoteResponseTest.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 @@ -1531,11 +1034,7 @@ 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/PutAwardBadgeResponseTest.java -src/test/java/com/fastcomments/model/PutCloseThreadResponseTest.java src/test/java/com/fastcomments/model/PutDomainConfigResponseTest.java -src/test/java/com/fastcomments/model/PutRemoveBadgeResponseTest.java -src/test/java/com/fastcomments/model/PutReopenThreadResponseTest.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 @@ -1548,42 +1047,30 @@ 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/ReactFeedPostPublicResponseTest.java src/test/java/com/fastcomments/model/ReactFeedPostResponseTest.java src/test/java/com/fastcomments/model/RecordStringBeforeStringOrNullAfterStringOrNullValueTest.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/RenderEmailTemplateResponse1Test.java src/test/java/com/fastcomments/model/RenderEmailTemplateResponseTest.java src/test/java/com/fastcomments/model/RenderableUserNotificationTest.java 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/ReplaceTenantPackageResponseTest.java src/test/java/com/fastcomments/model/ReplaceTenantUserBodyTest.java -src/test/java/com/fastcomments/model/ReplaceTenantUserResponseTest.java -src/test/java/com/fastcomments/model/ResetUserNotificationCountResponseTest.java -src/test/java/com/fastcomments/model/ResetUserNotificationsResponse1Test.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/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/SearchUsersResponse1Test.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/SendInviteResponseTest.java -src/test/java/com/fastcomments/model/SendLoginLinkResponseTest.java src/test/java/com/fastcomments/model/SetCommentApprovedResponseTest.java src/test/java/com/fastcomments/model/SetCommentTextParamsTest.java -src/test/java/com/fastcomments/model/SetCommentTextResponse1Test.java src/test/java/com/fastcomments/model/SetCommentTextResponseTest.java src/test/java/com/fastcomments/model/SetCommentTextResultTest.java -src/test/java/com/fastcomments/model/SetTrustFactorResponseTest.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 @@ -1592,43 +1079,26 @@ 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/UnBlockCommentPublicResponseTest.java src/test/java/com/fastcomments/model/UnBlockFromCommentParamsTest.java -src/test/java/com/fastcomments/model/UnBlockUserFromCommentResponseTest.java -src/test/java/com/fastcomments/model/UnFlagCommentResponseTest.java -src/test/java/com/fastcomments/model/UnLockCommentResponseTest.java -src/test/java/com/fastcomments/model/UnPinCommentResponseTest.java src/test/java/com/fastcomments/model/UnblockSuccessTest.java src/test/java/com/fastcomments/model/UpdatableCommentParamsTest.java src/test/java/com/fastcomments/model/UpdateAPIPageDataTest.java src/test/java/com/fastcomments/model/UpdateAPISSOUserDataTest.java src/test/java/com/fastcomments/model/UpdateAPIUserSubscriptionDataTest.java -src/test/java/com/fastcomments/model/UpdateCommentResponseTest.java src/test/java/com/fastcomments/model/UpdateDomainConfigParamsTest.java src/test/java/com/fastcomments/model/UpdateEmailTemplateBodyTest.java -src/test/java/com/fastcomments/model/UpdateEmailTemplateResponseTest.java src/test/java/com/fastcomments/model/UpdateFeedPostParamsTest.java -src/test/java/com/fastcomments/model/UpdateFeedPostPublicResponseTest.java -src/test/java/com/fastcomments/model/UpdateFeedPostResponseTest.java src/test/java/com/fastcomments/model/UpdateHashTagBodyTest.java src/test/java/com/fastcomments/model/UpdateHashTagResponseTest.java src/test/java/com/fastcomments/model/UpdateModeratorBodyTest.java -src/test/java/com/fastcomments/model/UpdateModeratorResponseTest.java src/test/java/com/fastcomments/model/UpdateNotificationBodyTest.java -src/test/java/com/fastcomments/model/UpdateNotificationResponseTest.java src/test/java/com/fastcomments/model/UpdateQuestionConfigBodyTest.java -src/test/java/com/fastcomments/model/UpdateQuestionConfigResponseTest.java src/test/java/com/fastcomments/model/UpdateQuestionResultBodyTest.java -src/test/java/com/fastcomments/model/UpdateQuestionResultResponseTest.java 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/UpdateTenantPackageResponseTest.java -src/test/java/com/fastcomments/model/UpdateTenantResponseTest.java src/test/java/com/fastcomments/model/UpdateTenantUserBodyTest.java -src/test/java/com/fastcomments/model/UpdateTenantUserResponseTest.java src/test/java/com/fastcomments/model/UpdateUserBadgeParamsTest.java -src/test/java/com/fastcomments/model/UpdateUserBadgeResponseTest.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 @@ -1647,7 +1117,6 @@ 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/VoteCommentResponseTest.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/README.md b/client/README.md index 8599819f..40a5c479 100644 --- a/client/README.md +++ b/client/README.md @@ -371,14 +371,11 @@ Class | Method | HTTP request | Description - [AddDomainConfigParams](docs/AddDomainConfigParams.md) - [AddDomainConfigResponse](docs/AddDomainConfigResponse.md) - [AddDomainConfigResponseAnyOf](docs/AddDomainConfigResponseAnyOf.md) - - [AddHashTagResponse](docs/AddHashTagResponse.md) - - [AddHashTagsBulkResponse](docs/AddHashTagsBulkResponse.md) - [AddPageAPIResponse](docs/AddPageAPIResponse.md) - [AddSSOUserAPIResponse](docs/AddSSOUserAPIResponse.md) - [AdjustCommentVotesParams](docs/AdjustCommentVotesParams.md) - [AdjustVotesResponse](docs/AdjustVotesResponse.md) - [AggregateQuestionResultsResponse](docs/AggregateQuestionResultsResponse.md) - - [AggregateQuestionResultsResponse1](docs/AggregateQuestionResultsResponse1.md) - [AggregateResponse](docs/AggregateResponse.md) - [AggregateTimeBucket](docs/AggregateTimeBucket.md) - [AggregationAPIError](docs/AggregationAPIError.md) @@ -398,15 +395,12 @@ Class | Method | HTTP request | Description - [BannedUserMatchType](docs/BannedUserMatchType.md) - [BillingInfo](docs/BillingInfo.md) - [BlockFromCommentParams](docs/BlockFromCommentParams.md) - - [BlockFromCommentPublicResponse](docs/BlockFromCommentPublicResponse.md) - [BlockSuccess](docs/BlockSuccess.md) - - [BlockUserFromCommentResponse](docs/BlockUserFromCommentResponse.md) - [BuildModerationFilterParams](docs/BuildModerationFilterParams.md) - [BuildModerationFilterResponse](docs/BuildModerationFilterResponse.md) - [BulkAggregateQuestionItem](docs/BulkAggregateQuestionItem.md) - [BulkAggregateQuestionResultsRequest](docs/BulkAggregateQuestionResultsRequest.md) - [BulkAggregateQuestionResultsResponse](docs/BulkAggregateQuestionResultsResponse.md) - - [BulkAggregateQuestionResultsResponse1](docs/BulkAggregateQuestionResultsResponse1.md) - [BulkCreateHashTagsBody](docs/BulkCreateHashTagsBody.md) - [BulkCreateHashTagsBodyTagsInner](docs/BulkCreateHashTagsBodyTagsInner.md) - [BulkCreateHashTagsResponse](docs/BulkCreateHashTagsResponse.md) @@ -416,10 +410,7 @@ Class | Method | HTTP request | Description - [ChangeCommentPinStatusResponse](docs/ChangeCommentPinStatusResponse.md) - [ChangeTicketStateBody](docs/ChangeTicketStateBody.md) - [ChangeTicketStateResponse](docs/ChangeTicketStateResponse.md) - - [ChangeTicketStateResponse1](docs/ChangeTicketStateResponse1.md) - [CheckBlockedCommentsResponse](docs/CheckBlockedCommentsResponse.md) - - [CheckedCommentsForBlockedResponse](docs/CheckedCommentsForBlockedResponse.md) - - [CombineCommentsWithQuestionResultsResponse](docs/CombineCommentsWithQuestionResultsResponse.md) - [CombineQuestionResultsWithCommentsResponse](docs/CombineQuestionResultsWithCommentsResponse.md) - [CommentData](docs/CommentData.md) - [CommentHTMLRenderingMode](docs/CommentHTMLRenderingMode.md) @@ -439,75 +430,40 @@ Class | Method | HTTP request | Description - [CreateAPISSOUserData](docs/CreateAPISSOUserData.md) - [CreateAPIUserSubscriptionData](docs/CreateAPIUserSubscriptionData.md) - [CreateCommentParams](docs/CreateCommentParams.md) - - [CreateCommentPublicResponse](docs/CreateCommentPublicResponse.md) - [CreateEmailTemplateBody](docs/CreateEmailTemplateBody.md) - [CreateEmailTemplateResponse](docs/CreateEmailTemplateResponse.md) - - [CreateEmailTemplateResponse1](docs/CreateEmailTemplateResponse1.md) - [CreateFeedPostParams](docs/CreateFeedPostParams.md) - - [CreateFeedPostPublicResponse](docs/CreateFeedPostPublicResponse.md) - [CreateFeedPostResponse](docs/CreateFeedPostResponse.md) - - [CreateFeedPostResponse1](docs/CreateFeedPostResponse1.md) - [CreateFeedPostsResponse](docs/CreateFeedPostsResponse.md) - [CreateHashTagBody](docs/CreateHashTagBody.md) - [CreateHashTagResponse](docs/CreateHashTagResponse.md) - [CreateModeratorBody](docs/CreateModeratorBody.md) - [CreateModeratorResponse](docs/CreateModeratorResponse.md) - - [CreateModeratorResponse1](docs/CreateModeratorResponse1.md) - [CreateQuestionConfigBody](docs/CreateQuestionConfigBody.md) - [CreateQuestionConfigResponse](docs/CreateQuestionConfigResponse.md) - - [CreateQuestionConfigResponse1](docs/CreateQuestionConfigResponse1.md) - [CreateQuestionResultBody](docs/CreateQuestionResultBody.md) - [CreateQuestionResultResponse](docs/CreateQuestionResultResponse.md) - - [CreateQuestionResultResponse1](docs/CreateQuestionResultResponse1.md) - [CreateSubscriptionAPIResponse](docs/CreateSubscriptionAPIResponse.md) - [CreateTenantBody](docs/CreateTenantBody.md) - [CreateTenantPackageBody](docs/CreateTenantPackageBody.md) - [CreateTenantPackageResponse](docs/CreateTenantPackageResponse.md) - - [CreateTenantPackageResponse1](docs/CreateTenantPackageResponse1.md) - [CreateTenantResponse](docs/CreateTenantResponse.md) - - [CreateTenantResponse1](docs/CreateTenantResponse1.md) - [CreateTenantUserBody](docs/CreateTenantUserBody.md) - [CreateTenantUserResponse](docs/CreateTenantUserResponse.md) - - [CreateTenantUserResponse1](docs/CreateTenantUserResponse1.md) - [CreateTicketBody](docs/CreateTicketBody.md) - [CreateTicketResponse](docs/CreateTicketResponse.md) - - [CreateTicketResponse1](docs/CreateTicketResponse1.md) - [CreateUserBadgeParams](docs/CreateUserBadgeParams.md) - - [CreateUserBadgeResponse](docs/CreateUserBadgeResponse.md) - [CreateV1PageReact](docs/CreateV1PageReact.md) - - [CreateV1PageReactResponse](docs/CreateV1PageReactResponse.md) - - [CreateV2PageReactResponse](docs/CreateV2PageReactResponse.md) - - [CreateVoteResponse](docs/CreateVoteResponse.md) - [CustomConfigParameters](docs/CustomConfigParameters.md) - [CustomEmailTemplate](docs/CustomEmailTemplate.md) - [DeleteCommentAction](docs/DeleteCommentAction.md) - - [DeleteCommentPublicResponse](docs/DeleteCommentPublicResponse.md) - - [DeleteCommentResponse](docs/DeleteCommentResponse.md) - [DeleteCommentResult](docs/DeleteCommentResult.md) - - [DeleteCommentVoteResponse](docs/DeleteCommentVoteResponse.md) - [DeleteDomainConfigResponse](docs/DeleteDomainConfigResponse.md) - - [DeleteEmailTemplateRenderErrorResponse](docs/DeleteEmailTemplateRenderErrorResponse.md) - - [DeleteEmailTemplateResponse](docs/DeleteEmailTemplateResponse.md) - [DeleteFeedPostPublicResponse](docs/DeleteFeedPostPublicResponse.md) - - [DeleteFeedPostPublicResponseAnyOf](docs/DeleteFeedPostPublicResponseAnyOf.md) - [DeleteHashTagRequestBody](docs/DeleteHashTagRequestBody.md) - - [DeleteHashTagResponse](docs/DeleteHashTagResponse.md) - - [DeleteModerationVoteResponse](docs/DeleteModerationVoteResponse.md) - - [DeleteModeratorResponse](docs/DeleteModeratorResponse.md) - - [DeleteNotificationCountResponse](docs/DeleteNotificationCountResponse.md) - [DeletePageAPIResponse](docs/DeletePageAPIResponse.md) - - [DeletePendingWebhookEventResponse](docs/DeletePendingWebhookEventResponse.md) - - [DeleteQuestionConfigResponse](docs/DeleteQuestionConfigResponse.md) - - [DeleteQuestionResultResponse](docs/DeleteQuestionResultResponse.md) - [DeleteSSOUserAPIResponse](docs/DeleteSSOUserAPIResponse.md) - [DeleteSubscriptionAPIResponse](docs/DeleteSubscriptionAPIResponse.md) - - [DeleteTenantPackageResponse](docs/DeleteTenantPackageResponse.md) - - [DeleteTenantResponse](docs/DeleteTenantResponse.md) - - [DeleteTenantUserResponse](docs/DeleteTenantUserResponse.md) - - [DeleteUserBadgeResponse](docs/DeleteUserBadgeResponse.md) - - [DeleteV1PageReactResponse](docs/DeleteV1PageReactResponse.md) - - [DeleteV2PageReactResponse](docs/DeleteV2PageReactResponse.md) - - [DeleteVoteResponse](docs/DeleteVoteResponse.md) - [DeletedCommentResultComment](docs/DeletedCommentResultComment.md) - [DigestEmailFrequency](docs/DigestEmailFrequency.md) - [EmailTemplateDefinition](docs/EmailTemplateDefinition.md) @@ -523,154 +479,72 @@ Class | Method | HTTP request | Description - [FeedPostsStatsResponse](docs/FeedPostsStatsResponse.md) - [FindCommentsByRangeItem](docs/FindCommentsByRangeItem.md) - [FindCommentsByRangeResponse](docs/FindCommentsByRangeResponse.md) - - [FlagCommentPublicResponse](docs/FlagCommentPublicResponse.md) - [FlagCommentResponse](docs/FlagCommentResponse.md) - - [FlagCommentResponse1](docs/FlagCommentResponse1.md) - - [GetApiCommentsResponse](docs/GetApiCommentsResponse.md) - - [GetApiExportStatusResponse](docs/GetApiExportStatusResponse.md) - - [GetApiIdsResponse](docs/GetApiIdsResponse.md) - [GetAuditLogsResponse](docs/GetAuditLogsResponse.md) - - [GetAuditLogsResponse1](docs/GetAuditLogsResponse1.md) - - [GetBanUsersFromCommentResponse](docs/GetBanUsersFromCommentResponse.md) - [GetBannedUsersCountResponse](docs/GetBannedUsersCountResponse.md) - [GetBannedUsersFromCommentResponse](docs/GetBannedUsersFromCommentResponse.md) - [GetCachedNotificationCountResponse](docs/GetCachedNotificationCountResponse.md) - - [GetCachedNotificationCountResponse1](docs/GetCachedNotificationCountResponse1.md) - [GetCommentBanStatusResponse](docs/GetCommentBanStatusResponse.md) - - [GetCommentBanStatusResponse1](docs/GetCommentBanStatusResponse1.md) - - [GetCommentChildrenResponse](docs/GetCommentChildrenResponse.md) - - [GetCommentResponse](docs/GetCommentResponse.md) - [GetCommentTextResponse](docs/GetCommentTextResponse.md) - - [GetCommentTextResponse1](docs/GetCommentTextResponse1.md) - - [GetCommentVoteUserNamesResponse](docs/GetCommentVoteUserNamesResponse.md) - [GetCommentVoteUserNamesSuccessResponse](docs/GetCommentVoteUserNamesSuccessResponse.md) - [GetCommentsForUserResponse](docs/GetCommentsForUserResponse.md) - - [GetCommentsForUserResponse1](docs/GetCommentsForUserResponse1.md) - - [GetCommentsPublicResponse](docs/GetCommentsPublicResponse.md) - - [GetCommentsResponse](docs/GetCommentsResponse.md) - [GetCommentsResponsePublicComment](docs/GetCommentsResponsePublicComment.md) - [GetCommentsResponseWithPresencePublicComment](docs/GetCommentsResponseWithPresencePublicComment.md) - - [GetCountResponse](docs/GetCountResponse.md) - - [GetCountsResponse](docs/GetCountsResponse.md) - [GetDomainConfigResponse](docs/GetDomainConfigResponse.md) - [GetDomainConfigsResponse](docs/GetDomainConfigsResponse.md) - [GetDomainConfigsResponseAnyOf](docs/GetDomainConfigsResponseAnyOf.md) - [GetDomainConfigsResponseAnyOf1](docs/GetDomainConfigsResponseAnyOf1.md) - [GetEmailTemplateDefinitionsResponse](docs/GetEmailTemplateDefinitionsResponse.md) - - [GetEmailTemplateDefinitionsResponse1](docs/GetEmailTemplateDefinitionsResponse1.md) - [GetEmailTemplateRenderErrorsResponse](docs/GetEmailTemplateRenderErrorsResponse.md) - - [GetEmailTemplateRenderErrorsResponse1](docs/GetEmailTemplateRenderErrorsResponse1.md) - [GetEmailTemplateResponse](docs/GetEmailTemplateResponse.md) - - [GetEmailTemplateResponse1](docs/GetEmailTemplateResponse1.md) - [GetEmailTemplatesResponse](docs/GetEmailTemplatesResponse.md) - - [GetEmailTemplatesResponse1](docs/GetEmailTemplatesResponse1.md) - [GetEventLogResponse](docs/GetEventLogResponse.md) - - [GetEventLogResponse1](docs/GetEventLogResponse1.md) - - [GetFeedPostsPublicResponse](docs/GetFeedPostsPublicResponse.md) - [GetFeedPostsResponse](docs/GetFeedPostsResponse.md) - - [GetFeedPostsResponse1](docs/GetFeedPostsResponse1.md) - - [GetFeedPostsStatsResponse](docs/GetFeedPostsStatsResponse.md) - - [GetGifLargeResponse](docs/GetGifLargeResponse.md) - [GetGifsSearchResponse](docs/GetGifsSearchResponse.md) - [GetGifsTrendingResponse](docs/GetGifsTrendingResponse.md) - - [GetGlobalEventLogResponse](docs/GetGlobalEventLogResponse.md) - [GetHashTagsResponse](docs/GetHashTagsResponse.md) - - [GetHashTagsResponse1](docs/GetHashTagsResponse1.md) - - [GetLogsResponse](docs/GetLogsResponse.md) - - [GetManualBadgesForUserResponse](docs/GetManualBadgesForUserResponse.md) - - [GetManualBadgesResponse](docs/GetManualBadgesResponse.md) - - [GetModerationCommentResponse](docs/GetModerationCommentResponse.md) - - [GetModerationCommentTextResponse](docs/GetModerationCommentTextResponse.md) - [GetModeratorResponse](docs/GetModeratorResponse.md) - - [GetModeratorResponse1](docs/GetModeratorResponse1.md) - [GetModeratorsResponse](docs/GetModeratorsResponse.md) - - [GetModeratorsResponse1](docs/GetModeratorsResponse1.md) - [GetMyNotificationsResponse](docs/GetMyNotificationsResponse.md) - [GetNotificationCountResponse](docs/GetNotificationCountResponse.md) - - [GetNotificationCountResponse1](docs/GetNotificationCountResponse1.md) - [GetNotificationsResponse](docs/GetNotificationsResponse.md) - - [GetNotificationsResponse1](docs/GetNotificationsResponse1.md) - - [GetOfflineUsersResponse](docs/GetOfflineUsersResponse.md) - - [GetOnlineUsersResponse](docs/GetOnlineUsersResponse.md) - [GetPageByURLIdAPIResponse](docs/GetPageByURLIdAPIResponse.md) - [GetPagesAPIResponse](docs/GetPagesAPIResponse.md) - - [GetPagesPublicResponse](docs/GetPagesPublicResponse.md) - [GetPendingWebhookEventCountResponse](docs/GetPendingWebhookEventCountResponse.md) - - [GetPendingWebhookEventCountResponse1](docs/GetPendingWebhookEventCountResponse1.md) - [GetPendingWebhookEventsResponse](docs/GetPendingWebhookEventsResponse.md) - - [GetPendingWebhookEventsResponse1](docs/GetPendingWebhookEventsResponse1.md) - - [GetPreBanSummaryResponse](docs/GetPreBanSummaryResponse.md) - [GetPublicFeedPostsResponse](docs/GetPublicFeedPostsResponse.md) - [GetPublicPagesResponse](docs/GetPublicPagesResponse.md) - [GetQuestionConfigResponse](docs/GetQuestionConfigResponse.md) - - [GetQuestionConfigResponse1](docs/GetQuestionConfigResponse1.md) - [GetQuestionConfigsResponse](docs/GetQuestionConfigsResponse.md) - - [GetQuestionConfigsResponse1](docs/GetQuestionConfigsResponse1.md) - [GetQuestionResultResponse](docs/GetQuestionResultResponse.md) - - [GetQuestionResultResponse1](docs/GetQuestionResultResponse1.md) - [GetQuestionResultsResponse](docs/GetQuestionResultsResponse.md) - - [GetQuestionResultsResponse1](docs/GetQuestionResultsResponse1.md) - [GetSSOUserByEmailAPIResponse](docs/GetSSOUserByEmailAPIResponse.md) - [GetSSOUserByIdAPIResponse](docs/GetSSOUserByIdAPIResponse.md) - [GetSSOUsersResponse](docs/GetSSOUsersResponse.md) - - [GetSearchCommentsSummaryResponse](docs/GetSearchCommentsSummaryResponse.md) - - [GetSearchPagesResponse](docs/GetSearchPagesResponse.md) - - [GetSearchSitesResponse](docs/GetSearchSitesResponse.md) - - [GetSearchSuggestResponse](docs/GetSearchSuggestResponse.md) - - [GetSearchUsersResponse](docs/GetSearchUsersResponse.md) - [GetSubscriptionsAPIResponse](docs/GetSubscriptionsAPIResponse.md) - [GetTenantDailyUsagesResponse](docs/GetTenantDailyUsagesResponse.md) - - [GetTenantDailyUsagesResponse1](docs/GetTenantDailyUsagesResponse1.md) - [GetTenantManualBadgesResponse](docs/GetTenantManualBadgesResponse.md) - [GetTenantPackageResponse](docs/GetTenantPackageResponse.md) - - [GetTenantPackageResponse1](docs/GetTenantPackageResponse1.md) - [GetTenantPackagesResponse](docs/GetTenantPackagesResponse.md) - - [GetTenantPackagesResponse1](docs/GetTenantPackagesResponse1.md) - [GetTenantResponse](docs/GetTenantResponse.md) - - [GetTenantResponse1](docs/GetTenantResponse1.md) - [GetTenantUserResponse](docs/GetTenantUserResponse.md) - - [GetTenantUserResponse1](docs/GetTenantUserResponse1.md) - [GetTenantUsersResponse](docs/GetTenantUsersResponse.md) - - [GetTenantUsersResponse1](docs/GetTenantUsersResponse1.md) - [GetTenantsResponse](docs/GetTenantsResponse.md) - - [GetTenantsResponse1](docs/GetTenantsResponse1.md) - [GetTicketResponse](docs/GetTicketResponse.md) - - [GetTicketResponse1](docs/GetTicketResponse1.md) - [GetTicketsResponse](docs/GetTicketsResponse.md) - - [GetTicketsResponse1](docs/GetTicketsResponse1.md) - [GetTranslationsResponse](docs/GetTranslationsResponse.md) - - [GetTranslationsResponse1](docs/GetTranslationsResponse1.md) - - [GetTrustFactorResponse](docs/GetTrustFactorResponse.md) - - [GetUserBadgeProgressByIdResponse](docs/GetUserBadgeProgressByIdResponse.md) - - [GetUserBadgeProgressByUserIdResponse](docs/GetUserBadgeProgressByUserIdResponse.md) - - [GetUserBadgeProgressListResponse](docs/GetUserBadgeProgressListResponse.md) - - [GetUserBadgeResponse](docs/GetUserBadgeResponse.md) - - [GetUserBadgesResponse](docs/GetUserBadgesResponse.md) - - [GetUserBanPreferenceResponse](docs/GetUserBanPreferenceResponse.md) - [GetUserInternalProfileResponse](docs/GetUserInternalProfileResponse.md) - - [GetUserInternalProfileResponse1](docs/GetUserInternalProfileResponse1.md) - [GetUserInternalProfileResponseProfile](docs/GetUserInternalProfileResponseProfile.md) - [GetUserManualBadgesResponse](docs/GetUserManualBadgesResponse.md) - [GetUserNotificationCountResponse](docs/GetUserNotificationCountResponse.md) - - [GetUserNotificationCountResponse1](docs/GetUserNotificationCountResponse1.md) - - [GetUserNotificationsResponse](docs/GetUserNotificationsResponse.md) - [GetUserPresenceStatusesResponse](docs/GetUserPresenceStatusesResponse.md) - - [GetUserPresenceStatusesResponse1](docs/GetUserPresenceStatusesResponse1.md) - - [GetUserReactsPublicResponse](docs/GetUserReactsPublicResponse.md) - [GetUserResponse](docs/GetUserResponse.md) - - [GetUserResponse1](docs/GetUserResponse1.md) - [GetUserTrustFactorResponse](docs/GetUserTrustFactorResponse.md) - - [GetUsersInfoResponse](docs/GetUsersInfoResponse.md) - [GetV1PageLikes](docs/GetV1PageLikes.md) - - [GetV1PageLikesResponse](docs/GetV1PageLikesResponse.md) - [GetV2PageReactUsersResponse](docs/GetV2PageReactUsersResponse.md) - - [GetV2PageReactUsersResponse1](docs/GetV2PageReactUsersResponse1.md) - [GetV2PageReacts](docs/GetV2PageReacts.md) - - [GetV2PageReactsResponse](docs/GetV2PageReactsResponse.md) - [GetVotesForUserResponse](docs/GetVotesForUserResponse.md) - - [GetVotesForUserResponse1](docs/GetVotesForUserResponse1.md) - [GetVotesResponse](docs/GetVotesResponse.md) - - [GetVotesResponse1](docs/GetVotesResponse1.md) - [GifGetLargeResponse](docs/GifGetLargeResponse.md) - [GifRating](docs/GifRating.md) - [GifSearchInternalError](docs/GifSearchInternalError.md) @@ -685,7 +559,6 @@ Class | Method | HTTP request | Description - [LiveEvent](docs/LiveEvent.md) - [LiveEventExtraInfo](docs/LiveEventExtraInfo.md) - [LiveEventType](docs/LiveEventType.md) - - [LockCommentResponse](docs/LockCommentResponse.md) - [MediaAsset](docs/MediaAsset.md) - [MentionAutoCompleteMode](docs/MentionAutoCompleteMode.md) - [MetaItem](docs/MetaItem.md) @@ -719,26 +592,10 @@ Class | Method | HTTP request | Description - [PagesSortBy](docs/PagesSortBy.md) - [PatchDomainConfigParams](docs/PatchDomainConfigParams.md) - [PatchDomainConfigResponse](docs/PatchDomainConfigResponse.md) - - [PatchHashTagResponse](docs/PatchHashTagResponse.md) - [PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [PinCommentResponse](docs/PinCommentResponse.md) - - [PostAdjustCommentVotesResponse](docs/PostAdjustCommentVotesResponse.md) - - [PostApiExportResponse](docs/PostApiExportResponse.md) - - [PostBanUserFromCommentResponse](docs/PostBanUserFromCommentResponse.md) - - [PostBanUserUndoResponse](docs/PostBanUserUndoResponse.md) - - [PostBulkPreBanSummaryResponse](docs/PostBulkPreBanSummaryResponse.md) - - [PostCommentsByIdsResponse](docs/PostCommentsByIdsResponse.md) - - [PostFlagCommentResponse](docs/PostFlagCommentResponse.md) - [PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) - - [PostRestoreDeletedCommentResponse](docs/PostRestoreDeletedCommentResponse.md) - - [PostSetCommentApprovalStatusResponse](docs/PostSetCommentApprovalStatusResponse.md) - - [PostSetCommentReviewStatusResponse](docs/PostSetCommentReviewStatusResponse.md) - - [PostSetCommentSpamStatusResponse](docs/PostSetCommentSpamStatusResponse.md) - - [PostSetCommentTextResponse](docs/PostSetCommentTextResponse.md) - - [PostUnFlagCommentResponse](docs/PostUnFlagCommentResponse.md) - - [PostVoteResponse](docs/PostVoteResponse.md) - [PreBanSummary](docs/PreBanSummary.md) - [PubSubComment](docs/PubSubComment.md) - [PubSubCommentBase](docs/PubSubCommentBase.md) @@ -752,11 +609,7 @@ Class | Method | HTTP request | Description - [PublicFeedPostsResponse](docs/PublicFeedPostsResponse.md) - [PublicPage](docs/PublicPage.md) - [PublicVote](docs/PublicVote.md) - - [PutAwardBadgeResponse](docs/PutAwardBadgeResponse.md) - - [PutCloseThreadResponse](docs/PutCloseThreadResponse.md) - [PutDomainConfigResponse](docs/PutDomainConfigResponse.md) - - [PutRemoveBadgeResponse](docs/PutRemoveBadgeResponse.md) - - [PutReopenThreadResponse](docs/PutReopenThreadResponse.md) - [PutSSOUserAPIResponse](docs/PutSSOUserAPIResponse.md) - [QueryPredicate](docs/QueryPredicate.md) - [QueryPredicateValue](docs/QueryPredicateValue.md) @@ -769,42 +622,30 @@ Class | Method | HTTP request | Description - [QuestionSubQuestionVisibility](docs/QuestionSubQuestionVisibility.md) - [QuestionWhenSave](docs/QuestionWhenSave.md) - [ReactBodyParams](docs/ReactBodyParams.md) - - [ReactFeedPostPublicResponse](docs/ReactFeedPostPublicResponse.md) - [ReactFeedPostResponse](docs/ReactFeedPostResponse.md) - [RecordStringBeforeStringOrNullAfterStringOrNullValue](docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - [RemoveCommentActionResponse](docs/RemoveCommentActionResponse.md) - [RemoveUserBadgeResponse](docs/RemoveUserBadgeResponse.md) - [RenderEmailTemplateBody](docs/RenderEmailTemplateBody.md) - [RenderEmailTemplateResponse](docs/RenderEmailTemplateResponse.md) - - [RenderEmailTemplateResponse1](docs/RenderEmailTemplateResponse1.md) - [RenderableUserNotification](docs/RenderableUserNotification.md) - [RepeatCommentCheckIgnoredReason](docs/RepeatCommentCheckIgnoredReason.md) - [RepeatCommentHandlingAction](docs/RepeatCommentHandlingAction.md) - [ReplaceTenantPackageBody](docs/ReplaceTenantPackageBody.md) - - [ReplaceTenantPackageResponse](docs/ReplaceTenantPackageResponse.md) - [ReplaceTenantUserBody](docs/ReplaceTenantUserBody.md) - - [ReplaceTenantUserResponse](docs/ReplaceTenantUserResponse.md) - - [ResetUserNotificationCountResponse](docs/ResetUserNotificationCountResponse.md) - [ResetUserNotificationsResponse](docs/ResetUserNotificationsResponse.md) - - [ResetUserNotificationsResponse1](docs/ResetUserNotificationsResponse1.md) - [SORTDIR](docs/SORTDIR.md) - [SSOSecurityLevel](docs/SSOSecurityLevel.md) - - [SaveCommentResponse](docs/SaveCommentResponse.md) - [SaveCommentResponseOptimized](docs/SaveCommentResponseOptimized.md) - [SaveCommentsBulkResponse](docs/SaveCommentsBulkResponse.md) - [SaveCommentsResponseWithPresence](docs/SaveCommentsResponseWithPresence.md) - [SearchUsersResponse](docs/SearchUsersResponse.md) - - [SearchUsersResponse1](docs/SearchUsersResponse1.md) - [SearchUsersResult](docs/SearchUsersResult.md) - [SearchUsersSectionedResponse](docs/SearchUsersSectionedResponse.md) - - [SendInviteResponse](docs/SendInviteResponse.md) - - [SendLoginLinkResponse](docs/SendLoginLinkResponse.md) - [SetCommentApprovedResponse](docs/SetCommentApprovedResponse.md) - [SetCommentTextParams](docs/SetCommentTextParams.md) - [SetCommentTextResponse](docs/SetCommentTextResponse.md) - - [SetCommentTextResponse1](docs/SetCommentTextResponse1.md) - [SetCommentTextResult](docs/SetCommentTextResult.md) - - [SetTrustFactorResponse](docs/SetTrustFactorResponse.md) - [SetUserTrustFactorResponse](docs/SetUserTrustFactorResponse.md) - [SizePreset](docs/SizePreset.md) - [SortDirections](docs/SortDirections.md) @@ -813,43 +654,26 @@ Class | Method | HTTP request | Description - [TenantBadge](docs/TenantBadge.md) - [TenantHashTag](docs/TenantHashTag.md) - [TenantPackage](docs/TenantPackage.md) - - [UnBlockCommentPublicResponse](docs/UnBlockCommentPublicResponse.md) - [UnBlockFromCommentParams](docs/UnBlockFromCommentParams.md) - - [UnBlockUserFromCommentResponse](docs/UnBlockUserFromCommentResponse.md) - - [UnFlagCommentResponse](docs/UnFlagCommentResponse.md) - - [UnLockCommentResponse](docs/UnLockCommentResponse.md) - - [UnPinCommentResponse](docs/UnPinCommentResponse.md) - [UnblockSuccess](docs/UnblockSuccess.md) - [UpdatableCommentParams](docs/UpdatableCommentParams.md) - [UpdateAPIPageData](docs/UpdateAPIPageData.md) - [UpdateAPISSOUserData](docs/UpdateAPISSOUserData.md) - [UpdateAPIUserSubscriptionData](docs/UpdateAPIUserSubscriptionData.md) - - [UpdateCommentResponse](docs/UpdateCommentResponse.md) - [UpdateDomainConfigParams](docs/UpdateDomainConfigParams.md) - [UpdateEmailTemplateBody](docs/UpdateEmailTemplateBody.md) - - [UpdateEmailTemplateResponse](docs/UpdateEmailTemplateResponse.md) - [UpdateFeedPostParams](docs/UpdateFeedPostParams.md) - - [UpdateFeedPostPublicResponse](docs/UpdateFeedPostPublicResponse.md) - - [UpdateFeedPostResponse](docs/UpdateFeedPostResponse.md) - [UpdateHashTagBody](docs/UpdateHashTagBody.md) - [UpdateHashTagResponse](docs/UpdateHashTagResponse.md) - [UpdateModeratorBody](docs/UpdateModeratorBody.md) - - [UpdateModeratorResponse](docs/UpdateModeratorResponse.md) - [UpdateNotificationBody](docs/UpdateNotificationBody.md) - - [UpdateNotificationResponse](docs/UpdateNotificationResponse.md) - [UpdateQuestionConfigBody](docs/UpdateQuestionConfigBody.md) - - [UpdateQuestionConfigResponse](docs/UpdateQuestionConfigResponse.md) - [UpdateQuestionResultBody](docs/UpdateQuestionResultBody.md) - - [UpdateQuestionResultResponse](docs/UpdateQuestionResultResponse.md) - [UpdateSubscriptionAPIResponse](docs/UpdateSubscriptionAPIResponse.md) - [UpdateTenantBody](docs/UpdateTenantBody.md) - [UpdateTenantPackageBody](docs/UpdateTenantPackageBody.md) - - [UpdateTenantPackageResponse](docs/UpdateTenantPackageResponse.md) - - [UpdateTenantResponse](docs/UpdateTenantResponse.md) - [UpdateTenantUserBody](docs/UpdateTenantUserBody.md) - - [UpdateTenantUserResponse](docs/UpdateTenantUserResponse.md) - [UpdateUserBadgeParams](docs/UpdateUserBadgeParams.md) - - [UpdateUserBadgeResponse](docs/UpdateUserBadgeResponse.md) - [UpdateUserNotificationCommentSubscriptionStatusResponse](docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md) - [UpdateUserNotificationPageSubscriptionStatusResponse](docs/UpdateUserNotificationPageSubscriptionStatusResponse.md) - [UpdateUserNotificationStatusResponse](docs/UpdateUserNotificationStatusResponse.md) @@ -868,7 +692,6 @@ Class | Method | HTTP request | Description - [UserSessionInfo](docs/UserSessionInfo.md) - [UsersListLocation](docs/UsersListLocation.md) - [VoteBodyParams](docs/VoteBodyParams.md) - - [VoteCommentResponse](docs/VoteCommentResponse.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 683a955c..d4df2122 100644 --- a/client/api/openapi.yaml +++ b/client/api/openapi.yaml @@ -63,8 +63,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SearchUsersResponse_1" + $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/GetUserPresenceStatusesResponse_1" + $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 @@ -209,8 +221,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserNotificationsResponse" + $ref: "#/components/schemas/GetMyNotificationsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -275,8 +293,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ResetUserNotificationsResponse_1" + $ref: "#/components/schemas/ResetUserNotificationsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -305,8 +329,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserNotificationCountResponse_1" + $ref: "#/components/schemas/GetUserNotificationCountResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -335,8 +365,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ResetUserNotificationCountResponse" + $ref: "#/components/schemas/ResetUserNotificationsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -384,6 +420,12 @@ paths: schema: $ref: "#/components/schemas/UpdateUserNotificationStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -439,6 +481,12 @@ paths: schema: $ref: "#/components/schemas/UpdateUserNotificationCommentSubscriptionStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -503,6 +551,12 @@ paths: schema: $ref: "#/components/schemas/UpdateUserNotificationPageSubscriptionStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -593,7 +647,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTranslationsResponse_1" + $ref: "#/components/schemas/GetTranslationsResponse" description: Ok "422": content: @@ -607,6 +661,12 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Internal + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -675,8 +735,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetPagesPublicResponse" + $ref: "#/components/schemas/GetPublicPagesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -726,7 +792,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetOnlineUsersResponse" + $ref: "#/components/schemas/PageUsersOnlineResponse" description: Ok "403": content: @@ -740,6 +806,12 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -791,7 +863,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetOfflineUsersResponse" + $ref: "#/components/schemas/PageUsersOfflineResponse" description: Ok "403": content: @@ -805,6 +877,12 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -838,7 +916,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUsersInfoResponse" + $ref: "#/components/schemas/PageUsersInfoResponse" description: Ok "422": content: @@ -846,6 +924,12 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -874,8 +958,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteV1PageReactResponse" + $ref: "#/components/schemas/DeleteV1PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -903,8 +993,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetV1PageLikesResponse" + $ref: "#/components/schemas/GetV1PageLikes" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -939,8 +1035,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateV1PageReactResponse" + $ref: "#/components/schemas/CreateV1PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -976,8 +1078,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetV2PageReactUsersResponse_1" + $ref: "#/components/schemas/GetV2PageReactUsersResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -1013,8 +1121,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteV2PageReactResponse" + $ref: "#/components/schemas/DeleteV2PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -1042,8 +1156,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetV2PageReactsResponse" + $ref: "#/components/schemas/GetV2PageReacts" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -1085,8 +1205,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateV2PageReactResponse" + $ref: "#/components/schemas/CreateV2PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -1150,8 +1276,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCountResponse" + $ref: "#/components/schemas/ModerationAPICountCommentsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1222,8 +1354,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetApiIdsResponse" + $ref: "#/components/schemas/ModerationAPIGetCommentIdsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1310,8 +1448,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetApiCommentsResponse" + $ref: "#/components/schemas/ModerationAPIGetCommentsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1375,8 +1519,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostApiExportResponse" + $ref: "#/components/schemas/ModerationExportResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1412,8 +1562,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetApiExportStatusResponse" + $ref: "#/components/schemas/ModerationExportStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1449,8 +1605,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetSearchUsersResponse" + $ref: "#/components/schemas/ModerationUserSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1486,8 +1648,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetSearchPagesResponse" + $ref: "#/components/schemas/ModerationPageSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1523,8 +1691,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetSearchSitesResponse" + $ref: "#/components/schemas/ModerationSiteSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1574,8 +1748,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetSearchCommentsSummaryResponse" + $ref: "#/components/schemas/ModerationCommentSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1611,8 +1791,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetSearchSuggestResponse" + $ref: "#/components/schemas/ModerationSuggestResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1669,8 +1855,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetPreBanSummaryResponse" + $ref: "#/components/schemas/PreBanSummary" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1726,8 +1918,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostBulkPreBanSummaryResponse" + $ref: "#/components/schemas/BulkPreBanSummary" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1820,8 +2018,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostBanUserFromCommentResponse" + $ref: "#/components/schemas/BanUserFromCommentResult" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1857,8 +2061,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetBanUsersFromCommentResponse" + $ref: "#/components/schemas/GetBannedUsersFromCommentResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1893,8 +2103,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostBanUserUndoResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1940,6 +2156,12 @@ paths: schema: $ref: "#/components/schemas/PostRemoveCommentResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -1982,8 +2204,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostRestoreDeletedCommentResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2026,8 +2254,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostFlagCommentResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2070,8 +2304,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostUnFlagCommentResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2121,8 +2361,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostSetCommentReviewStatusResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2179,8 +2425,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostSetCommentSpamStatusResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2230,8 +2482,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostSetCommentApprovalStatusResponse" + $ref: "#/components/schemas/SetCommentApprovedResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2267,8 +2525,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetLogsResponse" + $ref: "#/components/schemas/ModerationAPIGetLogsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2318,8 +2582,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetModerationCommentResponse" + $ref: "#/components/schemas/ModerationAPICommentResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2354,8 +2624,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostCommentsByIdsResponse" + $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2392,8 +2668,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentChildrenResponse" + $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2429,8 +2711,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetModerationCommentTextResponse" + $ref: "#/components/schemas/GetCommentTextResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2479,8 +2767,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostSetCommentTextResponse" + $ref: "#/components/schemas/SetCommentTextResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2530,8 +2824,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostAdjustCommentVotesResponse" + $ref: "#/components/schemas/AdjustVotesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2582,8 +2882,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostVoteResponse" + $ref: "#/components/schemas/VoteResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2633,8 +2939,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteModerationVoteResponse" + $ref: "#/components/schemas/VoteDeleteResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2670,8 +2982,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentBanStatusResponse_1" + $ref: "#/components/schemas/GetCommentBanStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2700,8 +3018,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserBanPreferenceResponse" + $ref: "#/components/schemas/APIModerateGetUserBanPreferencesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2730,8 +3054,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetManualBadgesResponse" + $ref: "#/components/schemas/GetTenantManualBadgesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2774,8 +3104,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetManualBadgesForUserResponse" + $ref: "#/components/schemas/GetUserManualBadgesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2832,8 +3168,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PutAwardBadgeResponse" + $ref: "#/components/schemas/AwardUserBadgeResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2890,8 +3232,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PutRemoveBadgeResponse" + $ref: "#/components/schemas/RemoveUserBadgeResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2927,8 +3275,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTrustFactorResponse" + $ref: "#/components/schemas/GetUserTrustFactorResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -2971,8 +3325,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SetTrustFactorResponse" + $ref: "#/components/schemas/SetUserTrustFactorResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -3008,8 +3368,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserInternalProfileResponse_1" + $ref: "#/components/schemas/GetUserInternalProfileResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -3045,8 +3411,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PutReopenThreadResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -3082,8 +3454,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PutCloseThreadResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -3112,8 +3490,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCountsResponse" + $ref: "#/components/schemas/GetBannedUsersCountResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Moderation @@ -3217,6 +3601,12 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3245,7 +3635,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetGifLargeResponse" + $ref: "#/components/schemas/GifGetLargeResponse" description: Ok "422": content: @@ -3253,6 +3643,12 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3295,8 +3691,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublicResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3368,8 +3770,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetFeedPostsPublicResponse" + $ref: "#/components/schemas/PublicFeedPostsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3410,8 +3818,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPostPublicResponse" + $ref: "#/components/schemas/CreateFeedPostResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3468,8 +3882,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ReactFeedPostPublicResponse" + $ref: "#/components/schemas/ReactFeedPostResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3508,8 +3928,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserReactsPublicResponse" + $ref: "#/components/schemas/UserReactsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3554,6 +3980,12 @@ paths: schema: $ref: "#/components/schemas/DeleteFeedPostPublicResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3601,8 +4033,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateFeedPostPublicResponse" + $ref: "#/components/schemas/CreateFeedPostResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3641,8 +4079,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetFeedPostsStatsResponse" + $ref: "#/components/schemas/FeedPostsStatsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3700,8 +4144,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEventLogResponse_1" + $ref: "#/components/schemas/GetEventLogResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3759,8 +4209,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetGlobalEventLogResponse" + $ref: "#/components/schemas/GetEventLogResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3803,8 +4259,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentTextResponse_1" + $ref: "#/components/schemas/PublicAPIGetCommentTextResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3860,8 +4322,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SetCommentTextResponse_1" + $ref: "#/components/schemas/PublicAPISetCommentTextResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -3927,8 +4395,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentsForUserResponse_1" + $ref: "#/components/schemas/GetCommentsForUserResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4152,8 +4626,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentsPublicResponse" + $ref: "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4208,8 +4688,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateCommentPublicResponse" + $ref: "#/components/schemas/SaveCommentsResponseWithPresence" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4260,8 +4746,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteCommentPublicResponse" + $ref: "#/components/schemas/PublicAPIDeleteCommentResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4298,8 +4790,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CheckedCommentsForBlockedResponse" + $ref: "#/components/schemas/CheckBlockedCommentsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4362,8 +4860,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/VoteCommentResponse" + $ref: "#/components/schemas/VoteResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4428,8 +4932,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteCommentVoteResponse" + $ref: "#/components/schemas/VoteDeleteResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4473,8 +4983,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentVoteUserNamesResponse" + $ref: "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4517,8 +5033,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PinCommentResponse" + $ref: "#/components/schemas/ChangeCommentPinStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4561,8 +5083,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UnPinCommentResponse" + $ref: "#/components/schemas/ChangeCommentPinStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4605,8 +5133,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/LockCommentResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4649,8 +5183,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UnLockCommentResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4692,8 +5232,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UnBlockCommentPublicResponse" + $ref: "#/components/schemas/UnblockSuccess" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -4735,8 +5281,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BlockFromCommentPublicResponse" + $ref: "#/components/schemas/BlockSuccess" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -5303,8 +5855,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetVotesResponse_1" + $ref: "#/components/schemas/GetVotesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5355,8 +5913,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateVoteResponse" + $ref: "#/components/schemas/VoteResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5398,8 +5962,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetVotesForUserResponse_1" + $ref: "#/components/schemas/GetVotesForUserResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5434,8 +6004,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteVoteResponse" + $ref: "#/components/schemas/VoteDeleteResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5463,8 +6039,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserResponse_1" + $ref: "#/components/schemas/GetUserResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5492,8 +6074,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteUserBadgeResponse" + $ref: "#/components/schemas/APIEmptySuccessResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5520,8 +6108,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserBadgeResponse" + $ref: "#/components/schemas/APIGetUserBadgeResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5554,8 +6148,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateUserBadgeResponse" + $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 @@ -5622,8 +6222,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserBadgesResponse" + $ref: "#/components/schemas/APIGetUserBadgesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5649,8 +6255,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateUserBadgeResponse" + $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 @@ -5679,8 +6291,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserBadgeProgressByIdResponse" + $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5724,8 +6342,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserBadgeProgressListResponse" + $ref: "#/components/schemas/APIGetUserBadgeProgressListResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5753,8 +6377,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserBadgeProgressByUserIdResponse" + $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5806,8 +6436,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTicketsResponse_1" + $ref: "#/components/schemas/GetTicketsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5840,8 +6476,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateTicketResponse_1" + $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 @@ -5877,8 +6519,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTicketResponse_1" + $ref: "#/components/schemas/GetTicketResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5919,8 +6567,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ChangeTicketStateResponse_1" + $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 @@ -5956,8 +6610,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteTenantResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -5984,8 +6644,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantResponse_1" + $ref: "#/components/schemas/GetTenantResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6018,8 +6684,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateTenantResponse" + $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 @@ -6056,8 +6728,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantsResponse_1" + $ref: "#/components/schemas/GetTenantsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6083,8 +6761,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateTenantResponse_1" + $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 @@ -6127,8 +6811,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteTenantUserResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6155,8 +6845,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantUserResponse_1" + $ref: "#/components/schemas/GetTenantUserResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6196,8 +6892,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateTenantUserResponse" + $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 @@ -6238,8 +6940,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ReplaceTenantUserResponse" + $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 @@ -6269,8 +6977,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantUsersResponse_1" + $ref: "#/components/schemas/GetTenantUsersResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6296,8 +7010,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateTenantUserResponse_1" + $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 @@ -6333,8 +7053,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SendLoginLinkResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6362,8 +7088,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteTenantPackageResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6390,8 +7122,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantPackageResponse_1" + $ref: "#/components/schemas/GetTenantPackageResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6424,9 +7162,15 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateTenantPackageResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: - api_key: [] x-content-type: application/json x-accepts: @@ -6459,8 +7203,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ReplaceTenantPackageResponse" + $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 @@ -6490,8 +7240,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantPackagesResponse_1" + $ref: "#/components/schemas/GetTenantPackagesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6517,8 +7273,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateTenantPackageResponse_1" + $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 @@ -6572,8 +7334,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTenantDailyUsagesResponse_1" + $ref: "#/components/schemas/GetTenantDailyUsagesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6601,8 +7369,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteQuestionResultResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6629,8 +7403,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetQuestionResultResponse_1" + $ref: "#/components/schemas/GetQuestionResultResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6663,8 +7443,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateQuestionResultResponse" + $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 @@ -6729,8 +7515,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetQuestionResultsResponse_1" + $ref: "#/components/schemas/GetQuestionResultsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6756,8 +7548,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateQuestionResultResponse_1" + $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 @@ -6824,8 +7622,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AggregateQuestionResultsResponse_1" + $ref: "#/components/schemas/AggregateQuestionResultsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6859,8 +7663,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkAggregateQuestionResultsResponse_1" + $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 @@ -6944,8 +7754,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CombineCommentsWithQuestionResultsResponse" + $ref: "#/components/schemas/CombineQuestionResultsWithCommentsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -6973,8 +7789,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteQuestionConfigResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7001,8 +7823,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetQuestionConfigResponse_1" + $ref: "#/components/schemas/GetQuestionConfigResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7035,8 +7863,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateQuestionConfigResponse" + $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 @@ -7066,8 +7900,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetQuestionConfigsResponse_1" + $ref: "#/components/schemas/GetQuestionConfigsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7093,8 +7933,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateQuestionConfigResponse_1" + $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 @@ -7167,8 +8013,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetPendingWebhookEventsResponse_1" + $ref: "#/components/schemas/GetPendingWebhookEventsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7232,8 +8084,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetPendingWebhookEventCountResponse_1" + $ref: "#/components/schemas/GetPendingWebhookEventCountResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7261,8 +8119,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeletePendingWebhookEventResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7326,8 +8190,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetNotificationsResponse_1" + $ref: "#/components/schemas/GetNotificationsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7383,8 +8253,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetNotificationCountResponse_1" + $ref: "#/components/schemas/GetNotificationCountResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7425,8 +8301,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateNotificationResponse" + $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 @@ -7455,8 +8337,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteNotificationCountResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7483,8 +8371,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCachedNotificationCountResponse_1" + $ref: "#/components/schemas/GetCachedNotificationCountResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7519,8 +8413,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteModeratorResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7547,8 +8447,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetModeratorResponse_1" + $ref: "#/components/schemas/GetModeratorResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7581,8 +8487,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateModeratorResponse" + $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 @@ -7612,8 +8524,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetModeratorsResponse_1" + $ref: "#/components/schemas/GetModeratorsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7639,8 +8557,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateModeratorResponse_1" + $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 @@ -7676,8 +8600,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SendInviteResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7706,8 +8636,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetHashTagsResponse_1" + $ref: "#/components/schemas/GetHashTagsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7733,8 +8669,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AddHashTagResponse" + $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 @@ -7762,8 +8704,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AddHashTagsBulkResponse" + $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 @@ -7798,8 +8746,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteHashTagResponse" + $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 @@ -7833,8 +8787,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PatchHashTagResponse" + $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 @@ -7885,8 +8845,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetFeedPostsResponse_1" + $ref: "#/components/schemas/GetFeedPostsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -7940,8 +8906,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPostResponse_1" + $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 @@ -7976,8 +8948,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateFeedPostResponse" + $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 @@ -7999,8 +8977,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplateDefinitionsResponse_1" + $ref: "#/components/schemas/GetEmailTemplateDefinitionsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -8036,8 +9020,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplateRenderErrorsResponse_1" + $ref: "#/components/schemas/GetEmailTemplateRenderErrorsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -8072,8 +9062,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteEmailTemplateRenderErrorResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -8101,8 +9097,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteEmailTemplateResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -8129,8 +9131,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplateResponse_1" + $ref: "#/components/schemas/GetEmailTemplateResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -8163,8 +9171,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateEmailTemplateResponse" + $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 @@ -8194,8 +9208,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplatesResponse_1" + $ref: "#/components/schemas/GetEmailTemplatesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -8221,8 +9241,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateEmailTemplateResponse_1" + $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 @@ -8257,8 +9283,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RenderEmailTemplateResponse_1" + $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 @@ -8479,8 +9511,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteCommentResponse" + $ref: "#/components/schemas/DeleteCommentResult" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -8507,8 +9545,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentResponse" + $ref: "#/components/schemas/APIGetCommentResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -8562,8 +9606,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateCommentResponse" + $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 @@ -8705,8 +9755,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentsResponse" + $ref: "#/components/schemas/APIGetCommentsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -8760,8 +9816,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SaveCommentResponse" + $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 @@ -8865,8 +9927,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FlagCommentResponse_1" + $ref: "#/components/schemas/FlagCommentResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -8908,8 +9976,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UnFlagCommentResponse" + $ref: "#/components/schemas/FlagCommentResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -8957,8 +10031,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BlockUserFromCommentResponse" + $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 @@ -9007,8 +10087,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UnBlockUserFromCommentResponse" + $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 @@ -9069,8 +10155,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetAuditLogsResponse_1" + $ref: "#/components/schemas/GetAuditLogsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] x-accepts: @@ -24812,53 +25904,20 @@ components: - operations - resourceName type: object - SearchUsersResponse_1: - anyOf: - - $ref: "#/components/schemas/SearchUsersResult" - - $ref: "#/components/schemas/APIError" - title: SearchUsersResponse - GetUserPresenceStatusesResponse_1: - anyOf: - - $ref: "#/components/schemas/GetUserPresenceStatusesResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserPresenceStatusesResponse - GetUserNotificationsResponse: - anyOf: - - $ref: "#/components/schemas/GetMyNotificationsResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserNotificationsResponse - ResetUserNotificationsResponse_1: - anyOf: - - $ref: "#/components/schemas/ResetUserNotificationsResponse" - - $ref: "#/components/schemas/APIError" - title: ResetUserNotificationsResponse - GetUserNotificationCountResponse_1: - anyOf: - - $ref: "#/components/schemas/GetUserNotificationCountResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserNotificationCountResponse - ResetUserNotificationCountResponse: - anyOf: - - $ref: "#/components/schemas/ResetUserNotificationsResponse" - - $ref: "#/components/schemas/APIError" - title: ResetUserNotificationCountResponse - UpdateUserNotificationStatusResponse: + UpdateUserNotificationStatusResponse: anyOf: - $ref: "#/components/schemas/UserNotificationWriteResponse" - $ref: "#/components/schemas/IgnoredResponse" - - $ref: "#/components/schemas/APIError" title: UpdateUserNotificationStatusResponse UpdateUserNotificationCommentSubscriptionStatusResponse: anyOf: - $ref: "#/components/schemas/UserNotificationWriteResponse" - $ref: "#/components/schemas/IgnoredResponse" - - $ref: "#/components/schemas/APIError" title: UpdateUserNotificationCommentSubscriptionStatusResponse UpdateUserNotificationPageSubscriptionStatusResponse: anyOf: - $ref: "#/components/schemas/UserNotificationWriteResponse" - $ref: "#/components/schemas/IgnoredResponse" - - $ref: "#/components/schemas/APIError" title: UpdateUserNotificationPageSubscriptionStatusResponse UploadImage_request: properties: @@ -24868,282 +25927,11 @@ components: required: - file type: object - GetTranslationsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetTranslationsResponse" - - $ref: "#/components/schemas/APIError" - title: GetTranslationsResponse - GetPagesPublicResponse: - anyOf: - - $ref: "#/components/schemas/GetPublicPagesResponse" - - $ref: "#/components/schemas/APIError" - title: GetPagesPublicResponse - GetOnlineUsersResponse: - anyOf: - - $ref: "#/components/schemas/PageUsersOnlineResponse" - - $ref: "#/components/schemas/APIError" - title: GetOnlineUsersResponse - GetOfflineUsersResponse: - anyOf: - - $ref: "#/components/schemas/PageUsersOfflineResponse" - - $ref: "#/components/schemas/APIError" - title: GetOfflineUsersResponse - GetUsersInfoResponse: - anyOf: - - $ref: "#/components/schemas/PageUsersInfoResponse" - - $ref: "#/components/schemas/APIError" - title: GetUsersInfoResponse - GetV1PageLikesResponse: - anyOf: - - $ref: "#/components/schemas/GetV1PageLikes" - - $ref: "#/components/schemas/APIError" - title: GetV1PageLikesResponse - CreateV1PageReactResponse: - anyOf: - - $ref: "#/components/schemas/CreateV1PageReact" - - $ref: "#/components/schemas/APIError" - title: CreateV1PageReactResponse - DeleteV1PageReactResponse: - anyOf: - - $ref: "#/components/schemas/DeleteV1PageReact" - - $ref: "#/components/schemas/APIError" - title: DeleteV1PageReactResponse - GetV2PageReactUsersResponse_1: - anyOf: - - $ref: "#/components/schemas/GetV2PageReactUsersResponse" - - $ref: "#/components/schemas/APIError" - title: GetV2PageReactUsersResponse - GetV2PageReactsResponse: - anyOf: - - $ref: "#/components/schemas/GetV2PageReacts" - - $ref: "#/components/schemas/APIError" - title: GetV2PageReactsResponse - CreateV2PageReactResponse: - anyOf: - - $ref: "#/components/schemas/CreateV2PageReact" - - $ref: "#/components/schemas/APIError" - title: CreateV2PageReactResponse - DeleteV2PageReactResponse: - anyOf: - - $ref: "#/components/schemas/DeleteV2PageReact" - - $ref: "#/components/schemas/APIError" - title: DeleteV2PageReactResponse - GetCountResponse: - anyOf: - - $ref: "#/components/schemas/ModerationAPICountCommentsResponse" - - $ref: "#/components/schemas/APIError" - title: GetCountResponse - GetApiIdsResponse: - anyOf: - - $ref: "#/components/schemas/ModerationAPIGetCommentIdsResponse" - - $ref: "#/components/schemas/APIError" - title: GetApiIdsResponse - GetApiCommentsResponse: - anyOf: - - $ref: "#/components/schemas/ModerationAPIGetCommentsResponse" - - $ref: "#/components/schemas/APIError" - title: GetApiCommentsResponse - PostApiExportResponse: - anyOf: - - $ref: "#/components/schemas/ModerationExportResponse" - - $ref: "#/components/schemas/APIError" - title: PostApiExportResponse - GetApiExportStatusResponse: - anyOf: - - $ref: "#/components/schemas/ModerationExportStatusResponse" - - $ref: "#/components/schemas/APIError" - title: GetApiExportStatusResponse - GetSearchUsersResponse: - anyOf: - - $ref: "#/components/schemas/ModerationUserSearchResponse" - - $ref: "#/components/schemas/APIError" - title: GetSearchUsersResponse - GetSearchPagesResponse: - anyOf: - - $ref: "#/components/schemas/ModerationPageSearchResponse" - - $ref: "#/components/schemas/APIError" - title: GetSearchPagesResponse - GetSearchSitesResponse: - anyOf: - - $ref: "#/components/schemas/ModerationSiteSearchResponse" - - $ref: "#/components/schemas/APIError" - title: GetSearchSitesResponse - GetSearchCommentsSummaryResponse: - anyOf: - - $ref: "#/components/schemas/ModerationCommentSearchResponse" - - $ref: "#/components/schemas/APIError" - title: GetSearchCommentsSummaryResponse - GetSearchSuggestResponse: - anyOf: - - $ref: "#/components/schemas/ModerationSuggestResponse" - - $ref: "#/components/schemas/APIError" - title: GetSearchSuggestResponse - GetPreBanSummaryResponse: - anyOf: - - $ref: "#/components/schemas/PreBanSummary" - - $ref: "#/components/schemas/APIError" - title: GetPreBanSummaryResponse - PostBulkPreBanSummaryResponse: - anyOf: - - $ref: "#/components/schemas/BulkPreBanSummary" - - $ref: "#/components/schemas/APIError" - title: PostBulkPreBanSummaryResponse - PostBanUserFromCommentResponse: - anyOf: - - $ref: "#/components/schemas/BanUserFromCommentResult" - - $ref: "#/components/schemas/APIError" - title: PostBanUserFromCommentResponse - GetBanUsersFromCommentResponse: - anyOf: - - $ref: "#/components/schemas/GetBannedUsersFromCommentResponse" - - $ref: "#/components/schemas/APIError" - title: GetBanUsersFromCommentResponse - PostBanUserUndoResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: PostBanUserUndoResponse PostRemoveCommentResponse: anyOf: - $ref: "#/components/schemas/DeleteCommentResult" - $ref: "#/components/schemas/RemoveCommentActionResponse" - - $ref: "#/components/schemas/APIError" title: PostRemoveCommentResponse - PostRestoreDeletedCommentResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: PostRestoreDeletedCommentResponse - PostFlagCommentResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: PostFlagCommentResponse - PostUnFlagCommentResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: PostUnFlagCommentResponse - PostSetCommentReviewStatusResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: PostSetCommentReviewStatusResponse - PostSetCommentSpamStatusResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: PostSetCommentSpamStatusResponse - PostSetCommentApprovalStatusResponse: - anyOf: - - $ref: "#/components/schemas/SetCommentApprovedResponse" - - $ref: "#/components/schemas/APIError" - title: PostSetCommentApprovalStatusResponse - GetLogsResponse: - anyOf: - - $ref: "#/components/schemas/ModerationAPIGetLogsResponse" - - $ref: "#/components/schemas/APIError" - title: GetLogsResponse - GetModerationCommentResponse: - anyOf: - - $ref: "#/components/schemas/ModerationAPICommentResponse" - - $ref: "#/components/schemas/APIError" - title: GetModerationCommentResponse - PostCommentsByIdsResponse: - anyOf: - - $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" - - $ref: "#/components/schemas/APIError" - title: PostCommentsByIdsResponse - GetCommentChildrenResponse: - anyOf: - - $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" - - $ref: "#/components/schemas/APIError" - title: GetCommentChildrenResponse - GetModerationCommentTextResponse: - anyOf: - - $ref: "#/components/schemas/GetCommentTextResponse" - - $ref: "#/components/schemas/APIError" - title: GetModerationCommentTextResponse - PostSetCommentTextResponse: - anyOf: - - $ref: "#/components/schemas/SetCommentTextResponse" - - $ref: "#/components/schemas/APIError" - title: PostSetCommentTextResponse - PostAdjustCommentVotesResponse: - anyOf: - - $ref: "#/components/schemas/AdjustVotesResponse" - - $ref: "#/components/schemas/APIError" - title: PostAdjustCommentVotesResponse - PostVoteResponse: - anyOf: - - $ref: "#/components/schemas/VoteResponse" - - $ref: "#/components/schemas/APIError" - title: PostVoteResponse - DeleteModerationVoteResponse: - anyOf: - - $ref: "#/components/schemas/VoteDeleteResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteModerationVoteResponse - GetCommentBanStatusResponse_1: - anyOf: - - $ref: "#/components/schemas/GetCommentBanStatusResponse" - - $ref: "#/components/schemas/APIError" - title: GetCommentBanStatusResponse - GetUserBanPreferenceResponse: - anyOf: - - $ref: "#/components/schemas/APIModerateGetUserBanPreferencesResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserBanPreferenceResponse - GetManualBadgesResponse: - anyOf: - - $ref: "#/components/schemas/GetTenantManualBadgesResponse" - - $ref: "#/components/schemas/APIError" - title: GetManualBadgesResponse - GetManualBadgesForUserResponse: - anyOf: - - $ref: "#/components/schemas/GetUserManualBadgesResponse" - - $ref: "#/components/schemas/APIError" - title: GetManualBadgesForUserResponse - PutAwardBadgeResponse: - anyOf: - - $ref: "#/components/schemas/AwardUserBadgeResponse" - - $ref: "#/components/schemas/APIError" - title: PutAwardBadgeResponse - PutRemoveBadgeResponse: - anyOf: - - $ref: "#/components/schemas/RemoveUserBadgeResponse" - - $ref: "#/components/schemas/APIError" - title: PutRemoveBadgeResponse - GetTrustFactorResponse: - anyOf: - - $ref: "#/components/schemas/GetUserTrustFactorResponse" - - $ref: "#/components/schemas/APIError" - title: GetTrustFactorResponse - SetTrustFactorResponse: - anyOf: - - $ref: "#/components/schemas/SetUserTrustFactorResponse" - - $ref: "#/components/schemas/APIError" - title: SetTrustFactorResponse - GetUserInternalProfileResponse_1: - anyOf: - - $ref: "#/components/schemas/GetUserInternalProfileResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserInternalProfileResponse - PutReopenThreadResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: PutReopenThreadResponse - PutCloseThreadResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: PutCloseThreadResponse - GetCountsResponse: - anyOf: - - $ref: "#/components/schemas/GetBannedUsersCountResponse" - - $ref: "#/components/schemas/APIError" - title: GetCountsResponse GetGifsTrendingResponse: anyOf: - $ref: "#/components/schemas/GifSearchResponse" @@ -25153,44 +25941,8 @@ components: anyOf: - $ref: "#/components/schemas/GifSearchResponse" - $ref: "#/components/schemas/GifSearchInternalError" - - $ref: "#/components/schemas/APIError" title: GetGifsSearchResponse - GetGifLargeResponse: - anyOf: - - $ref: "#/components/schemas/GifGetLargeResponse" - - $ref: "#/components/schemas/APIError" - title: GetGifLargeResponse - FlagCommentPublicResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: FlagCommentPublicResponse - GetFeedPostsPublicResponse: - anyOf: - - $ref: "#/components/schemas/PublicFeedPostsResponse" - - $ref: "#/components/schemas/APIError" - title: GetFeedPostsPublicResponse - CreateFeedPostPublicResponse: - anyOf: - - $ref: "#/components/schemas/CreateFeedPostResponse" - - $ref: "#/components/schemas/APIError" - title: CreateFeedPostPublicResponse - ReactFeedPostPublicResponse: - anyOf: - - $ref: "#/components/schemas/ReactFeedPostResponse" - - $ref: "#/components/schemas/APIError" - title: ReactFeedPostPublicResponse - GetUserReactsPublicResponse: - anyOf: - - $ref: "#/components/schemas/UserReactsResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserReactsPublicResponse - UpdateFeedPostPublicResponse: - anyOf: - - $ref: "#/components/schemas/CreateFeedPostResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateFeedPostPublicResponse - DeleteFeedPostPublicResponse_anyOf: + DeleteFeedPostPublicResponse: example: status: success properties: @@ -25198,107 +25950,8 @@ components: $ref: "#/components/schemas/APIStatus" required: - status - type: object - DeleteFeedPostPublicResponse: - anyOf: - - $ref: "#/components/schemas/DeleteFeedPostPublicResponse_anyOf" - - $ref: "#/components/schemas/APIError" title: DeleteFeedPostPublicResponse - GetFeedPostsStatsResponse: - anyOf: - - $ref: "#/components/schemas/FeedPostsStatsResponse" - - $ref: "#/components/schemas/APIError" - title: GetFeedPostsStatsResponse - GetEventLogResponse_1: - anyOf: - - $ref: "#/components/schemas/GetEventLogResponse" - - $ref: "#/components/schemas/APIError" - title: GetEventLogResponse - GetGlobalEventLogResponse: - anyOf: - - $ref: "#/components/schemas/GetEventLogResponse" - - $ref: "#/components/schemas/APIError" - title: GetGlobalEventLogResponse - GetCommentTextResponse_1: - anyOf: - - $ref: "#/components/schemas/PublicAPIGetCommentTextResponse" - - $ref: "#/components/schemas/APIError" - title: GetCommentTextResponse - SetCommentTextResponse_1: - anyOf: - - $ref: "#/components/schemas/PublicAPISetCommentTextResponse" - - $ref: "#/components/schemas/APIError" - title: SetCommentTextResponse - GetCommentsForUserResponse_1: - anyOf: - - $ref: "#/components/schemas/GetCommentsForUserResponse" - - $ref: "#/components/schemas/APIError" - title: GetCommentsForUserResponse - GetCommentsPublicResponse: - anyOf: - - $ref: "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" - - $ref: "#/components/schemas/APIError" - title: GetCommentsPublicResponse - CreateCommentPublicResponse: - anyOf: - - $ref: "#/components/schemas/SaveCommentsResponseWithPresence" - - $ref: "#/components/schemas/APIError" - title: CreateCommentPublicResponse - DeleteCommentPublicResponse: - anyOf: - - $ref: "#/components/schemas/PublicAPIDeleteCommentResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteCommentPublicResponse - CheckedCommentsForBlockedResponse: - anyOf: - - $ref: "#/components/schemas/CheckBlockedCommentsResponse" - - $ref: "#/components/schemas/APIError" - title: CheckedCommentsForBlockedResponse - VoteCommentResponse: - anyOf: - - $ref: "#/components/schemas/VoteResponse" - - $ref: "#/components/schemas/APIError" - title: VoteCommentResponse - DeleteCommentVoteResponse: - anyOf: - - $ref: "#/components/schemas/VoteDeleteResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteCommentVoteResponse - GetCommentVoteUserNamesResponse: - anyOf: - - $ref: "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" - - $ref: "#/components/schemas/APIError" - title: GetCommentVoteUserNamesResponse - PinCommentResponse: - anyOf: - - $ref: "#/components/schemas/ChangeCommentPinStatusResponse" - - $ref: "#/components/schemas/APIError" - title: PinCommentResponse - UnPinCommentResponse: - anyOf: - - $ref: "#/components/schemas/ChangeCommentPinStatusResponse" - - $ref: "#/components/schemas/APIError" - title: UnPinCommentResponse - LockCommentResponse: - anyOf: - - $ref: "#/components/schemas/APIError" - - $ref: "#/components/schemas/APIEmptyResponse" - title: LockCommentResponse - UnLockCommentResponse: - anyOf: - - $ref: "#/components/schemas/APIError" - - $ref: "#/components/schemas/APIEmptyResponse" - title: UnLockCommentResponse - BlockFromCommentPublicResponse: - anyOf: - - $ref: "#/components/schemas/BlockSuccess" - - $ref: "#/components/schemas/APIError" - title: BlockFromCommentPublicResponse - UnBlockCommentPublicResponse: - anyOf: - - $ref: "#/components/schemas/UnblockSuccess" - - $ref: "#/components/schemas/APIError" - title: UnBlockCommentPublicResponse + type: object GetSSOUsersResponse: example: users: @@ -25359,336 +26012,6 @@ components: - users title: GetSSOUsersResponse type: object - GetVotesResponse_1: - anyOf: - - $ref: "#/components/schemas/GetVotesResponse" - - $ref: "#/components/schemas/APIError" - title: GetVotesResponse - CreateVoteResponse: - anyOf: - - $ref: "#/components/schemas/VoteResponse" - - $ref: "#/components/schemas/APIError" - title: CreateVoteResponse - GetVotesForUserResponse_1: - anyOf: - - $ref: "#/components/schemas/GetVotesForUserResponse" - - $ref: "#/components/schemas/APIError" - title: GetVotesForUserResponse - DeleteVoteResponse: - anyOf: - - $ref: "#/components/schemas/VoteDeleteResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteVoteResponse - GetUserResponse_1: - anyOf: - - $ref: "#/components/schemas/GetUserResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserResponse - GetUserBadgeResponse: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgeResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserBadgeResponse - UpdateUserBadgeResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptySuccessResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateUserBadgeResponse - DeleteUserBadgeResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptySuccessResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteUserBadgeResponse - GetUserBadgesResponse: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgesResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserBadgesResponse - CreateUserBadgeResponse: - anyOf: - - $ref: "#/components/schemas/APICreateUserBadgeResponse" - - $ref: "#/components/schemas/APIError" - title: CreateUserBadgeResponse - GetUserBadgeProgressByIdResponse: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserBadgeProgressByIdResponse - GetUserBadgeProgressListResponse: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgeProgressListResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserBadgeProgressListResponse - GetUserBadgeProgressByUserIdResponse: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" - - $ref: "#/components/schemas/APIError" - title: GetUserBadgeProgressByUserIdResponse - GetTicketsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetTicketsResponse" - - $ref: "#/components/schemas/APIError" - title: GetTicketsResponse - CreateTicketResponse_1: - anyOf: - - $ref: "#/components/schemas/CreateTicketResponse" - - $ref: "#/components/schemas/APIError" - title: CreateTicketResponse - GetTicketResponse_1: - anyOf: - - $ref: "#/components/schemas/GetTicketResponse" - - $ref: "#/components/schemas/APIError" - title: GetTicketResponse - ChangeTicketStateResponse_1: - anyOf: - - $ref: "#/components/schemas/ChangeTicketStateResponse" - - $ref: "#/components/schemas/APIError" - title: ChangeTicketStateResponse - GetTenantResponse_1: - anyOf: - - $ref: "#/components/schemas/GetTenantResponse" - - $ref: "#/components/schemas/APIError" - title: GetTenantResponse - DeleteTenantResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteTenantResponse - UpdateTenantResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateTenantResponse - GetTenantsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetTenantsResponse" - - $ref: "#/components/schemas/APIError" - title: GetTenantsResponse - CreateTenantResponse_1: - anyOf: - - $ref: "#/components/schemas/CreateTenantResponse" - - $ref: "#/components/schemas/APIError" - title: CreateTenantResponse - GetTenantUserResponse_1: - anyOf: - - $ref: "#/components/schemas/GetTenantUserResponse" - - $ref: "#/components/schemas/APIError" - title: GetTenantUserResponse - ReplaceTenantUserResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: ReplaceTenantUserResponse - DeleteTenantUserResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteTenantUserResponse - UpdateTenantUserResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateTenantUserResponse - GetTenantUsersResponse_1: - anyOf: - - $ref: "#/components/schemas/GetTenantUsersResponse" - - $ref: "#/components/schemas/APIError" - title: GetTenantUsersResponse - CreateTenantUserResponse_1: - anyOf: - - $ref: "#/components/schemas/CreateTenantUserResponse" - - $ref: "#/components/schemas/APIError" - title: CreateTenantUserResponse - SendLoginLinkResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: SendLoginLinkResponse - GetTenantPackageResponse_1: - anyOf: - - $ref: "#/components/schemas/GetTenantPackageResponse" - - $ref: "#/components/schemas/APIError" - title: GetTenantPackageResponse - ReplaceTenantPackageResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: ReplaceTenantPackageResponse - DeleteTenantPackageResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteTenantPackageResponse - UpdateTenantPackageResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateTenantPackageResponse - GetTenantPackagesResponse_1: - anyOf: - - $ref: "#/components/schemas/GetTenantPackagesResponse" - - $ref: "#/components/schemas/APIError" - title: GetTenantPackagesResponse - CreateTenantPackageResponse_1: - anyOf: - - $ref: "#/components/schemas/CreateTenantPackageResponse" - - $ref: "#/components/schemas/APIError" - title: CreateTenantPackageResponse - GetTenantDailyUsagesResponse_1: - anyOf: - - $ref: "#/components/schemas/GetTenantDailyUsagesResponse" - - $ref: "#/components/schemas/APIError" - title: GetTenantDailyUsagesResponse - GetQuestionResultResponse_1: - anyOf: - - $ref: "#/components/schemas/GetQuestionResultResponse" - - $ref: "#/components/schemas/APIError" - title: GetQuestionResultResponse - DeleteQuestionResultResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteQuestionResultResponse - UpdateQuestionResultResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateQuestionResultResponse - GetQuestionResultsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetQuestionResultsResponse" - - $ref: "#/components/schemas/APIError" - title: GetQuestionResultsResponse - CreateQuestionResultResponse_1: - anyOf: - - $ref: "#/components/schemas/CreateQuestionResultResponse" - - $ref: "#/components/schemas/APIError" - title: CreateQuestionResultResponse - AggregateQuestionResultsResponse_1: - anyOf: - - $ref: "#/components/schemas/AggregateQuestionResultsResponse" - - $ref: "#/components/schemas/APIError" - title: AggregateQuestionResultsResponse - BulkAggregateQuestionResultsResponse_1: - anyOf: - - $ref: "#/components/schemas/BulkAggregateQuestionResultsResponse" - - $ref: "#/components/schemas/APIError" - title: BulkAggregateQuestionResultsResponse - CombineCommentsWithQuestionResultsResponse: - anyOf: - - $ref: "#/components/schemas/CombineQuestionResultsWithCommentsResponse" - - $ref: "#/components/schemas/APIError" - title: CombineCommentsWithQuestionResultsResponse - GetQuestionConfigResponse_1: - anyOf: - - $ref: "#/components/schemas/GetQuestionConfigResponse" - - $ref: "#/components/schemas/APIError" - title: GetQuestionConfigResponse - DeleteQuestionConfigResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteQuestionConfigResponse - UpdateQuestionConfigResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateQuestionConfigResponse - GetQuestionConfigsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetQuestionConfigsResponse" - - $ref: "#/components/schemas/APIError" - title: GetQuestionConfigsResponse - CreateQuestionConfigResponse_1: - anyOf: - - $ref: "#/components/schemas/CreateQuestionConfigResponse" - - $ref: "#/components/schemas/APIError" - title: CreateQuestionConfigResponse - GetPendingWebhookEventsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetPendingWebhookEventsResponse" - - $ref: "#/components/schemas/APIError" - title: GetPendingWebhookEventsResponse - GetPendingWebhookEventCountResponse_1: - anyOf: - - $ref: "#/components/schemas/GetPendingWebhookEventCountResponse" - - $ref: "#/components/schemas/APIError" - title: GetPendingWebhookEventCountResponse - DeletePendingWebhookEventResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: DeletePendingWebhookEventResponse - GetNotificationsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetNotificationsResponse" - - $ref: "#/components/schemas/APIError" - title: GetNotificationsResponse - GetNotificationCountResponse_1: - anyOf: - - $ref: "#/components/schemas/GetNotificationCountResponse" - - $ref: "#/components/schemas/APIError" - title: GetNotificationCountResponse - UpdateNotificationResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateNotificationResponse - GetCachedNotificationCountResponse_1: - anyOf: - - $ref: "#/components/schemas/GetCachedNotificationCountResponse" - - $ref: "#/components/schemas/APIError" - title: GetCachedNotificationCountResponse - DeleteNotificationCountResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteNotificationCountResponse - GetModeratorResponse_1: - anyOf: - - $ref: "#/components/schemas/GetModeratorResponse" - - $ref: "#/components/schemas/APIError" - title: GetModeratorResponse - DeleteModeratorResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteModeratorResponse - UpdateModeratorResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateModeratorResponse - GetModeratorsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetModeratorsResponse" - - $ref: "#/components/schemas/APIError" - title: GetModeratorsResponse - CreateModeratorResponse_1: - anyOf: - - $ref: "#/components/schemas/CreateModeratorResponse" - - $ref: "#/components/schemas/APIError" - title: CreateModeratorResponse - SendInviteResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: SendInviteResponse - GetHashTagsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetHashTagsResponse" - - $ref: "#/components/schemas/APIError" - title: GetHashTagsResponse - AddHashTagResponse: - anyOf: - - $ref: "#/components/schemas/CreateHashTagResponse" - - $ref: "#/components/schemas/APIError" - title: AddHashTagResponse - AddHashTagsBulkResponse: - anyOf: - - $ref: "#/components/schemas/BulkCreateHashTagsResponse" - - $ref: "#/components/schemas/APIError" - title: AddHashTagsBulkResponse DeleteHashTagRequestBody: example: tenantId: tenantId @@ -25697,76 +26020,6 @@ components: type: string title: DeleteHashTagRequestBody type: object - DeleteHashTagResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteHashTagResponse - PatchHashTagResponse: - anyOf: - - $ref: "#/components/schemas/UpdateHashTagResponse" - - $ref: "#/components/schemas/APIError" - title: PatchHashTagResponse - GetFeedPostsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetFeedPostsResponse" - - $ref: "#/components/schemas/APIError" - title: GetFeedPostsResponse - CreateFeedPostResponse_1: - anyOf: - - $ref: "#/components/schemas/CreateFeedPostsResponse" - - $ref: "#/components/schemas/APIError" - title: CreateFeedPostResponse - UpdateFeedPostResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateFeedPostResponse - GetEmailTemplateDefinitionsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplateDefinitionsResponse" - - $ref: "#/components/schemas/APIError" - title: GetEmailTemplateDefinitionsResponse - GetEmailTemplateRenderErrorsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplateRenderErrorsResponse" - - $ref: "#/components/schemas/APIError" - title: GetEmailTemplateRenderErrorsResponse - DeleteEmailTemplateRenderErrorResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteEmailTemplateRenderErrorResponse - GetEmailTemplateResponse_1: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplateResponse" - - $ref: "#/components/schemas/APIError" - title: GetEmailTemplateResponse - DeleteEmailTemplateResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: DeleteEmailTemplateResponse - UpdateEmailTemplateResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateEmailTemplateResponse - GetEmailTemplatesResponse_1: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplatesResponse" - - $ref: "#/components/schemas/APIError" - title: GetEmailTemplatesResponse - CreateEmailTemplateResponse_1: - anyOf: - - $ref: "#/components/schemas/CreateEmailTemplateResponse" - - $ref: "#/components/schemas/APIError" - title: CreateEmailTemplateResponse - RenderEmailTemplateResponse_1: - anyOf: - - $ref: "#/components/schemas/RenderEmailTemplateResponse" - - $ref: "#/components/schemas/APIError" - title: RenderEmailTemplateResponse GetDomainConfigsResponse_anyOf: example: configurations: "" @@ -25839,61 +26092,11 @@ components: - $ref: "#/components/schemas/AddDomainConfigResponse_anyOf" - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" title: PatchDomainConfigResponse - GetCommentResponse: - anyOf: - - $ref: "#/components/schemas/APIGetCommentResponse" - - $ref: "#/components/schemas/APIError" - title: GetCommentResponse - DeleteCommentResponse: - anyOf: - - $ref: "#/components/schemas/DeleteCommentResult" - - $ref: "#/components/schemas/APIError" - title: DeleteCommentResponse - UpdateCommentResponse: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - title: UpdateCommentResponse - GetCommentsResponse: - anyOf: - - $ref: "#/components/schemas/APIGetCommentsResponse" - - $ref: "#/components/schemas/APIError" - title: GetCommentsResponse - SaveCommentResponse: - anyOf: - - $ref: "#/components/schemas/APISaveCommentResponse" - - $ref: "#/components/schemas/APIError" - title: SaveCommentResponse SaveCommentsBulkResponse: anyOf: - $ref: "#/components/schemas/APISaveCommentResponse" - $ref: "#/components/schemas/APIError" title: SaveCommentsBulkResponse - FlagCommentResponse_1: - anyOf: - - $ref: "#/components/schemas/FlagCommentResponse" - - $ref: "#/components/schemas/APIError" - title: FlagCommentResponse - UnFlagCommentResponse: - anyOf: - - $ref: "#/components/schemas/FlagCommentResponse" - - $ref: "#/components/schemas/APIError" - title: UnFlagCommentResponse - BlockUserFromCommentResponse: - anyOf: - - $ref: "#/components/schemas/BlockSuccess" - - $ref: "#/components/schemas/APIError" - title: BlockUserFromCommentResponse - UnBlockUserFromCommentResponse: - anyOf: - - $ref: "#/components/schemas/UnblockSuccess" - - $ref: "#/components/schemas/APIError" - title: UnBlockUserFromCommentResponse - GetAuditLogsResponse_1: - anyOf: - - $ref: "#/components/schemas/GetAuditLogsResponse" - - $ref: "#/components/schemas/APIError" - title: GetAuditLogsResponse AggregateResponse: anyOf: - $ref: "#/components/schemas/AggregationResponse" diff --git a/client/docs/AddHashTagResponse.md b/client/docs/AddHashTagResponse.md deleted file mode 100644 index aeb7b56a..00000000 --- a/client/docs/AddHashTagResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# AddHashTagResponse - - -## 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/AddHashTagsBulkResponse.md b/client/docs/AddHashTagsBulkResponse.md deleted file mode 100644 index d5d2549d..00000000 --- a/client/docs/AddHashTagsBulkResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# AddHashTagsBulkResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**results** | [**List<BulkCreateHashTagsResponseResultsInner>**](BulkCreateHashTagsResponseResultsInner.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/AggregateQuestionResultsResponse1.md b/client/docs/AggregateQuestionResultsResponse1.md deleted file mode 100644 index a3ef813f..00000000 --- a/client/docs/AggregateQuestionResultsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# AggregateQuestionResultsResponse1 - - -## 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/BlockFromCommentPublicResponse.md b/client/docs/BlockFromCommentPublicResponse.md deleted file mode 100644 index 3b8b61ab..00000000 --- a/client/docs/BlockFromCommentPublicResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# BlockFromCommentPublicResponse - - -## 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/BlockUserFromCommentResponse.md b/client/docs/BlockUserFromCommentResponse.md deleted file mode 100644 index 270195aa..00000000 --- a/client/docs/BlockUserFromCommentResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# BlockUserFromCommentResponse - - -## 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/BulkAggregateQuestionResultsResponse1.md b/client/docs/BulkAggregateQuestionResultsResponse1.md deleted file mode 100644 index 28ec8df5..00000000 --- a/client/docs/BulkAggregateQuestionResultsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# BulkAggregateQuestionResultsResponse1 - - -## 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/ChangeTicketStateResponse1.md b/client/docs/ChangeTicketStateResponse1.md deleted file mode 100644 index 7f05399a..00000000 --- a/client/docs/ChangeTicketStateResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# ChangeTicketStateResponse1 - - -## 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/CheckedCommentsForBlockedResponse.md b/client/docs/CheckedCommentsForBlockedResponse.md deleted file mode 100644 index a3dcc604..00000000 --- a/client/docs/CheckedCommentsForBlockedResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CheckedCommentsForBlockedResponse - - -## 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/CombineCommentsWithQuestionResultsResponse.md b/client/docs/CombineCommentsWithQuestionResultsResponse.md deleted file mode 100644 index 06e57086..00000000 --- a/client/docs/CombineCommentsWithQuestionResultsResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CombineCommentsWithQuestionResultsResponse - - -## 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/CreateCommentPublicResponse.md b/client/docs/CreateCommentPublicResponse.md deleted file mode 100644 index 69962481..00000000 --- a/client/docs/CreateCommentPublicResponse.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# CreateCommentPublicResponse - - -## 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/CreateEmailTemplateResponse1.md b/client/docs/CreateEmailTemplateResponse1.md deleted file mode 100644 index 6b264445..00000000 --- a/client/docs/CreateEmailTemplateResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateEmailTemplateResponse1 - - -## 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/CreateFeedPostPublicResponse.md b/client/docs/CreateFeedPostPublicResponse.md deleted file mode 100644 index fc3a479b..00000000 --- a/client/docs/CreateFeedPostPublicResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateFeedPostPublicResponse - - -## 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/CreateFeedPostResponse1.md b/client/docs/CreateFeedPostResponse1.md deleted file mode 100644 index f89455c8..00000000 --- a/client/docs/CreateFeedPostResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateFeedPostResponse1 - - -## 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/CreateModeratorResponse1.md b/client/docs/CreateModeratorResponse1.md deleted file mode 100644 index 141c4ca8..00000000 --- a/client/docs/CreateModeratorResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateModeratorResponse1 - - -## 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/CreateQuestionConfigResponse1.md b/client/docs/CreateQuestionConfigResponse1.md deleted file mode 100644 index ed4763f9..00000000 --- a/client/docs/CreateQuestionConfigResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateQuestionConfigResponse1 - - -## 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/CreateQuestionResultResponse1.md b/client/docs/CreateQuestionResultResponse1.md deleted file mode 100644 index 13c4240e..00000000 --- a/client/docs/CreateQuestionResultResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateQuestionResultResponse1 - - -## 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/CreateTenantPackageResponse1.md b/client/docs/CreateTenantPackageResponse1.md deleted file mode 100644 index 7d319c94..00000000 --- a/client/docs/CreateTenantPackageResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateTenantPackageResponse1 - - -## 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/CreateTenantResponse1.md b/client/docs/CreateTenantResponse1.md deleted file mode 100644 index 8e109502..00000000 --- a/client/docs/CreateTenantResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateTenantResponse1 - - -## 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/CreateTenantUserResponse1.md b/client/docs/CreateTenantUserResponse1.md deleted file mode 100644 index 1b306993..00000000 --- a/client/docs/CreateTenantUserResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateTenantUserResponse1 - - -## 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/CreateTicketResponse1.md b/client/docs/CreateTicketResponse1.md deleted file mode 100644 index a760a3c3..00000000 --- a/client/docs/CreateTicketResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# CreateTicketResponse1 - - -## 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/CreateUserBadgeResponse.md b/client/docs/CreateUserBadgeResponse.md deleted file mode 100644 index 7f40a044..00000000 --- a/client/docs/CreateUserBadgeResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# CreateUserBadgeResponse - - -## 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/CreateV1PageReactResponse.md b/client/docs/CreateV1PageReactResponse.md deleted file mode 100644 index 1ec94b6a..00000000 --- a/client/docs/CreateV1PageReactResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# CreateV1PageReactResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | | [optional] | -|**status** | **APIStatus** | | | -|**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/CreateV2PageReactResponse.md b/client/docs/CreateV2PageReactResponse.md deleted file mode 100644 index 55c32b8b..00000000 --- a/client/docs/CreateV2PageReactResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# CreateV2PageReactResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | | [optional] | -|**status** | **APIStatus** | | | -|**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/CreateVoteResponse.md b/client/docs/CreateVoteResponse.md deleted file mode 100644 index 8ecb5b62..00000000 --- a/client/docs/CreateVoteResponse.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# CreateVoteResponse - - -## 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/docs/DefaultApi.md b/client/docs/DefaultApi.md index 07d0f87a..066a52fe 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -193,7 +193,7 @@ public class Example { # **addHashTag** -> AddHashTagResponse 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 { - AddHashTagResponse result = apiInstance.addHashTag() + CreateHashTagResponse result = apiInstance.addHashTag() .tenantId(tenantId) .createHashTagBody(createHashTagBody) .execute(); @@ -247,7 +247,7 @@ public class Example { ### Return type -[**AddHashTagResponse**](AddHashTagResponse.md) +[**CreateHashTagResponse**](CreateHashTagResponse.md) ### Authorization @@ -262,10 +262,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **addHashTagsBulk** -> AddHashTagsBulkResponse 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 { - AddHashTagsBulkResponse result = apiInstance.addHashTagsBulk() + BulkCreateHashTagsResponse result = apiInstance.addHashTagsBulk() .tenantId(tenantId) .bulkCreateHashTagsBody(bulkCreateHashTagsBody) .execute(); @@ -319,7 +320,7 @@ public class Example { ### Return type -[**AddHashTagsBulkResponse**](AddHashTagsBulkResponse.md) +[**BulkCreateHashTagsResponse**](BulkCreateHashTagsResponse.md) ### Authorization @@ -334,6 +335,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **addPage** @@ -555,7 +557,7 @@ public class Example { # **aggregateQuestionResults** -> AggregateQuestionResultsResponse1 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 { - AggregateQuestionResultsResponse1 result = apiInstance.aggregateQuestionResults(tenantId) + AggregateQuestionResultsResponse result = apiInstance.aggregateQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -623,7 +625,7 @@ public class Example { ### Return type -[**AggregateQuestionResultsResponse1**](AggregateQuestionResultsResponse1.md) +[**AggregateQuestionResultsResponse**](AggregateQuestionResultsResponse.md) ### Authorization @@ -638,10 +640,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **blockUserFromComment** -> BlockUserFromCommentResponse 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 { - BlockUserFromCommentResponse 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 -[**BlockUserFromCommentResponse**](BlockUserFromCommentResponse.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -716,10 +719,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **bulkAggregateQuestionResults** -> BulkAggregateQuestionResultsResponse1 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 { - BulkAggregateQuestionResultsResponse1 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 -[**BulkAggregateQuestionResultsResponse1**](BulkAggregateQuestionResultsResponse1.md) +[**BulkAggregateQuestionResultsResponse**](BulkAggregateQuestionResultsResponse.md) ### Authorization @@ -789,10 +793,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **changeTicketState** -> ChangeTicketStateResponse1 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 { - ChangeTicketStateResponse1 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 -[**ChangeTicketStateResponse1**](ChangeTicketStateResponse1.md) +[**ChangeTicketStateResponse**](ChangeTicketStateResponse.md) ### Authorization @@ -863,10 +868,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **combineCommentsWithQuestionResults** -> CombineCommentsWithQuestionResultsResponse 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 { - CombineCommentsWithQuestionResultsResponse result = apiInstance.combineCommentsWithQuestionResults(tenantId) + CombineQuestionResultsWithCommentsResponse result = apiInstance.combineCommentsWithQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -940,7 +946,7 @@ public class Example { ### Return type -[**CombineCommentsWithQuestionResultsResponse**](CombineCommentsWithQuestionResultsResponse.md) +[**CombineQuestionResultsWithCommentsResponse**](CombineQuestionResultsWithCommentsResponse.md) ### Authorization @@ -955,10 +961,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createEmailTemplate** -> CreateEmailTemplateResponse1 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 { - CreateEmailTemplateResponse1 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 -[**CreateEmailTemplateResponse1**](CreateEmailTemplateResponse1.md) +[**CreateEmailTemplateResponse**](CreateEmailTemplateResponse.md) ### Authorization @@ -1025,10 +1032,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createFeedPost** -> CreateFeedPostResponse1 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 { - CreateFeedPostResponse1 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 -[**CreateFeedPostResponse1**](CreateFeedPostResponse1.md) +[**CreateFeedPostsResponse**](CreateFeedPostsResponse.md) ### Authorization @@ -1107,10 +1115,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createModerator** -> CreateModeratorResponse1 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 { - CreateModeratorResponse1 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 -[**CreateModeratorResponse1**](CreateModeratorResponse1.md) +[**CreateModeratorResponse**](CreateModeratorResponse.md) ### Authorization @@ -1177,10 +1186,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createQuestionConfig** -> CreateQuestionConfigResponse1 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 { - CreateQuestionConfigResponse1 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 -[**CreateQuestionConfigResponse1**](CreateQuestionConfigResponse1.md) +[**CreateQuestionConfigResponse**](CreateQuestionConfigResponse.md) ### Authorization @@ -1247,10 +1257,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createQuestionResult** -> CreateQuestionResultResponse1 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 { - CreateQuestionResultResponse1 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 -[**CreateQuestionResultResponse1**](CreateQuestionResultResponse1.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** -> CreateTenantResponse1 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 { - CreateTenantResponse1 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 -[**CreateTenantResponse1**](CreateTenantResponse1.md) +[**CreateTenantResponse**](CreateTenantResponse.md) ### Authorization @@ -1457,10 +1469,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createTenantPackage** -> CreateTenantPackageResponse1 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 { - CreateTenantPackageResponse1 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 -[**CreateTenantPackageResponse1**](CreateTenantPackageResponse1.md) +[**CreateTenantPackageResponse**](CreateTenantPackageResponse.md) ### Authorization @@ -1527,10 +1540,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createTenantUser** -> CreateTenantUserResponse1 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 { - CreateTenantUserResponse1 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 -[**CreateTenantUserResponse1**](CreateTenantUserResponse1.md) +[**CreateTenantUserResponse**](CreateTenantUserResponse.md) ### Authorization @@ -1597,10 +1611,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createTicket** -> CreateTicketResponse1 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 { - CreateTicketResponse1 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 -[**CreateTicketResponse1**](CreateTicketResponse1.md) +[**CreateTicketResponse**](CreateTicketResponse.md) ### Authorization @@ -1669,10 +1684,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createUserBadge** -> CreateUserBadgeResponse 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 { - CreateUserBadgeResponse 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 -[**CreateUserBadgeResponse**](CreateUserBadgeResponse.md) +[**APICreateUserBadgeResponse**](APICreateUserBadgeResponse.md) ### Authorization @@ -1739,10 +1755,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createVote** -> CreateVoteResponse 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 { - CreateVoteResponse 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 -[**CreateVoteResponse**](CreateVoteResponse.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -1817,10 +1834,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteComment** -> DeleteCommentResponse 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 { - DeleteCommentResponse 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 -[**DeleteCommentResponse**](DeleteCommentResponse.md) +[**DeleteCommentResult**](DeleteCommentResult.md) ### Authorization @@ -1893,6 +1911,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteDomainConfig** @@ -1966,7 +1985,7 @@ public class Example { # **deleteEmailTemplate** -> DeleteEmailTemplateResponse 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 { - DeleteEmailTemplateResponse 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 -[**DeleteEmailTemplateResponse**](DeleteEmailTemplateResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2033,10 +2052,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteEmailTemplateRenderError** -> DeleteEmailTemplateRenderErrorResponse 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 { - DeleteEmailTemplateRenderErrorResponse 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 -[**DeleteEmailTemplateRenderErrorResponse**](DeleteEmailTemplateRenderErrorResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2105,10 +2125,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteHashTag** -> DeleteHashTagResponse deleteHashTag(tag).tenantId(tenantId).deleteHashTagRequestBody(deleteHashTagRequestBody).execute(); +> APIEmptyResponse deleteHashTag(tag).tenantId(tenantId).deleteHashTagRequestBody(deleteHashTagRequestBody).execute(); @@ -2138,7 +2159,7 @@ public class Example { String tenantId = "tenantId_example"; // String | DeleteHashTagRequestBody deleteHashTagRequestBody = new DeleteHashTagRequestBody(); // DeleteHashTagRequestBody | try { - DeleteHashTagResponse result = apiInstance.deleteHashTag(tag) + APIEmptyResponse result = apiInstance.deleteHashTag(tag) .tenantId(tenantId) .deleteHashTagRequestBody(deleteHashTagRequestBody) .execute(); @@ -2164,7 +2185,7 @@ public class Example { ### Return type -[**DeleteHashTagResponse**](DeleteHashTagResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2179,10 +2200,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteModerator** -> DeleteModeratorResponse 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 { - DeleteModeratorResponse 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 -[**DeleteModeratorResponse**](DeleteModeratorResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2252,10 +2274,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteNotificationCount** -> DeleteNotificationCountResponse 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 { - DeleteNotificationCountResponse 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 -[**DeleteNotificationCountResponse**](DeleteNotificationCountResponse.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** -> DeletePendingWebhookEventResponse 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 { - DeletePendingWebhookEventResponse 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 -[**DeletePendingWebhookEventResponse**](DeletePendingWebhookEventResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2462,10 +2486,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteQuestionConfig** -> DeleteQuestionConfigResponse 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 { - DeleteQuestionConfigResponse 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 -[**DeleteQuestionConfigResponse**](DeleteQuestionConfigResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2532,10 +2557,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteQuestionResult** -> DeleteQuestionResultResponse 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 { - DeleteQuestionResultResponse 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 -[**DeleteQuestionResultResponse**](DeleteQuestionResultResponse.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** -> DeleteTenantResponse 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 { - DeleteTenantResponse 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 -[**DeleteTenantResponse**](DeleteTenantResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2824,10 +2851,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteTenantPackage** -> DeleteTenantPackageResponse 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 { - DeleteTenantPackageResponse 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 -[**DeleteTenantPackageResponse**](DeleteTenantPackageResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2894,10 +2922,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteTenantUser** -> DeleteTenantUserResponse 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 { - DeleteTenantUserResponse 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 -[**DeleteTenantUserResponse**](DeleteTenantUserResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2970,10 +2999,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteUserBadge** -> DeleteUserBadgeResponse 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 { - DeleteUserBadgeResponse 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 -[**DeleteUserBadgeResponse**](DeleteUserBadgeResponse.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization @@ -3040,10 +3070,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteVote** -> DeleteVoteResponse 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 { - DeleteVoteResponse 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 -[**DeleteVoteResponse**](DeleteVoteResponse.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -3113,10 +3144,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **flagComment** -> FlagCommentResponse1 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 { - FlagCommentResponse1 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 -[**FlagCommentResponse1**](FlagCommentResponse1.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -3189,10 +3221,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getAuditLogs** -> GetAuditLogsResponse1 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 { - GetAuditLogsResponse1 result = apiInstance.getAuditLogs(tenantId) + GetAuditLogsResponse result = apiInstance.getAuditLogs(tenantId) .limit(limit) .skip(skip) .order(order) @@ -3257,7 +3290,7 @@ public class Example { ### Return type -[**GetAuditLogsResponse1**](GetAuditLogsResponse1.md) +[**GetAuditLogsResponse**](GetAuditLogsResponse.md) ### Authorization @@ -3272,10 +3305,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getCachedNotificationCount** -> GetCachedNotificationCountResponse1 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 { - GetCachedNotificationCountResponse1 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 -[**GetCachedNotificationCountResponse1**](GetCachedNotificationCountResponse1.md) +[**GetCachedNotificationCountResponse**](GetCachedNotificationCountResponse.md) ### Authorization @@ -3342,10 +3376,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getComment** -> GetCommentResponse 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 { - GetCommentResponse 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 -[**GetCommentResponse**](GetCommentResponse.md) +[**APIGetCommentResponse**](APIGetCommentResponse.md) ### Authorization @@ -3412,10 +3447,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getComments** -> GetCommentsResponse 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(); +> 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(); @@ -3459,7 +3495,7 @@ public class Example { Long fromDate = 56L; // Long | Long toDate = 56L; // Long | try { - GetCommentsResponse result = apiInstance.getComments(tenantId) + APIGetCommentsResponse result = apiInstance.getComments(tenantId) .page(page) .limit(limit) .skip(skip) @@ -3513,7 +3549,7 @@ public class Example { ### Return type -[**GetCommentsResponse**](GetCommentsResponse.md) +[**APIGetCommentsResponse**](APIGetCommentsResponse.md) ### Authorization @@ -3528,6 +3564,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getDomainConfig** @@ -3669,7 +3706,7 @@ public class Example { # **getEmailTemplate** -> GetEmailTemplateResponse1 getEmailTemplate(tenantId, id).execute(); +> GetEmailTemplateResponse getEmailTemplate(tenantId, id).execute(); @@ -3698,7 +3735,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetEmailTemplateResponse1 result = apiInstance.getEmailTemplate(tenantId, id) + GetEmailTemplateResponse result = apiInstance.getEmailTemplate(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3721,7 +3758,7 @@ public class Example { ### Return type -[**GetEmailTemplateResponse1**](GetEmailTemplateResponse1.md) +[**GetEmailTemplateResponse**](GetEmailTemplateResponse.md) ### Authorization @@ -3736,10 +3773,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getEmailTemplateDefinitions** -> GetEmailTemplateDefinitionsResponse1 getEmailTemplateDefinitions(tenantId).execute(); +> GetEmailTemplateDefinitionsResponse getEmailTemplateDefinitions(tenantId).execute(); @@ -3767,7 +3805,7 @@ public class Example { DefaultApi apiInstance = new DefaultApi(defaultClient); String tenantId = "tenantId_example"; // String | try { - GetEmailTemplateDefinitionsResponse1 result = apiInstance.getEmailTemplateDefinitions(tenantId) + GetEmailTemplateDefinitionsResponse result = apiInstance.getEmailTemplateDefinitions(tenantId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -3789,7 +3827,7 @@ public class Example { ### Return type -[**GetEmailTemplateDefinitionsResponse1**](GetEmailTemplateDefinitionsResponse1.md) +[**GetEmailTemplateDefinitionsResponse**](GetEmailTemplateDefinitionsResponse.md) ### Authorization @@ -3804,10 +3842,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getEmailTemplateRenderErrors** -> GetEmailTemplateRenderErrorsResponse1 getEmailTemplateRenderErrors(tenantId, id).skip(skip).execute(); +> GetEmailTemplateRenderErrorsResponse getEmailTemplateRenderErrors(tenantId, id).skip(skip).execute(); @@ -3837,7 +3876,7 @@ public class Example { String id = "id_example"; // String | Double skip = 3.4D; // Double | try { - GetEmailTemplateRenderErrorsResponse1 result = apiInstance.getEmailTemplateRenderErrors(tenantId, id) + GetEmailTemplateRenderErrorsResponse result = apiInstance.getEmailTemplateRenderErrors(tenantId, id) .skip(skip) .execute(); System.out.println(result); @@ -3862,7 +3901,7 @@ public class Example { ### Return type -[**GetEmailTemplateRenderErrorsResponse1**](GetEmailTemplateRenderErrorsResponse1.md) +[**GetEmailTemplateRenderErrorsResponse**](GetEmailTemplateRenderErrorsResponse.md) ### Authorization @@ -3877,10 +3916,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getEmailTemplates** -> GetEmailTemplatesResponse1 getEmailTemplates(tenantId).skip(skip).execute(); +> GetEmailTemplatesResponse getEmailTemplates(tenantId).skip(skip).execute(); @@ -3909,7 +3949,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetEmailTemplatesResponse1 result = apiInstance.getEmailTemplates(tenantId) + GetEmailTemplatesResponse result = apiInstance.getEmailTemplates(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -3933,7 +3973,7 @@ public class Example { ### Return type -[**GetEmailTemplatesResponse1**](GetEmailTemplatesResponse1.md) +[**GetEmailTemplatesResponse**](GetEmailTemplatesResponse.md) ### Authorization @@ -3948,10 +3988,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getFeedPosts** -> GetFeedPostsResponse1 getFeedPosts(tenantId).afterId(afterId).limit(limit).tags(tags).execute(); +> GetFeedPostsResponse getFeedPosts(tenantId).afterId(afterId).limit(limit).tags(tags).execute(); @@ -3984,7 +4025,7 @@ public class Example { Integer limit = 56; // Integer | List tags = Arrays.asList(); // List | try { - GetFeedPostsResponse1 result = apiInstance.getFeedPosts(tenantId) + GetFeedPostsResponse result = apiInstance.getFeedPosts(tenantId) .afterId(afterId) .limit(limit) .tags(tags) @@ -4012,7 +4053,7 @@ public class Example { ### Return type -[**GetFeedPostsResponse1**](GetFeedPostsResponse1.md) +[**GetFeedPostsResponse**](GetFeedPostsResponse.md) ### Authorization @@ -4027,10 +4068,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getHashTags** -> GetHashTagsResponse1 getHashTags(tenantId).page(page).execute(); +> GetHashTagsResponse getHashTags(tenantId).page(page).execute(); @@ -4059,7 +4101,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double page = 3.4D; // Double | try { - GetHashTagsResponse1 result = apiInstance.getHashTags(tenantId) + GetHashTagsResponse result = apiInstance.getHashTags(tenantId) .page(page) .execute(); System.out.println(result); @@ -4083,7 +4125,7 @@ public class Example { ### Return type -[**GetHashTagsResponse1**](GetHashTagsResponse1.md) +[**GetHashTagsResponse**](GetHashTagsResponse.md) ### Authorization @@ -4098,10 +4140,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getModerator** -> GetModeratorResponse1 getModerator(tenantId, id).execute(); +> GetModeratorResponse getModerator(tenantId, id).execute(); @@ -4130,7 +4173,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetModeratorResponse1 result = apiInstance.getModerator(tenantId, id) + GetModeratorResponse result = apiInstance.getModerator(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -4153,7 +4196,7 @@ public class Example { ### Return type -[**GetModeratorResponse1**](GetModeratorResponse1.md) +[**GetModeratorResponse**](GetModeratorResponse.md) ### Authorization @@ -4168,10 +4211,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getModerators** -> GetModeratorsResponse1 getModerators(tenantId).skip(skip).execute(); +> GetModeratorsResponse getModerators(tenantId).skip(skip).execute(); @@ -4200,7 +4244,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetModeratorsResponse1 result = apiInstance.getModerators(tenantId) + GetModeratorsResponse result = apiInstance.getModerators(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -4224,7 +4268,7 @@ public class Example { ### Return type -[**GetModeratorsResponse1**](GetModeratorsResponse1.md) +[**GetModeratorsResponse**](GetModeratorsResponse.md) ### Authorization @@ -4239,10 +4283,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getNotificationCount** -> GetNotificationCountResponse1 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(); @@ -4275,7 +4320,7 @@ public class Example { Boolean viewed = true; // Boolean | String type = "type_example"; // String | try { - GetNotificationCountResponse1 result = apiInstance.getNotificationCount(tenantId) + GetNotificationCountResponse result = apiInstance.getNotificationCount(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -4307,7 +4352,7 @@ public class Example { ### Return type -[**GetNotificationCountResponse1**](GetNotificationCountResponse1.md) +[**GetNotificationCountResponse**](GetNotificationCountResponse.md) ### Authorization @@ -4322,10 +4367,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getNotifications** -> GetNotificationsResponse1 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(); @@ -4359,7 +4405,7 @@ public class Example { String type = "type_example"; // String | Double skip = 3.4D; // Double | try { - GetNotificationsResponse1 result = apiInstance.getNotifications(tenantId) + GetNotificationsResponse result = apiInstance.getNotifications(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -4393,7 +4439,7 @@ public class Example { ### Return type -[**GetNotificationsResponse1**](GetNotificationsResponse1.md) +[**GetNotificationsResponse**](GetNotificationsResponse.md) ### Authorization @@ -4408,6 +4454,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getPageByURLId** @@ -4549,7 +4596,7 @@ public class Example { # **getPendingWebhookEventCount** -> GetPendingWebhookEventCountResponse1 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(); @@ -4583,7 +4630,7 @@ public class Example { String domain = "domain_example"; // String | Double attemptCountGT = 3.4D; // Double | try { - GetPendingWebhookEventCountResponse1 result = apiInstance.getPendingWebhookEventCount(tenantId) + GetPendingWebhookEventCountResponse result = apiInstance.getPendingWebhookEventCount(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -4617,7 +4664,7 @@ public class Example { ### Return type -[**GetPendingWebhookEventCountResponse1**](GetPendingWebhookEventCountResponse1.md) +[**GetPendingWebhookEventCountResponse**](GetPendingWebhookEventCountResponse.md) ### Authorization @@ -4632,10 +4679,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getPendingWebhookEvents** -> GetPendingWebhookEventsResponse1 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(); @@ -4670,7 +4718,7 @@ public class Example { Double attemptCountGT = 3.4D; // Double | Double skip = 3.4D; // Double | try { - GetPendingWebhookEventsResponse1 result = apiInstance.getPendingWebhookEvents(tenantId) + GetPendingWebhookEventsResponse result = apiInstance.getPendingWebhookEvents(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -4706,7 +4754,7 @@ public class Example { ### Return type -[**GetPendingWebhookEventsResponse1**](GetPendingWebhookEventsResponse1.md) +[**GetPendingWebhookEventsResponse**](GetPendingWebhookEventsResponse.md) ### Authorization @@ -4721,10 +4769,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getQuestionConfig** -> GetQuestionConfigResponse1 getQuestionConfig(tenantId, id).execute(); +> GetQuestionConfigResponse getQuestionConfig(tenantId, id).execute(); @@ -4753,7 +4802,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetQuestionConfigResponse1 result = apiInstance.getQuestionConfig(tenantId, id) + GetQuestionConfigResponse result = apiInstance.getQuestionConfig(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -4776,7 +4825,7 @@ public class Example { ### Return type -[**GetQuestionConfigResponse1**](GetQuestionConfigResponse1.md) +[**GetQuestionConfigResponse**](GetQuestionConfigResponse.md) ### Authorization @@ -4791,10 +4840,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getQuestionConfigs** -> GetQuestionConfigsResponse1 getQuestionConfigs(tenantId).skip(skip).execute(); +> GetQuestionConfigsResponse getQuestionConfigs(tenantId).skip(skip).execute(); @@ -4823,7 +4873,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetQuestionConfigsResponse1 result = apiInstance.getQuestionConfigs(tenantId) + GetQuestionConfigsResponse result = apiInstance.getQuestionConfigs(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -4847,7 +4897,7 @@ public class Example { ### Return type -[**GetQuestionConfigsResponse1**](GetQuestionConfigsResponse1.md) +[**GetQuestionConfigsResponse**](GetQuestionConfigsResponse.md) ### Authorization @@ -4862,10 +4912,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getQuestionResult** -> GetQuestionResultResponse1 getQuestionResult(tenantId, id).execute(); +> GetQuestionResultResponse getQuestionResult(tenantId, id).execute(); @@ -4894,7 +4945,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetQuestionResultResponse1 result = apiInstance.getQuestionResult(tenantId, id) + GetQuestionResultResponse result = apiInstance.getQuestionResult(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -4917,7 +4968,7 @@ public class Example { ### Return type -[**GetQuestionResultResponse1**](GetQuestionResultResponse1.md) +[**GetQuestionResultResponse**](GetQuestionResultResponse.md) ### Authorization @@ -4932,10 +4983,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getQuestionResults** -> GetQuestionResultsResponse1 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(); @@ -4969,7 +5021,7 @@ public class Example { String questionIds = "questionIds_example"; // String | Double skip = 3.4D; // Double | try { - GetQuestionResultsResponse1 result = apiInstance.getQuestionResults(tenantId) + GetQuestionResultsResponse result = apiInstance.getQuestionResults(tenantId) .urlId(urlId) .userId(userId) .startDate(startDate) @@ -5003,7 +5055,7 @@ public class Example { ### Return type -[**GetQuestionResultsResponse1**](GetQuestionResultsResponse1.md) +[**GetQuestionResultsResponse**](GetQuestionResultsResponse.md) ### Authorization @@ -5018,6 +5070,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getSSOUserByEmail** @@ -5303,7 +5356,7 @@ public class Example { # **getTenant** -> GetTenantResponse1 getTenant(tenantId, id).execute(); +> GetTenantResponse getTenant(tenantId, id).execute(); @@ -5332,7 +5385,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetTenantResponse1 result = apiInstance.getTenant(tenantId, id) + GetTenantResponse result = apiInstance.getTenant(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -5355,7 +5408,7 @@ public class Example { ### Return type -[**GetTenantResponse1**](GetTenantResponse1.md) +[**GetTenantResponse**](GetTenantResponse.md) ### Authorization @@ -5370,10 +5423,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenantDailyUsages** -> GetTenantDailyUsagesResponse1 getTenantDailyUsages(tenantId).yearNumber(yearNumber).monthNumber(monthNumber).dayNumber(dayNumber).skip(skip).execute(); +> GetTenantDailyUsagesResponse getTenantDailyUsages(tenantId).yearNumber(yearNumber).monthNumber(monthNumber).dayNumber(dayNumber).skip(skip).execute(); @@ -5405,7 +5459,7 @@ public class Example { Double dayNumber = 3.4D; // Double | Double skip = 3.4D; // Double | try { - GetTenantDailyUsagesResponse1 result = apiInstance.getTenantDailyUsages(tenantId) + GetTenantDailyUsagesResponse result = apiInstance.getTenantDailyUsages(tenantId) .yearNumber(yearNumber) .monthNumber(monthNumber) .dayNumber(dayNumber) @@ -5435,7 +5489,7 @@ public class Example { ### Return type -[**GetTenantDailyUsagesResponse1**](GetTenantDailyUsagesResponse1.md) +[**GetTenantDailyUsagesResponse**](GetTenantDailyUsagesResponse.md) ### Authorization @@ -5450,10 +5504,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenantPackage** -> GetTenantPackageResponse1 getTenantPackage(tenantId, id).execute(); +> GetTenantPackageResponse getTenantPackage(tenantId, id).execute(); @@ -5482,7 +5537,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetTenantPackageResponse1 result = apiInstance.getTenantPackage(tenantId, id) + GetTenantPackageResponse result = apiInstance.getTenantPackage(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -5505,7 +5560,7 @@ public class Example { ### Return type -[**GetTenantPackageResponse1**](GetTenantPackageResponse1.md) +[**GetTenantPackageResponse**](GetTenantPackageResponse.md) ### Authorization @@ -5520,10 +5575,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenantPackages** -> GetTenantPackagesResponse1 getTenantPackages(tenantId).skip(skip).execute(); +> GetTenantPackagesResponse getTenantPackages(tenantId).skip(skip).execute(); @@ -5552,7 +5608,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetTenantPackagesResponse1 result = apiInstance.getTenantPackages(tenantId) + GetTenantPackagesResponse result = apiInstance.getTenantPackages(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -5576,7 +5632,7 @@ public class Example { ### Return type -[**GetTenantPackagesResponse1**](GetTenantPackagesResponse1.md) +[**GetTenantPackagesResponse**](GetTenantPackagesResponse.md) ### Authorization @@ -5591,10 +5647,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenantUser** -> GetTenantUserResponse1 getTenantUser(tenantId, id).execute(); +> GetTenantUserResponse getTenantUser(tenantId, id).execute(); @@ -5623,7 +5680,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetTenantUserResponse1 result = apiInstance.getTenantUser(tenantId, id) + GetTenantUserResponse result = apiInstance.getTenantUser(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -5646,7 +5703,7 @@ public class Example { ### Return type -[**GetTenantUserResponse1**](GetTenantUserResponse1.md) +[**GetTenantUserResponse**](GetTenantUserResponse.md) ### Authorization @@ -5661,10 +5718,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenantUsers** -> GetTenantUsersResponse1 getTenantUsers(tenantId).skip(skip).execute(); +> GetTenantUsersResponse getTenantUsers(tenantId).skip(skip).execute(); @@ -5693,7 +5751,7 @@ public class Example { String tenantId = "tenantId_example"; // String | Double skip = 3.4D; // Double | try { - GetTenantUsersResponse1 result = apiInstance.getTenantUsers(tenantId) + GetTenantUsersResponse result = apiInstance.getTenantUsers(tenantId) .skip(skip) .execute(); System.out.println(result); @@ -5717,7 +5775,7 @@ public class Example { ### Return type -[**GetTenantUsersResponse1**](GetTenantUsersResponse1.md) +[**GetTenantUsersResponse**](GetTenantUsersResponse.md) ### Authorization @@ -5732,10 +5790,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTenants** -> GetTenantsResponse1 getTenants(tenantId).meta(meta).skip(skip).execute(); +> GetTenantsResponse getTenants(tenantId).meta(meta).skip(skip).execute(); @@ -5765,7 +5824,7 @@ public class Example { String meta = "meta_example"; // String | Double skip = 3.4D; // Double | try { - GetTenantsResponse1 result = apiInstance.getTenants(tenantId) + GetTenantsResponse result = apiInstance.getTenants(tenantId) .meta(meta) .skip(skip) .execute(); @@ -5791,7 +5850,7 @@ public class Example { ### Return type -[**GetTenantsResponse1**](GetTenantsResponse1.md) +[**GetTenantsResponse**](GetTenantsResponse.md) ### Authorization @@ -5806,10 +5865,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTicket** -> GetTicketResponse1 getTicket(tenantId, id).userId(userId).execute(); +> GetTicketResponse getTicket(tenantId, id).userId(userId).execute(); @@ -5839,7 +5899,7 @@ public class Example { String id = "id_example"; // String | String userId = "userId_example"; // String | try { - GetTicketResponse1 result = apiInstance.getTicket(tenantId, id) + GetTicketResponse result = apiInstance.getTicket(tenantId, id) .userId(userId) .execute(); System.out.println(result); @@ -5864,7 +5924,7 @@ public class Example { ### Return type -[**GetTicketResponse1**](GetTicketResponse1.md) +[**GetTicketResponse**](GetTicketResponse.md) ### Authorization @@ -5879,10 +5939,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTickets** -> GetTicketsResponse1 getTickets(tenantId).userId(userId).state(state).skip(skip).limit(limit).execute(); +> GetTicketsResponse getTickets(tenantId).userId(userId).state(state).skip(skip).limit(limit).execute(); @@ -5914,7 +5975,7 @@ public class Example { Double skip = 3.4D; // Double | Double limit = 3.4D; // Double | try { - GetTicketsResponse1 result = apiInstance.getTickets(tenantId) + GetTicketsResponse result = apiInstance.getTickets(tenantId) .userId(userId) .state(state) .skip(skip) @@ -5944,7 +6005,7 @@ public class Example { ### Return type -[**GetTicketsResponse1**](GetTicketsResponse1.md) +[**GetTicketsResponse**](GetTicketsResponse.md) ### Authorization @@ -5959,10 +6020,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUser** -> GetUserResponse1 getUser(tenantId, id).execute(); +> GetUserResponse getUser(tenantId, id).execute(); @@ -5991,7 +6053,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetUserResponse1 result = apiInstance.getUser(tenantId, id) + GetUserResponse result = apiInstance.getUser(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6014,7 +6076,7 @@ public class Example { ### Return type -[**GetUserResponse1**](GetUserResponse1.md) +[**GetUserResponse**](GetUserResponse.md) ### Authorization @@ -6029,10 +6091,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserBadge** -> GetUserBadgeResponse getUserBadge(tenantId, id).execute(); +> APIGetUserBadgeResponse getUserBadge(tenantId, id).execute(); @@ -6061,7 +6124,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetUserBadgeResponse result = apiInstance.getUserBadge(tenantId, id) + APIGetUserBadgeResponse result = apiInstance.getUserBadge(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6084,7 +6147,7 @@ public class Example { ### Return type -[**GetUserBadgeResponse**](GetUserBadgeResponse.md) +[**APIGetUserBadgeResponse**](APIGetUserBadgeResponse.md) ### Authorization @@ -6099,10 +6162,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserBadgeProgressById** -> GetUserBadgeProgressByIdResponse getUserBadgeProgressById(tenantId, id).execute(); +> APIGetUserBadgeProgressResponse getUserBadgeProgressById(tenantId, id).execute(); @@ -6131,7 +6195,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String id = "id_example"; // String | try { - GetUserBadgeProgressByIdResponse result = apiInstance.getUserBadgeProgressById(tenantId, id) + APIGetUserBadgeProgressResponse result = apiInstance.getUserBadgeProgressById(tenantId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6154,7 +6218,7 @@ public class Example { ### Return type -[**GetUserBadgeProgressByIdResponse**](GetUserBadgeProgressByIdResponse.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -6169,10 +6233,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserBadgeProgressByUserId** -> GetUserBadgeProgressByUserIdResponse getUserBadgeProgressByUserId(tenantId, userId).execute(); +> APIGetUserBadgeProgressResponse getUserBadgeProgressByUserId(tenantId, userId).execute(); @@ -6201,7 +6266,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String userId = "userId_example"; // String | try { - GetUserBadgeProgressByUserIdResponse result = apiInstance.getUserBadgeProgressByUserId(tenantId, userId) + APIGetUserBadgeProgressResponse result = apiInstance.getUserBadgeProgressByUserId(tenantId, userId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6224,7 +6289,7 @@ public class Example { ### Return type -[**GetUserBadgeProgressByUserIdResponse**](GetUserBadgeProgressByUserIdResponse.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -6239,10 +6304,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserBadgeProgressList** -> GetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId).userId(userId).limit(limit).skip(skip).execute(); +> APIGetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId).userId(userId).limit(limit).skip(skip).execute(); @@ -6273,7 +6339,7 @@ public class Example { Double limit = 3.4D; // Double | Double skip = 3.4D; // Double | try { - GetUserBadgeProgressListResponse result = apiInstance.getUserBadgeProgressList(tenantId) + APIGetUserBadgeProgressListResponse result = apiInstance.getUserBadgeProgressList(tenantId) .userId(userId) .limit(limit) .skip(skip) @@ -6301,7 +6367,7 @@ public class Example { ### Return type -[**GetUserBadgeProgressListResponse**](GetUserBadgeProgressListResponse.md) +[**APIGetUserBadgeProgressListResponse**](APIGetUserBadgeProgressListResponse.md) ### Authorization @@ -6316,10 +6382,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserBadges** -> GetUserBadgesResponse 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(); @@ -6353,7 +6420,7 @@ public class Example { Double limit = 3.4D; // Double | Double skip = 3.4D; // Double | try { - GetUserBadgesResponse result = apiInstance.getUserBadges(tenantId) + APIGetUserBadgesResponse result = apiInstance.getUserBadges(tenantId) .userId(userId) .badgeId(badgeId) .type(type) @@ -6387,7 +6454,7 @@ public class Example { ### Return type -[**GetUserBadgesResponse**](GetUserBadgesResponse.md) +[**APIGetUserBadgesResponse**](APIGetUserBadgesResponse.md) ### Authorization @@ -6402,10 +6469,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getVotes** -> GetVotesResponse1 getVotes(tenantId, urlId).execute(); +> GetVotesResponse getVotes(tenantId, urlId).execute(); @@ -6434,7 +6502,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | try { - GetVotesResponse1 result = apiInstance.getVotes(tenantId, urlId) + GetVotesResponse result = apiInstance.getVotes(tenantId, urlId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -6457,7 +6525,7 @@ public class Example { ### Return type -[**GetVotesResponse1**](GetVotesResponse1.md) +[**GetVotesResponse**](GetVotesResponse.md) ### Authorization @@ -6472,10 +6540,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getVotesForUser** -> GetVotesForUserResponse1 getVotesForUser(tenantId, urlId).userId(userId).anonUserId(anonUserId).execute(); +> GetVotesForUserResponse getVotesForUser(tenantId, urlId).userId(userId).anonUserId(anonUserId).execute(); @@ -6506,7 +6575,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - GetVotesForUserResponse1 result = apiInstance.getVotesForUser(tenantId, urlId) + GetVotesForUserResponse result = apiInstance.getVotesForUser(tenantId, urlId) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -6533,7 +6602,7 @@ public class Example { ### Return type -[**GetVotesForUserResponse1**](GetVotesForUserResponse1.md) +[**GetVotesForUserResponse**](GetVotesForUserResponse.md) ### Authorization @@ -6548,6 +6617,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **patchDomainConfig** @@ -6623,7 +6693,7 @@ public class Example { # **patchHashTag** -> PatchHashTagResponse patchHashTag(tag).tenantId(tenantId).updateHashTagBody(updateHashTagBody).execute(); +> UpdateHashTagResponse patchHashTag(tag).tenantId(tenantId).updateHashTagBody(updateHashTagBody).execute(); @@ -6653,7 +6723,7 @@ public class Example { String tenantId = "tenantId_example"; // String | UpdateHashTagBody updateHashTagBody = new UpdateHashTagBody(); // UpdateHashTagBody | try { - PatchHashTagResponse result = apiInstance.patchHashTag(tag) + UpdateHashTagResponse result = apiInstance.patchHashTag(tag) .tenantId(tenantId) .updateHashTagBody(updateHashTagBody) .execute(); @@ -6679,7 +6749,7 @@ public class Example { ### Return type -[**PatchHashTagResponse**](PatchHashTagResponse.md) +[**UpdateHashTagResponse**](UpdateHashTagResponse.md) ### Authorization @@ -6694,6 +6764,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **patchPage** @@ -6991,7 +7062,7 @@ public class Example { # **renderEmailTemplate** -> RenderEmailTemplateResponse1 renderEmailTemplate(tenantId, renderEmailTemplateBody).locale(locale).execute(); +> RenderEmailTemplateResponse renderEmailTemplate(tenantId, renderEmailTemplateBody).locale(locale).execute(); @@ -7021,7 +7092,7 @@ public class Example { RenderEmailTemplateBody renderEmailTemplateBody = new RenderEmailTemplateBody(); // RenderEmailTemplateBody | String locale = "locale_example"; // String | try { - RenderEmailTemplateResponse1 result = apiInstance.renderEmailTemplate(tenantId, renderEmailTemplateBody) + RenderEmailTemplateResponse result = apiInstance.renderEmailTemplate(tenantId, renderEmailTemplateBody) .locale(locale) .execute(); System.out.println(result); @@ -7046,7 +7117,7 @@ public class Example { ### Return type -[**RenderEmailTemplateResponse1**](RenderEmailTemplateResponse1.md) +[**RenderEmailTemplateResponse**](RenderEmailTemplateResponse.md) ### Authorization @@ -7061,10 +7132,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **replaceTenantPackage** -> ReplaceTenantPackageResponse replaceTenantPackage(tenantId, id, replaceTenantPackageBody).execute(); +> APIEmptyResponse replaceTenantPackage(tenantId, id, replaceTenantPackageBody).execute(); @@ -7094,7 +7166,7 @@ public class Example { String id = "id_example"; // String | ReplaceTenantPackageBody replaceTenantPackageBody = new ReplaceTenantPackageBody(); // ReplaceTenantPackageBody | try { - ReplaceTenantPackageResponse result = apiInstance.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) + APIEmptyResponse result = apiInstance.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7118,7 +7190,7 @@ public class Example { ### Return type -[**ReplaceTenantPackageResponse**](ReplaceTenantPackageResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7133,10 +7205,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **replaceTenantUser** -> ReplaceTenantUserResponse replaceTenantUser(tenantId, id, replaceTenantUserBody).updateComments(updateComments).execute(); +> APIEmptyResponse replaceTenantUser(tenantId, id, replaceTenantUserBody).updateComments(updateComments).execute(); @@ -7167,7 +7240,7 @@ public class Example { ReplaceTenantUserBody replaceTenantUserBody = new ReplaceTenantUserBody(); // ReplaceTenantUserBody | String updateComments = "updateComments_example"; // String | try { - ReplaceTenantUserResponse result = apiInstance.replaceTenantUser(tenantId, id, replaceTenantUserBody) + APIEmptyResponse result = apiInstance.replaceTenantUser(tenantId, id, replaceTenantUserBody) .updateComments(updateComments) .execute(); System.out.println(result); @@ -7193,7 +7266,7 @@ public class Example { ### Return type -[**ReplaceTenantUserResponse**](ReplaceTenantUserResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7208,10 +7281,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **saveComment** -> SaveCommentResponse 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(); @@ -7244,7 +7318,7 @@ public class Example { Boolean sendEmails = true; // Boolean | Boolean populateNotifications = true; // Boolean | try { - SaveCommentResponse result = apiInstance.saveComment(tenantId, createCommentParams) + APISaveCommentResponse result = apiInstance.saveComment(tenantId, createCommentParams) .isLive(isLive) .doSpamCheck(doSpamCheck) .sendEmails(sendEmails) @@ -7275,7 +7349,7 @@ public class Example { ### Return type -[**SaveCommentResponse**](SaveCommentResponse.md) +[**APISaveCommentResponse**](APISaveCommentResponse.md) ### Authorization @@ -7290,6 +7364,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **saveCommentsBulk** @@ -7375,7 +7450,7 @@ public class Example { # **sendInvite** -> SendInviteResponse sendInvite(tenantId, id, fromName).execute(); +> APIEmptyResponse sendInvite(tenantId, id, fromName).execute(); @@ -7405,7 +7480,7 @@ public class Example { String id = "id_example"; // String | String fromName = "fromName_example"; // String | try { - SendInviteResponse result = apiInstance.sendInvite(tenantId, id, fromName) + APIEmptyResponse result = apiInstance.sendInvite(tenantId, id, fromName) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7429,7 +7504,7 @@ public class Example { ### Return type -[**SendInviteResponse**](SendInviteResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7444,10 +7519,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **sendLoginLink** -> SendLoginLinkResponse sendLoginLink(tenantId, id).redirectURL(redirectURL).execute(); +> APIEmptyResponse sendLoginLink(tenantId, id).redirectURL(redirectURL).execute(); @@ -7477,7 +7553,7 @@ public class Example { String id = "id_example"; // String | String redirectURL = "redirectURL_example"; // String | try { - SendLoginLinkResponse result = apiInstance.sendLoginLink(tenantId, id) + APIEmptyResponse result = apiInstance.sendLoginLink(tenantId, id) .redirectURL(redirectURL) .execute(); System.out.println(result); @@ -7502,7 +7578,7 @@ public class Example { ### Return type -[**SendLoginLinkResponse**](SendLoginLinkResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7517,10 +7593,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **unBlockUserFromComment** -> UnBlockUserFromCommentResponse unBlockUserFromComment(tenantId, id, unBlockFromCommentParams).userId(userId).anonUserId(anonUserId).execute(); +> UnblockSuccess unBlockUserFromComment(tenantId, id, unBlockFromCommentParams).userId(userId).anonUserId(anonUserId).execute(); @@ -7552,7 +7629,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - UnBlockUserFromCommentResponse result = apiInstance.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) + UnblockSuccess result = apiInstance.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -7580,7 +7657,7 @@ public class Example { ### Return type -[**UnBlockUserFromCommentResponse**](UnBlockUserFromCommentResponse.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -7595,10 +7672,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **unFlagComment** -> UnFlagCommentResponse unFlagComment(tenantId, id).userId(userId).anonUserId(anonUserId).execute(); +> FlagCommentResponse unFlagComment(tenantId, id).userId(userId).anonUserId(anonUserId).execute(); @@ -7629,7 +7707,7 @@ public class Example { String userId = "userId_example"; // String | String anonUserId = "anonUserId_example"; // String | try { - UnFlagCommentResponse result = apiInstance.unFlagComment(tenantId, id) + FlagCommentResponse result = apiInstance.unFlagComment(tenantId, id) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -7656,7 +7734,7 @@ public class Example { ### Return type -[**UnFlagCommentResponse**](UnFlagCommentResponse.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -7671,10 +7749,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateComment** -> UpdateCommentResponse updateComment(tenantId, id, updatableCommentParams).contextUserId(contextUserId).doSpamCheck(doSpamCheck).isLive(isLive).execute(); +> APIEmptyResponse updateComment(tenantId, id, updatableCommentParams).contextUserId(contextUserId).doSpamCheck(doSpamCheck).isLive(isLive).execute(); @@ -7707,7 +7786,7 @@ public class Example { Boolean doSpamCheck = true; // Boolean | Boolean isLive = true; // Boolean | try { - UpdateCommentResponse result = apiInstance.updateComment(tenantId, id, updatableCommentParams) + APIEmptyResponse result = apiInstance.updateComment(tenantId, id, updatableCommentParams) .contextUserId(contextUserId) .doSpamCheck(doSpamCheck) .isLive(isLive) @@ -7737,7 +7816,7 @@ public class Example { ### Return type -[**UpdateCommentResponse**](UpdateCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7752,10 +7831,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateEmailTemplate** -> UpdateEmailTemplateResponse updateEmailTemplate(tenantId, id, updateEmailTemplateBody).execute(); +> APIEmptyResponse updateEmailTemplate(tenantId, id, updateEmailTemplateBody).execute(); @@ -7785,7 +7865,7 @@ public class Example { String id = "id_example"; // String | UpdateEmailTemplateBody updateEmailTemplateBody = new UpdateEmailTemplateBody(); // UpdateEmailTemplateBody | try { - UpdateEmailTemplateResponse result = apiInstance.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) + APIEmptyResponse result = apiInstance.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7809,7 +7889,7 @@ public class Example { ### Return type -[**UpdateEmailTemplateResponse**](UpdateEmailTemplateResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7824,10 +7904,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateFeedPost** -> UpdateFeedPostResponse updateFeedPost(tenantId, id, feedPost).execute(); +> APIEmptyResponse updateFeedPost(tenantId, id, feedPost).execute(); @@ -7857,7 +7938,7 @@ public class Example { String id = "id_example"; // String | FeedPost feedPost = new FeedPost(); // FeedPost | try { - UpdateFeedPostResponse result = apiInstance.updateFeedPost(tenantId, id, feedPost) + APIEmptyResponse result = apiInstance.updateFeedPost(tenantId, id, feedPost) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7881,7 +7962,7 @@ public class Example { ### Return type -[**UpdateFeedPostResponse**](UpdateFeedPostResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7896,10 +7977,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateModerator** -> UpdateModeratorResponse updateModerator(tenantId, id, updateModeratorBody).execute(); +> APIEmptyResponse updateModerator(tenantId, id, updateModeratorBody).execute(); @@ -7929,7 +8011,7 @@ public class Example { String id = "id_example"; // String | UpdateModeratorBody updateModeratorBody = new UpdateModeratorBody(); // UpdateModeratorBody | try { - UpdateModeratorResponse result = apiInstance.updateModerator(tenantId, id, updateModeratorBody) + APIEmptyResponse result = apiInstance.updateModerator(tenantId, id, updateModeratorBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -7953,7 +8035,7 @@ public class Example { ### Return type -[**UpdateModeratorResponse**](UpdateModeratorResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7968,10 +8050,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateNotification** -> UpdateNotificationResponse updateNotification(tenantId, id, updateNotificationBody).userId(userId).execute(); +> APIEmptyResponse updateNotification(tenantId, id, updateNotificationBody).userId(userId).execute(); @@ -8002,7 +8085,7 @@ public class Example { UpdateNotificationBody updateNotificationBody = new UpdateNotificationBody(); // UpdateNotificationBody | String userId = "userId_example"; // String | try { - UpdateNotificationResponse result = apiInstance.updateNotification(tenantId, id, updateNotificationBody) + APIEmptyResponse result = apiInstance.updateNotification(tenantId, id, updateNotificationBody) .userId(userId) .execute(); System.out.println(result); @@ -8028,7 +8111,7 @@ public class Example { ### Return type -[**UpdateNotificationResponse**](UpdateNotificationResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8043,10 +8126,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateQuestionConfig** -> UpdateQuestionConfigResponse updateQuestionConfig(tenantId, id, updateQuestionConfigBody).execute(); +> APIEmptyResponse updateQuestionConfig(tenantId, id, updateQuestionConfigBody).execute(); @@ -8076,7 +8160,7 @@ public class Example { String id = "id_example"; // String | UpdateQuestionConfigBody updateQuestionConfigBody = new UpdateQuestionConfigBody(); // UpdateQuestionConfigBody | try { - UpdateQuestionConfigResponse result = apiInstance.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) + APIEmptyResponse result = apiInstance.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8100,7 +8184,7 @@ public class Example { ### Return type -[**UpdateQuestionConfigResponse**](UpdateQuestionConfigResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8115,10 +8199,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateQuestionResult** -> UpdateQuestionResultResponse updateQuestionResult(tenantId, id, updateQuestionResultBody).execute(); +> APIEmptyResponse updateQuestionResult(tenantId, id, updateQuestionResultBody).execute(); @@ -8148,7 +8233,7 @@ public class Example { String id = "id_example"; // String | UpdateQuestionResultBody updateQuestionResultBody = new UpdateQuestionResultBody(); // UpdateQuestionResultBody | try { - UpdateQuestionResultResponse result = apiInstance.updateQuestionResult(tenantId, id, updateQuestionResultBody) + APIEmptyResponse result = apiInstance.updateQuestionResult(tenantId, id, updateQuestionResultBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8172,7 +8257,7 @@ public class Example { ### Return type -[**UpdateQuestionResultResponse**](UpdateQuestionResultResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8187,6 +8272,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateSubscription** @@ -8265,7 +8351,7 @@ public class Example { # **updateTenant** -> UpdateTenantResponse updateTenant(tenantId, id, updateTenantBody).execute(); +> APIEmptyResponse updateTenant(tenantId, id, updateTenantBody).execute(); @@ -8295,7 +8381,7 @@ public class Example { String id = "id_example"; // String | UpdateTenantBody updateTenantBody = new UpdateTenantBody(); // UpdateTenantBody | try { - UpdateTenantResponse result = apiInstance.updateTenant(tenantId, id, updateTenantBody) + APIEmptyResponse result = apiInstance.updateTenant(tenantId, id, updateTenantBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8319,7 +8405,7 @@ public class Example { ### Return type -[**UpdateTenantResponse**](UpdateTenantResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8334,10 +8420,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateTenantPackage** -> UpdateTenantPackageResponse updateTenantPackage(tenantId, id, updateTenantPackageBody).execute(); +> APIEmptyResponse updateTenantPackage(tenantId, id, updateTenantPackageBody).execute(); @@ -8367,7 +8454,7 @@ public class Example { String id = "id_example"; // String | UpdateTenantPackageBody updateTenantPackageBody = new UpdateTenantPackageBody(); // UpdateTenantPackageBody | try { - UpdateTenantPackageResponse result = apiInstance.updateTenantPackage(tenantId, id, updateTenantPackageBody) + APIEmptyResponse result = apiInstance.updateTenantPackage(tenantId, id, updateTenantPackageBody) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8391,7 +8478,7 @@ public class Example { ### Return type -[**UpdateTenantPackageResponse**](UpdateTenantPackageResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8406,10 +8493,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateTenantUser** -> UpdateTenantUserResponse updateTenantUser(tenantId, id, updateTenantUserBody).updateComments(updateComments).execute(); +> APIEmptyResponse updateTenantUser(tenantId, id, updateTenantUserBody).updateComments(updateComments).execute(); @@ -8440,7 +8528,7 @@ public class Example { UpdateTenantUserBody updateTenantUserBody = new UpdateTenantUserBody(); // UpdateTenantUserBody | String updateComments = "updateComments_example"; // String | try { - UpdateTenantUserResponse result = apiInstance.updateTenantUser(tenantId, id, updateTenantUserBody) + APIEmptyResponse result = apiInstance.updateTenantUser(tenantId, id, updateTenantUserBody) .updateComments(updateComments) .execute(); System.out.println(result); @@ -8466,7 +8554,7 @@ public class Example { ### Return type -[**UpdateTenantUserResponse**](UpdateTenantUserResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8481,10 +8569,11 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateUserBadge** -> UpdateUserBadgeResponse updateUserBadge(tenantId, id, updateUserBadgeParams).execute(); +> APIEmptySuccessResponse updateUserBadge(tenantId, id, updateUserBadgeParams).execute(); @@ -8514,7 +8603,7 @@ public class Example { String id = "id_example"; // String | UpdateUserBadgeParams updateUserBadgeParams = new UpdateUserBadgeParams(); // UpdateUserBadgeParams | try { - UpdateUserBadgeResponse result = apiInstance.updateUserBadge(tenantId, id, updateUserBadgeParams) + APIEmptySuccessResponse result = apiInstance.updateUserBadge(tenantId, id, updateUserBadgeParams) .execute(); System.out.println(result); } catch (ApiException e) { @@ -8538,7 +8627,7 @@ public class Example { ### Return type -[**UpdateUserBadgeResponse**](UpdateUserBadgeResponse.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization @@ -8553,4 +8642,5 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | diff --git a/client/docs/DeleteCommentPublicResponse.md b/client/docs/DeleteCommentPublicResponse.md deleted file mode 100644 index 6a2dca83..00000000 --- a/client/docs/DeleteCommentPublicResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# DeleteCommentPublicResponse - - -## 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/DeleteCommentResponse.md b/client/docs/DeleteCommentResponse.md deleted file mode 100644 index 3cbd8b32..00000000 --- a/client/docs/DeleteCommentResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# DeleteCommentResponse - - -## 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/DeleteCommentVoteResponse.md b/client/docs/DeleteCommentVoteResponse.md deleted file mode 100644 index fb6797e2..00000000 --- a/client/docs/DeleteCommentVoteResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# DeleteCommentVoteResponse - - -## 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/DeleteEmailTemplateRenderErrorResponse.md b/client/docs/DeleteEmailTemplateRenderErrorResponse.md deleted file mode 100644 index dc9e39ec..00000000 --- a/client/docs/DeleteEmailTemplateRenderErrorResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteEmailTemplateRenderErrorResponse - - -## 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/DeleteEmailTemplateResponse.md b/client/docs/DeleteEmailTemplateResponse.md deleted file mode 100644 index 32e8a9f7..00000000 --- a/client/docs/DeleteEmailTemplateResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteEmailTemplateResponse - - -## 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/DeleteFeedPostPublicResponse.md b/client/docs/DeleteFeedPostPublicResponse.md index 0064c4b8..e2c37493 100644 --- a/client/docs/DeleteFeedPostPublicResponse.md +++ b/client/docs/DeleteFeedPostPublicResponse.md @@ -8,13 +8,6 @@ | 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/DeleteFeedPostPublicResponseAnyOf.md b/client/docs/DeleteFeedPostPublicResponseAnyOf.md deleted file mode 100644 index 571e8c85..00000000 --- a/client/docs/DeleteFeedPostPublicResponseAnyOf.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# DeleteFeedPostPublicResponseAnyOf - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | - - - diff --git a/client/docs/DeleteHashTagResponse.md b/client/docs/DeleteHashTagResponse.md deleted file mode 100644 index a47050eb..00000000 --- a/client/docs/DeleteHashTagResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteHashTagResponse - - -## 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/DeleteModerationVoteResponse.md b/client/docs/DeleteModerationVoteResponse.md deleted file mode 100644 index a25d3287..00000000 --- a/client/docs/DeleteModerationVoteResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# DeleteModerationVoteResponse - - -## 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/DeleteModeratorResponse.md b/client/docs/DeleteModeratorResponse.md deleted file mode 100644 index 46ffe81d..00000000 --- a/client/docs/DeleteModeratorResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteModeratorResponse - - -## 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/DeleteNotificationCountResponse.md b/client/docs/DeleteNotificationCountResponse.md deleted file mode 100644 index 9153b221..00000000 --- a/client/docs/DeleteNotificationCountResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteNotificationCountResponse - - -## 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/DeletePendingWebhookEventResponse.md b/client/docs/DeletePendingWebhookEventResponse.md deleted file mode 100644 index e0a45221..00000000 --- a/client/docs/DeletePendingWebhookEventResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeletePendingWebhookEventResponse - - -## 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/DeleteQuestionConfigResponse.md b/client/docs/DeleteQuestionConfigResponse.md deleted file mode 100644 index 58b9cb8f..00000000 --- a/client/docs/DeleteQuestionConfigResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteQuestionConfigResponse - - -## 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/DeleteQuestionResultResponse.md b/client/docs/DeleteQuestionResultResponse.md deleted file mode 100644 index 12ae9e1f..00000000 --- a/client/docs/DeleteQuestionResultResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteQuestionResultResponse - - -## 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/DeleteTenantPackageResponse.md b/client/docs/DeleteTenantPackageResponse.md deleted file mode 100644 index 44b435d4..00000000 --- a/client/docs/DeleteTenantPackageResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteTenantPackageResponse - - -## 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/DeleteTenantResponse.md b/client/docs/DeleteTenantResponse.md deleted file mode 100644 index 2ac0a372..00000000 --- a/client/docs/DeleteTenantResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteTenantResponse - - -## 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/DeleteTenantUserResponse.md b/client/docs/DeleteTenantUserResponse.md deleted file mode 100644 index 8ce29b77..00000000 --- a/client/docs/DeleteTenantUserResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteTenantUserResponse - - -## 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/DeleteUserBadgeResponse.md b/client/docs/DeleteUserBadgeResponse.md deleted file mode 100644 index 304ab358..00000000 --- a/client/docs/DeleteUserBadgeResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteUserBadgeResponse - - -## 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/DeleteV1PageReactResponse.md b/client/docs/DeleteV1PageReactResponse.md deleted file mode 100644 index ff6c11e9..00000000 --- a/client/docs/DeleteV1PageReactResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteV1PageReactResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | | [optional] | -|**status** | **APIStatus** | | | -|**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/DeleteV2PageReactResponse.md b/client/docs/DeleteV2PageReactResponse.md deleted file mode 100644 index a4cd130f..00000000 --- a/client/docs/DeleteV2PageReactResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# DeleteV2PageReactResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | **String** | | [optional] | -|**status** | **APIStatus** | | | -|**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/DeleteVoteResponse.md b/client/docs/DeleteVoteResponse.md deleted file mode 100644 index d58c5430..00000000 --- a/client/docs/DeleteVoteResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# DeleteVoteResponse - - -## 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/FlagCommentPublicResponse.md b/client/docs/FlagCommentPublicResponse.md deleted file mode 100644 index 8860d008..00000000 --- a/client/docs/FlagCommentPublicResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# FlagCommentPublicResponse - - -## 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/FlagCommentResponse1.md b/client/docs/FlagCommentResponse1.md deleted file mode 100644 index 5abf2b6b..00000000 --- a/client/docs/FlagCommentResponse1.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# FlagCommentResponse1 - - -## 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/GetApiCommentsResponse.md b/client/docs/GetApiCommentsResponse.md deleted file mode 100644 index 533a95e5..00000000 --- a/client/docs/GetApiCommentsResponse.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# GetApiCommentsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**translations** | **Object** | | [optional] | -|**comments** | [**List<ModerationAPIComment>**](ModerationAPIComment.md) | | [optional] | -|**moderationFilter** | [**ModerationFilter**](ModerationFilter.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/GetApiExportStatusResponse.md b/client/docs/GetApiExportStatusResponse.md deleted file mode 100644 index e506761c..00000000 --- a/client/docs/GetApiExportStatusResponse.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# GetApiExportStatusResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**jobStatus** | **String** | | [optional] | -|**recordCount** | **Integer** | | [optional] | -|**downloadUrl** | **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/GetApiIdsResponse.md b/client/docs/GetApiIdsResponse.md deleted file mode 100644 index c64b0d68..00000000 --- a/client/docs/GetApiIdsResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetApiIdsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**ids** | **List<String>** | | [optional] | -|**hasMore** | **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/GetAuditLogsResponse1.md b/client/docs/GetAuditLogsResponse1.md deleted file mode 100644 index 5fada3bc..00000000 --- a/client/docs/GetAuditLogsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetAuditLogsResponse1 - - -## 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/GetBanUsersFromCommentResponse.md b/client/docs/GetBanUsersFromCommentResponse.md deleted file mode 100644 index 6b96c20e..00000000 --- a/client/docs/GetBanUsersFromCommentResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetBanUsersFromCommentResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**bannedUsers** | [**List<APIBannedUserWithMultiMatchInfo>**](APIBannedUserWithMultiMatchInfo.md) | | [optional] | -|**code** | **String** | | [optional] | -|**status** | **APIStatus** | | | -|**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/GetCachedNotificationCountResponse1.md b/client/docs/GetCachedNotificationCountResponse1.md deleted file mode 100644 index 0824b6fa..00000000 --- a/client/docs/GetCachedNotificationCountResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetCachedNotificationCountResponse1 - - -## 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/GetCommentBanStatusResponse1.md b/client/docs/GetCommentBanStatusResponse1.md deleted file mode 100644 index 9a57ff2f..00000000 --- a/client/docs/GetCommentBanStatusResponse1.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetCommentBanStatusResponse1 - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**emailDomain** | **String** | | [optional] | -|**canIPBan** | **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/GetCommentChildrenResponse.md b/client/docs/GetCommentChildrenResponse.md deleted file mode 100644 index 5fe411db..00000000 --- a/client/docs/GetCommentChildrenResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetCommentChildrenResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**comments** | [**List<ModerationAPIComment>**](ModerationAPIComment.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/GetCommentResponse.md b/client/docs/GetCommentResponse.md deleted file mode 100644 index 46264060..00000000 --- a/client/docs/GetCommentResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetCommentResponse - - -## 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/GetCommentTextResponse1.md b/client/docs/GetCommentTextResponse1.md deleted file mode 100644 index 2eda87c3..00000000 --- a/client/docs/GetCommentTextResponse1.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetCommentTextResponse1 - - -## 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/GetCommentVoteUserNamesResponse.md b/client/docs/GetCommentVoteUserNamesResponse.md deleted file mode 100644 index 647c567b..00000000 --- a/client/docs/GetCommentVoteUserNamesResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetCommentVoteUserNamesResponse - - -## 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/GetCommentsForUserResponse1.md b/client/docs/GetCommentsForUserResponse1.md deleted file mode 100644 index 103df2f1..00000000 --- a/client/docs/GetCommentsForUserResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetCommentsForUserResponse1 - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**moderatingTenantIds** | **List<String>** | | [optional] | -|**status** | **APIStatus** | | [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/GetCommentsPublicResponse.md b/client/docs/GetCommentsPublicResponse.md deleted file mode 100644 index fa35fa39..00000000 --- a/client/docs/GetCommentsPublicResponse.md +++ /dev/null @@ -1,43 +0,0 @@ - - -# GetCommentsPublicResponse - - -## 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/GetCommentsResponse.md b/client/docs/GetCommentsResponse.md deleted file mode 100644 index 5956aea7..00000000 --- a/client/docs/GetCommentsResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetCommentsResponse - - -## 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/GetCountResponse.md b/client/docs/GetCountResponse.md deleted file mode 100644 index 6dd60c63..00000000 --- a/client/docs/GetCountResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetCountResponse - - -## 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/GetCountsResponse.md b/client/docs/GetCountsResponse.md deleted file mode 100644 index 5df77518..00000000 --- a/client/docs/GetCountsResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetCountsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**totalCount** | **Double** | | [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/GetEmailTemplateDefinitionsResponse1.md b/client/docs/GetEmailTemplateDefinitionsResponse1.md deleted file mode 100644 index 1830298e..00000000 --- a/client/docs/GetEmailTemplateDefinitionsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetEmailTemplateDefinitionsResponse1 - - -## 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/GetEmailTemplateRenderErrorsResponse1.md b/client/docs/GetEmailTemplateRenderErrorsResponse1.md deleted file mode 100644 index d0cc5c8c..00000000 --- a/client/docs/GetEmailTemplateRenderErrorsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetEmailTemplateRenderErrorsResponse1 - - -## 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/GetEmailTemplateResponse1.md b/client/docs/GetEmailTemplateResponse1.md deleted file mode 100644 index c0eb3e38..00000000 --- a/client/docs/GetEmailTemplateResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetEmailTemplateResponse1 - - -## 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/GetEmailTemplatesResponse1.md b/client/docs/GetEmailTemplatesResponse1.md deleted file mode 100644 index 008bbbb5..00000000 --- a/client/docs/GetEmailTemplatesResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetEmailTemplatesResponse1 - - -## 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/GetEventLogResponse1.md b/client/docs/GetEventLogResponse1.md deleted file mode 100644 index 7832cef0..00000000 --- a/client/docs/GetEventLogResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetEventLogResponse1 - - -## 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/GetFeedPostsPublicResponse.md b/client/docs/GetFeedPostsPublicResponse.md deleted file mode 100644 index 2cf2a41b..00000000 --- a/client/docs/GetFeedPostsPublicResponse.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# GetFeedPostsPublicResponse - - -## 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/GetFeedPostsResponse1.md b/client/docs/GetFeedPostsResponse1.md deleted file mode 100644 index d949f200..00000000 --- a/client/docs/GetFeedPostsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetFeedPostsResponse1 - - -## 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/GetFeedPostsStatsResponse.md b/client/docs/GetFeedPostsStatsResponse.md deleted file mode 100644 index ce353590..00000000 --- a/client/docs/GetFeedPostsStatsResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetFeedPostsStatsResponse - - -## 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/GetGifLargeResponse.md b/client/docs/GetGifLargeResponse.md deleted file mode 100644 index a01fc4e4..00000000 --- a/client/docs/GetGifLargeResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetGifLargeResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**src** | **String** | | [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/GetGifsSearchResponse.md b/client/docs/GetGifsSearchResponse.md index 77d1a79b..fce3ff89 100644 --- a/client/docs/GetGifsSearchResponse.md +++ b/client/docs/GetGifsSearchResponse.md @@ -10,12 +10,6 @@ |**images** | **List<List<GifSearchResponseImagesInnerInner>>** | | [optional] | |**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/GetGlobalEventLogResponse.md b/client/docs/GetGlobalEventLogResponse.md deleted file mode 100644 index 86487d99..00000000 --- a/client/docs/GetGlobalEventLogResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetGlobalEventLogResponse - - -## 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/GetHashTagsResponse1.md b/client/docs/GetHashTagsResponse1.md deleted file mode 100644 index d1979dcf..00000000 --- a/client/docs/GetHashTagsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetHashTagsResponse1 - - -## 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/GetLogsResponse.md b/client/docs/GetLogsResponse.md deleted file mode 100644 index ec1927f4..00000000 --- a/client/docs/GetLogsResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetLogsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**logs** | [**List<ModerationAPICommentLog>**](ModerationAPICommentLog.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/GetManualBadgesForUserResponse.md b/client/docs/GetManualBadgesForUserResponse.md deleted file mode 100644 index a8cff748..00000000 --- a/client/docs/GetManualBadgesForUserResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetManualBadgesForUserResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**badges** | [**List<UserBadge>**](UserBadge.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/GetManualBadgesResponse.md b/client/docs/GetManualBadgesResponse.md deleted file mode 100644 index 84f98b12..00000000 --- a/client/docs/GetManualBadgesResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetManualBadgesResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**badges** | [**List<TenantBadge>**](TenantBadge.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/GetModerationCommentResponse.md b/client/docs/GetModerationCommentResponse.md deleted file mode 100644 index 15aa4714..00000000 --- a/client/docs/GetModerationCommentResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetModerationCommentResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**comment** | [**ModerationAPIComment**](ModerationAPIComment.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/GetModerationCommentTextResponse.md b/client/docs/GetModerationCommentTextResponse.md deleted file mode 100644 index c0092d0b..00000000 --- a/client/docs/GetModerationCommentTextResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetModerationCommentTextResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**comment** | **String** | | [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/GetModeratorResponse1.md b/client/docs/GetModeratorResponse1.md deleted file mode 100644 index b74e1cd4..00000000 --- a/client/docs/GetModeratorResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetModeratorResponse1 - - -## 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/GetModeratorsResponse1.md b/client/docs/GetModeratorsResponse1.md deleted file mode 100644 index 660c11c1..00000000 --- a/client/docs/GetModeratorsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetModeratorsResponse1 - - -## 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/GetNotificationCountResponse1.md b/client/docs/GetNotificationCountResponse1.md deleted file mode 100644 index 1c72f6eb..00000000 --- a/client/docs/GetNotificationCountResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetNotificationCountResponse1 - - -## 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/GetNotificationsResponse1.md b/client/docs/GetNotificationsResponse1.md deleted file mode 100644 index e785dc52..00000000 --- a/client/docs/GetNotificationsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetNotificationsResponse1 - - -## 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/GetOfflineUsersResponse.md b/client/docs/GetOfflineUsersResponse.md deleted file mode 100644 index 0dc1daef..00000000 --- a/client/docs/GetOfflineUsersResponse.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# GetOfflineUsersResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**nextAfterUserId** | **String** | | [optional] | -|**nextAfterName** | **String** | | [optional] | -|**users** | [**List<PageUserEntry>**](PageUserEntry.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/GetOnlineUsersResponse.md b/client/docs/GetOnlineUsersResponse.md deleted file mode 100644 index d4e6fee0..00000000 --- a/client/docs/GetOnlineUsersResponse.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# GetOnlineUsersResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**nextAfterUserId** | **String** | | [optional] | -|**nextAfterName** | **String** | | [optional] | -|**totalCount** | **Double** | | [optional] | -|**anonCount** | **Double** | | [optional] | -|**users** | [**List<PageUserEntry>**](PageUserEntry.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/GetPagesPublicResponse.md b/client/docs/GetPagesPublicResponse.md deleted file mode 100644 index 9721877f..00000000 --- a/client/docs/GetPagesPublicResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetPagesPublicResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**nextCursor** | **String** | | [optional] | -|**pages** | [**List<PublicPage>**](PublicPage.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/GetPendingWebhookEventCountResponse1.md b/client/docs/GetPendingWebhookEventCountResponse1.md deleted file mode 100644 index 10e54ebd..00000000 --- a/client/docs/GetPendingWebhookEventCountResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetPendingWebhookEventCountResponse1 - - -## 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/GetPendingWebhookEventsResponse1.md b/client/docs/GetPendingWebhookEventsResponse1.md deleted file mode 100644 index 0839acdf..00000000 --- a/client/docs/GetPendingWebhookEventsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetPendingWebhookEventsResponse1 - - -## 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/GetPreBanSummaryResponse.md b/client/docs/GetPreBanSummaryResponse.md deleted file mode 100644 index 42f20840..00000000 --- a/client/docs/GetPreBanSummaryResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetPreBanSummaryResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**usernames** | **List<String>** | | [optional] | -|**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/GetQuestionConfigResponse1.md b/client/docs/GetQuestionConfigResponse1.md deleted file mode 100644 index 21231975..00000000 --- a/client/docs/GetQuestionConfigResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetQuestionConfigResponse1 - - -## 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/GetQuestionConfigsResponse1.md b/client/docs/GetQuestionConfigsResponse1.md deleted file mode 100644 index 9def87be..00000000 --- a/client/docs/GetQuestionConfigsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetQuestionConfigsResponse1 - - -## 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/GetQuestionResultResponse1.md b/client/docs/GetQuestionResultResponse1.md deleted file mode 100644 index 7aa94cc8..00000000 --- a/client/docs/GetQuestionResultResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetQuestionResultResponse1 - - -## 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/GetQuestionResultsResponse1.md b/client/docs/GetQuestionResultsResponse1.md deleted file mode 100644 index 8e56dcb4..00000000 --- a/client/docs/GetQuestionResultsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetQuestionResultsResponse1 - - -## 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/GetSearchCommentsSummaryResponse.md b/client/docs/GetSearchCommentsSummaryResponse.md deleted file mode 100644 index 2ad7cb27..00000000 --- a/client/docs/GetSearchCommentsSummaryResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetSearchCommentsSummaryResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**commentCount** | **Integer** | | [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/GetSearchPagesResponse.md b/client/docs/GetSearchPagesResponse.md deleted file mode 100644 index c4a0b0f7..00000000 --- a/client/docs/GetSearchPagesResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetSearchPagesResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**pages** | [**List<ModerationPageSearchProjected>**](ModerationPageSearchProjected.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/GetSearchSitesResponse.md b/client/docs/GetSearchSitesResponse.md deleted file mode 100644 index 1442c10a..00000000 --- a/client/docs/GetSearchSitesResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetSearchSitesResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**sites** | [**List<ModerationSiteSearchProjected>**](ModerationSiteSearchProjected.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/GetSearchSuggestResponse.md b/client/docs/GetSearchSuggestResponse.md deleted file mode 100644 index ac03ece7..00000000 --- a/client/docs/GetSearchSuggestResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetSearchSuggestResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**pages** | [**List<ModerationPageSearchProjected>**](ModerationPageSearchProjected.md) | | [optional] | -|**users** | [**List<ModerationUserSearchProjected>**](ModerationUserSearchProjected.md) | | [optional] | -|**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/GetSearchUsersResponse.md b/client/docs/GetSearchUsersResponse.md deleted file mode 100644 index d7a91977..00000000 --- a/client/docs/GetSearchUsersResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetSearchUsersResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**users** | [**List<ModerationUserSearchProjected>**](ModerationUserSearchProjected.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/GetTenantDailyUsagesResponse1.md b/client/docs/GetTenantDailyUsagesResponse1.md deleted file mode 100644 index 842ecce6..00000000 --- a/client/docs/GetTenantDailyUsagesResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantDailyUsagesResponse1 - - -## 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/GetTenantPackageResponse1.md b/client/docs/GetTenantPackageResponse1.md deleted file mode 100644 index 01b9308b..00000000 --- a/client/docs/GetTenantPackageResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantPackageResponse1 - - -## 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/GetTenantPackagesResponse1.md b/client/docs/GetTenantPackagesResponse1.md deleted file mode 100644 index 30fedd5a..00000000 --- a/client/docs/GetTenantPackagesResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantPackagesResponse1 - - -## 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/GetTenantResponse1.md b/client/docs/GetTenantResponse1.md deleted file mode 100644 index e285927a..00000000 --- a/client/docs/GetTenantResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantResponse1 - - -## 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/GetTenantUserResponse1.md b/client/docs/GetTenantUserResponse1.md deleted file mode 100644 index 51da5b62..00000000 --- a/client/docs/GetTenantUserResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantUserResponse1 - - -## 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/GetTenantUsersResponse1.md b/client/docs/GetTenantUsersResponse1.md deleted file mode 100644 index c85be036..00000000 --- a/client/docs/GetTenantUsersResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantUsersResponse1 - - -## 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/GetTenantsResponse1.md b/client/docs/GetTenantsResponse1.md deleted file mode 100644 index 50a04379..00000000 --- a/client/docs/GetTenantsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTenantsResponse1 - - -## 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/GetTicketResponse1.md b/client/docs/GetTicketResponse1.md deleted file mode 100644 index ee46f7a4..00000000 --- a/client/docs/GetTicketResponse1.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetTicketResponse1 - - -## 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/GetTicketsResponse1.md b/client/docs/GetTicketsResponse1.md deleted file mode 100644 index d2b63a54..00000000 --- a/client/docs/GetTicketsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTicketsResponse1 - - -## 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/GetTranslationsResponse1.md b/client/docs/GetTranslationsResponse1.md deleted file mode 100644 index 166dd243..00000000 --- a/client/docs/GetTranslationsResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetTranslationsResponse1 - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**translations** | **Map<String, String>** | 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/GetTrustFactorResponse.md b/client/docs/GetTrustFactorResponse.md deleted file mode 100644 index 211883b9..00000000 --- a/client/docs/GetTrustFactorResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetTrustFactorResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**manualTrustFactor** | **Double** | | [optional] | -|**autoTrustFactor** | **Double** | | [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/GetUserBadgeProgressByIdResponse.md b/client/docs/GetUserBadgeProgressByIdResponse.md deleted file mode 100644 index 10c0b00c..00000000 --- a/client/docs/GetUserBadgeProgressByIdResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserBadgeProgressByIdResponse - - -## 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/GetUserBadgeProgressByUserIdResponse.md b/client/docs/GetUserBadgeProgressByUserIdResponse.md deleted file mode 100644 index 71c854f7..00000000 --- a/client/docs/GetUserBadgeProgressByUserIdResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserBadgeProgressByUserIdResponse - - -## 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/GetUserBadgeProgressListResponse.md b/client/docs/GetUserBadgeProgressListResponse.md deleted file mode 100644 index 30d62421..00000000 --- a/client/docs/GetUserBadgeProgressListResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserBadgeProgressListResponse - - -## 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/GetUserBadgeResponse.md b/client/docs/GetUserBadgeResponse.md deleted file mode 100644 index fa8d4cea..00000000 --- a/client/docs/GetUserBadgeResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserBadgeResponse - - -## 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/GetUserBadgesResponse.md b/client/docs/GetUserBadgesResponse.md deleted file mode 100644 index 0cfcf3d7..00000000 --- a/client/docs/GetUserBadgesResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserBadgesResponse - - -## 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/GetUserBanPreferenceResponse.md b/client/docs/GetUserBanPreferenceResponse.md deleted file mode 100644 index 70df7eca..00000000 --- a/client/docs/GetUserBanPreferenceResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserBanPreferenceResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**preferences** | [**APIModerateUserBanPreferences**](APIModerateUserBanPreferences.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/GetUserInternalProfileResponse1.md b/client/docs/GetUserInternalProfileResponse1.md deleted file mode 100644 index 71ccfa71..00000000 --- a/client/docs/GetUserInternalProfileResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserInternalProfileResponse1 - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**profile** | [**GetUserInternalProfileResponseProfile**](GetUserInternalProfileResponseProfile.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/GetUserNotificationCountResponse1.md b/client/docs/GetUserNotificationCountResponse1.md deleted file mode 100644 index a91ceca5..00000000 --- a/client/docs/GetUserNotificationCountResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserNotificationCountResponse1 - - -## 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/GetUserNotificationsResponse.md b/client/docs/GetUserNotificationsResponse.md deleted file mode 100644 index 9ebb20bd..00000000 --- a/client/docs/GetUserNotificationsResponse.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# GetUserNotificationsResponse - - -## 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/GetUserPresenceStatusesResponse1.md b/client/docs/GetUserPresenceStatusesResponse1.md deleted file mode 100644 index 55dbce3d..00000000 --- a/client/docs/GetUserPresenceStatusesResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserPresenceStatusesResponse1 - - -## 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/GetUserReactsPublicResponse.md b/client/docs/GetUserReactsPublicResponse.md deleted file mode 100644 index 8dc5c79c..00000000 --- a/client/docs/GetUserReactsPublicResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserReactsPublicResponse - - -## 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/GetUserResponse1.md b/client/docs/GetUserResponse1.md deleted file mode 100644 index ae8f3099..00000000 --- a/client/docs/GetUserResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUserResponse1 - - -## 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/GetUsersInfoResponse.md b/client/docs/GetUsersInfoResponse.md deleted file mode 100644 index 117d4bf9..00000000 --- a/client/docs/GetUsersInfoResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetUsersInfoResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**users** | [**List<PageUserEntry>**](PageUserEntry.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/GetV1PageLikesResponse.md b/client/docs/GetV1PageLikesResponse.md deleted file mode 100644 index 588eac13..00000000 --- a/client/docs/GetV1PageLikesResponse.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# GetV1PageLikesResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**urlIdWS** | **String** | | [optional] | -|**didLike** | **Boolean** | | [optional] | -|**commentCount** | **Integer** | | [optional] | -|**likeCount** | **Integer** | | [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/GetV2PageReactUsersResponse1.md b/client/docs/GetV2PageReactUsersResponse1.md deleted file mode 100644 index 19d4eedd..00000000 --- a/client/docs/GetV2PageReactUsersResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# GetV2PageReactUsersResponse1 - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**userNames** | **List<String>** | | [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/GetV2PageReactsResponse.md b/client/docs/GetV2PageReactsResponse.md deleted file mode 100644 index 553b21eb..00000000 --- a/client/docs/GetV2PageReactsResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# GetV2PageReactsResponse - - -## 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** | | | -|**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/GetVotesForUserResponse1.md b/client/docs/GetVotesForUserResponse1.md deleted file mode 100644 index c5127692..00000000 --- a/client/docs/GetVotesForUserResponse1.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# GetVotesForUserResponse1 - - -## 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/GetVotesResponse1.md b/client/docs/GetVotesResponse1.md deleted file mode 100644 index e170e0fc..00000000 --- a/client/docs/GetVotesResponse1.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# GetVotesResponse1 - - -## 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/LockCommentResponse.md b/client/docs/LockCommentResponse.md deleted file mode 100644 index 81bf4a56..00000000 --- a/client/docs/LockCommentResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# LockCommentResponse - - -## 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/ModerationApi.md b/client/docs/ModerationApi.md index 911eefb0..4782f4a8 100644 --- a/client/docs/ModerationApi.md +++ b/client/docs/ModerationApi.md @@ -52,7 +52,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteModerationVote** -> DeleteModerationVoteResponse deleteModerationVote(commentId, voteId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> VoteDeleteResponse deleteModerationVote(commentId, voteId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -77,7 +77,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - DeleteModerationVoteResponse result = apiInstance.deleteModerationVote(commentId, voteId) + VoteDeleteResponse result = apiInstance.deleteModerationVote(commentId, voteId) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -106,7 +106,7 @@ public class Example { ### Return type -[**DeleteModerationVoteResponse**](DeleteModerationVoteResponse.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -121,10 +121,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getApiComments** -> GetApiCommentsResponse getApiComments().page(page).count(count).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).demo(demo).tenantId(tenantId).sso(sso).execute(); +> ModerationAPIGetCommentsResponse getApiComments().page(page).count(count).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).demo(demo).tenantId(tenantId).sso(sso).execute(); @@ -154,7 +155,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetApiCommentsResponse result = apiInstance.getApiComments() + ModerationAPIGetCommentsResponse result = apiInstance.getApiComments() .page(page) .count(count) .textSearch(textSearch) @@ -195,7 +196,7 @@ public class Example { ### Return type -[**GetApiCommentsResponse**](GetApiCommentsResponse.md) +[**ModerationAPIGetCommentsResponse**](ModerationAPIGetCommentsResponse.md) ### Authorization @@ -210,10 +211,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getApiExportStatus** -> GetApiExportStatusResponse getApiExportStatus().batchJobId(batchJobId).tenantId(tenantId).sso(sso).execute(); +> ModerationExportStatusResponse getApiExportStatus().batchJobId(batchJobId).tenantId(tenantId).sso(sso).execute(); @@ -236,7 +238,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetApiExportStatusResponse result = apiInstance.getApiExportStatus() + ModerationExportStatusResponse result = apiInstance.getApiExportStatus() .batchJobId(batchJobId) .tenantId(tenantId) .sso(sso) @@ -263,7 +265,7 @@ public class Example { ### Return type -[**GetApiExportStatusResponse**](GetApiExportStatusResponse.md) +[**ModerationExportStatusResponse**](ModerationExportStatusResponse.md) ### Authorization @@ -278,10 +280,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getApiIds** -> GetApiIdsResponse getApiIds().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).afterId(afterId).demo(demo).tenantId(tenantId).sso(sso).execute(); +> ModerationAPIGetCommentIdsResponse getApiIds().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).afterId(afterId).demo(demo).tenantId(tenantId).sso(sso).execute(); @@ -309,7 +312,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetApiIdsResponse result = apiInstance.getApiIds() + ModerationAPIGetCommentIdsResponse result = apiInstance.getApiIds() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) @@ -346,7 +349,7 @@ public class Example { ### Return type -[**GetApiIdsResponse**](GetApiIdsResponse.md) +[**ModerationAPIGetCommentIdsResponse**](ModerationAPIGetCommentIdsResponse.md) ### Authorization @@ -361,10 +364,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getBanUsersFromComment** -> GetBanUsersFromCommentResponse getBanUsersFromComment(commentId).tenantId(tenantId).sso(sso).execute(); +> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId).tenantId(tenantId).sso(sso).execute(); @@ -387,7 +391,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetBanUsersFromCommentResponse result = apiInstance.getBanUsersFromComment(commentId) + GetBannedUsersFromCommentResponse result = apiInstance.getBanUsersFromComment(commentId) .tenantId(tenantId) .sso(sso) .execute(); @@ -413,7 +417,7 @@ public class Example { ### Return type -[**GetBanUsersFromCommentResponse**](GetBanUsersFromCommentResponse.md) +[**GetBannedUsersFromCommentResponse**](GetBannedUsersFromCommentResponse.md) ### Authorization @@ -428,10 +432,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getCommentBanStatus** -> GetCommentBanStatusResponse1 getCommentBanStatus(commentId).tenantId(tenantId).sso(sso).execute(); +> GetCommentBanStatusResponse getCommentBanStatus(commentId).tenantId(tenantId).sso(sso).execute(); @@ -454,7 +459,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetCommentBanStatusResponse1 result = apiInstance.getCommentBanStatus(commentId) + GetCommentBanStatusResponse result = apiInstance.getCommentBanStatus(commentId) .tenantId(tenantId) .sso(sso) .execute(); @@ -480,7 +485,7 @@ public class Example { ### Return type -[**GetCommentBanStatusResponse1**](GetCommentBanStatusResponse1.md) +[**GetCommentBanStatusResponse**](GetCommentBanStatusResponse.md) ### Authorization @@ -495,10 +500,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getCommentChildren** -> GetCommentChildrenResponse getCommentChildren(commentId).tenantId(tenantId).sso(sso).execute(); +> ModerationAPIChildCommentsResponse getCommentChildren(commentId).tenantId(tenantId).sso(sso).execute(); @@ -521,7 +527,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetCommentChildrenResponse result = apiInstance.getCommentChildren(commentId) + ModerationAPIChildCommentsResponse result = apiInstance.getCommentChildren(commentId) .tenantId(tenantId) .sso(sso) .execute(); @@ -547,7 +553,7 @@ public class Example { ### Return type -[**GetCommentChildrenResponse**](GetCommentChildrenResponse.md) +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) ### Authorization @@ -562,10 +568,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getCount** -> GetCountResponse getCount().textSearch(textSearch).byIPFromComment(byIPFromComment).filter(filter).searchFilters(searchFilters).demo(demo).tenantId(tenantId).sso(sso).execute(); +> ModerationAPICountCommentsResponse getCount().textSearch(textSearch).byIPFromComment(byIPFromComment).filter(filter).searchFilters(searchFilters).demo(demo).tenantId(tenantId).sso(sso).execute(); @@ -592,7 +599,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetCountResponse result = apiInstance.getCount() + ModerationAPICountCommentsResponse result = apiInstance.getCount() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filter(filter) @@ -627,7 +634,7 @@ public class Example { ### Return type -[**GetCountResponse**](GetCountResponse.md) +[**ModerationAPICountCommentsResponse**](ModerationAPICountCommentsResponse.md) ### Authorization @@ -642,10 +649,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getCounts** -> GetCountsResponse getCounts().tenantId(tenantId).sso(sso).execute(); +> GetBannedUsersCountResponse getCounts().tenantId(tenantId).sso(sso).execute(); @@ -667,7 +675,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetCountsResponse result = apiInstance.getCounts() + GetBannedUsersCountResponse result = apiInstance.getCounts() .tenantId(tenantId) .sso(sso) .execute(); @@ -692,7 +700,7 @@ public class Example { ### Return type -[**GetCountsResponse**](GetCountsResponse.md) +[**GetBannedUsersCountResponse**](GetBannedUsersCountResponse.md) ### Authorization @@ -707,10 +715,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getLogs** -> GetLogsResponse getLogs(commentId).tenantId(tenantId).sso(sso).execute(); +> ModerationAPIGetLogsResponse getLogs(commentId).tenantId(tenantId).sso(sso).execute(); @@ -733,7 +742,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetLogsResponse result = apiInstance.getLogs(commentId) + ModerationAPIGetLogsResponse result = apiInstance.getLogs(commentId) .tenantId(tenantId) .sso(sso) .execute(); @@ -759,7 +768,7 @@ public class Example { ### Return type -[**GetLogsResponse**](GetLogsResponse.md) +[**ModerationAPIGetLogsResponse**](ModerationAPIGetLogsResponse.md) ### Authorization @@ -774,10 +783,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getManualBadges** -> GetManualBadgesResponse getManualBadges().tenantId(tenantId).sso(sso).execute(); +> GetTenantManualBadgesResponse getManualBadges().tenantId(tenantId).sso(sso).execute(); @@ -799,7 +809,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetManualBadgesResponse result = apiInstance.getManualBadges() + GetTenantManualBadgesResponse result = apiInstance.getManualBadges() .tenantId(tenantId) .sso(sso) .execute(); @@ -824,7 +834,7 @@ public class Example { ### Return type -[**GetManualBadgesResponse**](GetManualBadgesResponse.md) +[**GetTenantManualBadgesResponse**](GetTenantManualBadgesResponse.md) ### Authorization @@ -839,10 +849,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getManualBadgesForUser** -> GetManualBadgesForUserResponse getManualBadgesForUser().badgesUserId(badgesUserId).commentId(commentId).tenantId(tenantId).sso(sso).execute(); +> GetUserManualBadgesResponse getManualBadgesForUser().badgesUserId(badgesUserId).commentId(commentId).tenantId(tenantId).sso(sso).execute(); @@ -866,7 +877,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetManualBadgesForUserResponse result = apiInstance.getManualBadgesForUser() + GetUserManualBadgesResponse result = apiInstance.getManualBadgesForUser() .badgesUserId(badgesUserId) .commentId(commentId) .tenantId(tenantId) @@ -895,7 +906,7 @@ public class Example { ### Return type -[**GetManualBadgesForUserResponse**](GetManualBadgesForUserResponse.md) +[**GetUserManualBadgesResponse**](GetUserManualBadgesResponse.md) ### Authorization @@ -910,10 +921,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getModerationComment** -> GetModerationCommentResponse getModerationComment(commentId).includeEmail(includeEmail).includeIP(includeIP).tenantId(tenantId).sso(sso).execute(); +> ModerationAPICommentResponse getModerationComment(commentId).includeEmail(includeEmail).includeIP(includeIP).tenantId(tenantId).sso(sso).execute(); @@ -938,7 +950,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetModerationCommentResponse result = apiInstance.getModerationComment(commentId) + ModerationAPICommentResponse result = apiInstance.getModerationComment(commentId) .includeEmail(includeEmail) .includeIP(includeIP) .tenantId(tenantId) @@ -968,7 +980,7 @@ public class Example { ### Return type -[**GetModerationCommentResponse**](GetModerationCommentResponse.md) +[**ModerationAPICommentResponse**](ModerationAPICommentResponse.md) ### Authorization @@ -983,10 +995,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getModerationCommentText** -> GetModerationCommentTextResponse getModerationCommentText(commentId).tenantId(tenantId).sso(sso).execute(); +> GetCommentTextResponse getModerationCommentText(commentId).tenantId(tenantId).sso(sso).execute(); @@ -1009,7 +1022,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetModerationCommentTextResponse result = apiInstance.getModerationCommentText(commentId) + GetCommentTextResponse result = apiInstance.getModerationCommentText(commentId) .tenantId(tenantId) .sso(sso) .execute(); @@ -1035,7 +1048,7 @@ public class Example { ### Return type -[**GetModerationCommentTextResponse**](GetModerationCommentTextResponse.md) +[**GetCommentTextResponse**](GetCommentTextResponse.md) ### Authorization @@ -1050,10 +1063,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getPreBanSummary** -> GetPreBanSummaryResponse getPreBanSummary(commentId).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).tenantId(tenantId).sso(sso).execute(); +> PreBanSummary getPreBanSummary(commentId).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).tenantId(tenantId).sso(sso).execute(); @@ -1079,7 +1093,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetPreBanSummaryResponse result = apiInstance.getPreBanSummary(commentId) + PreBanSummary result = apiInstance.getPreBanSummary(commentId) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) @@ -1111,7 +1125,7 @@ public class Example { ### Return type -[**GetPreBanSummaryResponse**](GetPreBanSummaryResponse.md) +[**PreBanSummary**](PreBanSummary.md) ### Authorization @@ -1126,10 +1140,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getSearchCommentsSummary** -> GetSearchCommentsSummaryResponse getSearchCommentsSummary().value(value).filters(filters).searchFilters(searchFilters).tenantId(tenantId).sso(sso).execute(); +> ModerationCommentSearchResponse getSearchCommentsSummary().value(value).filters(filters).searchFilters(searchFilters).tenantId(tenantId).sso(sso).execute(); @@ -1154,7 +1169,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetSearchCommentsSummaryResponse result = apiInstance.getSearchCommentsSummary() + ModerationCommentSearchResponse result = apiInstance.getSearchCommentsSummary() .value(value) .filters(filters) .searchFilters(searchFilters) @@ -1185,7 +1200,7 @@ public class Example { ### Return type -[**GetSearchCommentsSummaryResponse**](GetSearchCommentsSummaryResponse.md) +[**ModerationCommentSearchResponse**](ModerationCommentSearchResponse.md) ### Authorization @@ -1200,10 +1215,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getSearchPages** -> GetSearchPagesResponse getSearchPages().value(value).tenantId(tenantId).sso(sso).execute(); +> ModerationPageSearchResponse getSearchPages().value(value).tenantId(tenantId).sso(sso).execute(); @@ -1226,7 +1242,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetSearchPagesResponse result = apiInstance.getSearchPages() + ModerationPageSearchResponse result = apiInstance.getSearchPages() .value(value) .tenantId(tenantId) .sso(sso) @@ -1253,7 +1269,7 @@ public class Example { ### Return type -[**GetSearchPagesResponse**](GetSearchPagesResponse.md) +[**ModerationPageSearchResponse**](ModerationPageSearchResponse.md) ### Authorization @@ -1268,10 +1284,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getSearchSites** -> GetSearchSitesResponse getSearchSites().value(value).tenantId(tenantId).sso(sso).execute(); +> ModerationSiteSearchResponse getSearchSites().value(value).tenantId(tenantId).sso(sso).execute(); @@ -1294,7 +1311,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetSearchSitesResponse result = apiInstance.getSearchSites() + ModerationSiteSearchResponse result = apiInstance.getSearchSites() .value(value) .tenantId(tenantId) .sso(sso) @@ -1321,7 +1338,7 @@ public class Example { ### Return type -[**GetSearchSitesResponse**](GetSearchSitesResponse.md) +[**ModerationSiteSearchResponse**](ModerationSiteSearchResponse.md) ### Authorization @@ -1336,10 +1353,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getSearchSuggest** -> GetSearchSuggestResponse getSearchSuggest().textSearch(textSearch).tenantId(tenantId).sso(sso).execute(); +> ModerationSuggestResponse getSearchSuggest().textSearch(textSearch).tenantId(tenantId).sso(sso).execute(); @@ -1362,7 +1380,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetSearchSuggestResponse result = apiInstance.getSearchSuggest() + ModerationSuggestResponse result = apiInstance.getSearchSuggest() .textSearch(textSearch) .tenantId(tenantId) .sso(sso) @@ -1389,7 +1407,7 @@ public class Example { ### Return type -[**GetSearchSuggestResponse**](GetSearchSuggestResponse.md) +[**ModerationSuggestResponse**](ModerationSuggestResponse.md) ### Authorization @@ -1404,10 +1422,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getSearchUsers** -> GetSearchUsersResponse getSearchUsers().value(value).tenantId(tenantId).sso(sso).execute(); +> ModerationUserSearchResponse getSearchUsers().value(value).tenantId(tenantId).sso(sso).execute(); @@ -1430,7 +1449,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetSearchUsersResponse result = apiInstance.getSearchUsers() + ModerationUserSearchResponse result = apiInstance.getSearchUsers() .value(value) .tenantId(tenantId) .sso(sso) @@ -1457,7 +1476,7 @@ public class Example { ### Return type -[**GetSearchUsersResponse**](GetSearchUsersResponse.md) +[**ModerationUserSearchResponse**](ModerationUserSearchResponse.md) ### Authorization @@ -1472,10 +1491,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTrustFactor** -> GetTrustFactorResponse getTrustFactor().userId(userId).tenantId(tenantId).sso(sso).execute(); +> GetUserTrustFactorResponse getTrustFactor().userId(userId).tenantId(tenantId).sso(sso).execute(); @@ -1498,7 +1518,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetTrustFactorResponse result = apiInstance.getTrustFactor() + GetUserTrustFactorResponse result = apiInstance.getTrustFactor() .userId(userId) .tenantId(tenantId) .sso(sso) @@ -1525,7 +1545,7 @@ public class Example { ### Return type -[**GetTrustFactorResponse**](GetTrustFactorResponse.md) +[**GetUserTrustFactorResponse**](GetUserTrustFactorResponse.md) ### Authorization @@ -1540,10 +1560,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserBanPreference** -> GetUserBanPreferenceResponse getUserBanPreference().tenantId(tenantId).sso(sso).execute(); +> APIModerateGetUserBanPreferencesResponse getUserBanPreference().tenantId(tenantId).sso(sso).execute(); @@ -1565,7 +1586,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetUserBanPreferenceResponse result = apiInstance.getUserBanPreference() + APIModerateGetUserBanPreferencesResponse result = apiInstance.getUserBanPreference() .tenantId(tenantId) .sso(sso) .execute(); @@ -1590,7 +1611,7 @@ public class Example { ### Return type -[**GetUserBanPreferenceResponse**](GetUserBanPreferenceResponse.md) +[**APIModerateGetUserBanPreferencesResponse**](APIModerateGetUserBanPreferencesResponse.md) ### Authorization @@ -1605,10 +1626,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserInternalProfile** -> GetUserInternalProfileResponse1 getUserInternalProfile().commentId(commentId).tenantId(tenantId).sso(sso).execute(); +> GetUserInternalProfileResponse getUserInternalProfile().commentId(commentId).tenantId(tenantId).sso(sso).execute(); @@ -1631,7 +1653,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetUserInternalProfileResponse1 result = apiInstance.getUserInternalProfile() + GetUserInternalProfileResponse result = apiInstance.getUserInternalProfile() .commentId(commentId) .tenantId(tenantId) .sso(sso) @@ -1658,7 +1680,7 @@ public class Example { ### Return type -[**GetUserInternalProfileResponse1**](GetUserInternalProfileResponse1.md) +[**GetUserInternalProfileResponse**](GetUserInternalProfileResponse.md) ### Authorization @@ -1673,10 +1695,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postAdjustCommentVotes** -> PostAdjustCommentVotesResponse postAdjustCommentVotes(commentId, adjustCommentVotesParams).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> AdjustVotesResponse postAdjustCommentVotes(commentId, adjustCommentVotesParams).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -1701,7 +1724,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostAdjustCommentVotesResponse result = apiInstance.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + AdjustVotesResponse result = apiInstance.postAdjustCommentVotes(commentId, adjustCommentVotesParams) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -1730,7 +1753,7 @@ public class Example { ### Return type -[**PostAdjustCommentVotesResponse**](PostAdjustCommentVotesResponse.md) +[**AdjustVotesResponse**](AdjustVotesResponse.md) ### Authorization @@ -1745,10 +1768,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postApiExport** -> PostApiExportResponse postApiExport().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).tenantId(tenantId).sso(sso).execute(); +> ModerationExportResponse postApiExport().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).tenantId(tenantId).sso(sso).execute(); @@ -1775,7 +1799,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostApiExportResponse result = apiInstance.postApiExport() + ModerationExportResponse result = apiInstance.postApiExport() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) @@ -1810,7 +1834,7 @@ public class Example { ### Return type -[**PostApiExportResponse**](PostApiExportResponse.md) +[**ModerationExportResponse**](ModerationExportResponse.md) ### Authorization @@ -1825,10 +1849,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postBanUserFromComment** -> PostBanUserFromCommentResponse postBanUserFromComment(commentId).banEmail(banEmail).banEmailDomain(banEmailDomain).banIP(banIP).deleteAllUsersComments(deleteAllUsersComments).bannedUntil(bannedUntil).isShadowBan(isShadowBan).updateId(updateId).banReason(banReason).tenantId(tenantId).sso(sso).execute(); +> BanUserFromCommentResult postBanUserFromComment(commentId).banEmail(banEmail).banEmailDomain(banEmailDomain).banIP(banIP).deleteAllUsersComments(deleteAllUsersComments).bannedUntil(bannedUntil).isShadowBan(isShadowBan).updateId(updateId).banReason(banReason).tenantId(tenantId).sso(sso).execute(); @@ -1859,7 +1884,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostBanUserFromCommentResponse result = apiInstance.postBanUserFromComment(commentId) + BanUserFromCommentResult result = apiInstance.postBanUserFromComment(commentId) .banEmail(banEmail) .banEmailDomain(banEmailDomain) .banIP(banIP) @@ -1901,7 +1926,7 @@ public class Example { ### Return type -[**PostBanUserFromCommentResponse**](PostBanUserFromCommentResponse.md) +[**BanUserFromCommentResult**](BanUserFromCommentResult.md) ### Authorization @@ -1916,10 +1941,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postBanUserUndo** -> PostBanUserUndoResponse postBanUserUndo(banUserUndoParams).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postBanUserUndo(banUserUndoParams).tenantId(tenantId).sso(sso).execute(); @@ -1942,7 +1968,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostBanUserUndoResponse result = apiInstance.postBanUserUndo(banUserUndoParams) + APIEmptyResponse result = apiInstance.postBanUserUndo(banUserUndoParams) .tenantId(tenantId) .sso(sso) .execute(); @@ -1968,7 +1994,7 @@ public class Example { ### Return type -[**PostBanUserUndoResponse**](PostBanUserUndoResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1983,10 +2009,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postBulkPreBanSummary** -> PostBulkPreBanSummaryResponse postBulkPreBanSummary(bulkPreBanParams).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).tenantId(tenantId).sso(sso).execute(); +> BulkPreBanSummary postBulkPreBanSummary(bulkPreBanParams).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).tenantId(tenantId).sso(sso).execute(); @@ -2012,7 +2039,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostBulkPreBanSummaryResponse result = apiInstance.postBulkPreBanSummary(bulkPreBanParams) + BulkPreBanSummary result = apiInstance.postBulkPreBanSummary(bulkPreBanParams) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) @@ -2044,7 +2071,7 @@ public class Example { ### Return type -[**PostBulkPreBanSummaryResponse**](PostBulkPreBanSummaryResponse.md) +[**BulkPreBanSummary**](BulkPreBanSummary.md) ### Authorization @@ -2059,10 +2086,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postCommentsByIds** -> PostCommentsByIdsResponse postCommentsByIds(commentsByIdsParams).tenantId(tenantId).sso(sso).execute(); +> ModerationAPIChildCommentsResponse postCommentsByIds(commentsByIdsParams).tenantId(tenantId).sso(sso).execute(); @@ -2085,7 +2113,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostCommentsByIdsResponse result = apiInstance.postCommentsByIds(commentsByIdsParams) + ModerationAPIChildCommentsResponse result = apiInstance.postCommentsByIds(commentsByIdsParams) .tenantId(tenantId) .sso(sso) .execute(); @@ -2111,7 +2139,7 @@ public class Example { ### Return type -[**PostCommentsByIdsResponse**](PostCommentsByIdsResponse.md) +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) ### Authorization @@ -2126,10 +2154,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postFlagComment** -> PostFlagCommentResponse postFlagComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postFlagComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2153,7 +2182,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostFlagCommentResponse result = apiInstance.postFlagComment(commentId) + APIEmptyResponse result = apiInstance.postFlagComment(commentId) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -2181,7 +2210,7 @@ public class Example { ### Return type -[**PostFlagCommentResponse**](PostFlagCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2196,6 +2225,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postRemoveComment** @@ -2266,10 +2296,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postRestoreDeletedComment** -> PostRestoreDeletedCommentResponse postRestoreDeletedComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postRestoreDeletedComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2293,7 +2324,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostRestoreDeletedCommentResponse result = apiInstance.postRestoreDeletedComment(commentId) + APIEmptyResponse result = apiInstance.postRestoreDeletedComment(commentId) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -2321,7 +2352,7 @@ public class Example { ### Return type -[**PostRestoreDeletedCommentResponse**](PostRestoreDeletedCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2336,10 +2367,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postSetCommentApprovalStatus** -> PostSetCommentApprovalStatusResponse postSetCommentApprovalStatus(commentId).approved(approved).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId).approved(approved).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2364,7 +2396,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostSetCommentApprovalStatusResponse result = apiInstance.postSetCommentApprovalStatus(commentId) + SetCommentApprovedResponse result = apiInstance.postSetCommentApprovalStatus(commentId) .approved(approved) .broadcastId(broadcastId) .tenantId(tenantId) @@ -2394,7 +2426,7 @@ public class Example { ### Return type -[**PostSetCommentApprovalStatusResponse**](PostSetCommentApprovalStatusResponse.md) +[**SetCommentApprovedResponse**](SetCommentApprovedResponse.md) ### Authorization @@ -2409,10 +2441,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postSetCommentReviewStatus** -> PostSetCommentReviewStatusResponse postSetCommentReviewStatus(commentId).reviewed(reviewed).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postSetCommentReviewStatus(commentId).reviewed(reviewed).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2437,7 +2470,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostSetCommentReviewStatusResponse result = apiInstance.postSetCommentReviewStatus(commentId) + APIEmptyResponse result = apiInstance.postSetCommentReviewStatus(commentId) .reviewed(reviewed) .broadcastId(broadcastId) .tenantId(tenantId) @@ -2467,7 +2500,7 @@ public class Example { ### Return type -[**PostSetCommentReviewStatusResponse**](PostSetCommentReviewStatusResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2482,10 +2515,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postSetCommentSpamStatus** -> PostSetCommentSpamStatusResponse postSetCommentSpamStatus(commentId).spam(spam).permNotSpam(permNotSpam).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postSetCommentSpamStatus(commentId).spam(spam).permNotSpam(permNotSpam).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2511,7 +2545,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostSetCommentSpamStatusResponse result = apiInstance.postSetCommentSpamStatus(commentId) + APIEmptyResponse result = apiInstance.postSetCommentSpamStatus(commentId) .spam(spam) .permNotSpam(permNotSpam) .broadcastId(broadcastId) @@ -2543,7 +2577,7 @@ public class Example { ### Return type -[**PostSetCommentSpamStatusResponse**](PostSetCommentSpamStatusResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2558,10 +2592,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postSetCommentText** -> PostSetCommentTextResponse postSetCommentText(commentId, setCommentTextParams).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> SetCommentTextResponse postSetCommentText(commentId, setCommentTextParams).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2586,7 +2621,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostSetCommentTextResponse result = apiInstance.postSetCommentText(commentId, setCommentTextParams) + SetCommentTextResponse result = apiInstance.postSetCommentText(commentId, setCommentTextParams) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -2615,7 +2650,7 @@ public class Example { ### Return type -[**PostSetCommentTextResponse**](PostSetCommentTextResponse.md) +[**SetCommentTextResponse**](SetCommentTextResponse.md) ### Authorization @@ -2630,10 +2665,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postUnFlagComment** -> PostUnFlagCommentResponse postUnFlagComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postUnFlagComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2657,7 +2693,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostUnFlagCommentResponse result = apiInstance.postUnFlagComment(commentId) + APIEmptyResponse result = apiInstance.postUnFlagComment(commentId) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -2685,7 +2721,7 @@ public class Example { ### Return type -[**PostUnFlagCommentResponse**](PostUnFlagCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2700,10 +2736,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **postVote** -> PostVoteResponse postVote(commentId).direction(direction).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> VoteResponse postVote(commentId).direction(direction).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2728,7 +2765,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostVoteResponse result = apiInstance.postVote(commentId) + VoteResponse result = apiInstance.postVote(commentId) .direction(direction) .broadcastId(broadcastId) .tenantId(tenantId) @@ -2758,7 +2795,7 @@ public class Example { ### Return type -[**PostVoteResponse**](PostVoteResponse.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -2773,10 +2810,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **putAwardBadge** -> PutAwardBadgeResponse putAwardBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> AwardUserBadgeResponse putAwardBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2802,7 +2840,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PutAwardBadgeResponse result = apiInstance.putAwardBadge(badgeId) + AwardUserBadgeResponse result = apiInstance.putAwardBadge(badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) @@ -2834,7 +2872,7 @@ public class Example { ### Return type -[**PutAwardBadgeResponse**](PutAwardBadgeResponse.md) +[**AwardUserBadgeResponse**](AwardUserBadgeResponse.md) ### Authorization @@ -2849,10 +2887,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **putCloseThread** -> PutCloseThreadResponse putCloseThread(urlId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse putCloseThread(urlId).tenantId(tenantId).sso(sso).execute(); @@ -2875,7 +2914,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PutCloseThreadResponse result = apiInstance.putCloseThread(urlId) + APIEmptyResponse result = apiInstance.putCloseThread(urlId) .tenantId(tenantId) .sso(sso) .execute(); @@ -2901,7 +2940,7 @@ public class Example { ### Return type -[**PutCloseThreadResponse**](PutCloseThreadResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2916,10 +2955,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **putRemoveBadge** -> PutRemoveBadgeResponse putRemoveBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> RemoveUserBadgeResponse putRemoveBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); @@ -2945,7 +2985,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PutRemoveBadgeResponse result = apiInstance.putRemoveBadge(badgeId) + RemoveUserBadgeResponse result = apiInstance.putRemoveBadge(badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) @@ -2977,7 +3017,7 @@ public class Example { ### Return type -[**PutRemoveBadgeResponse**](PutRemoveBadgeResponse.md) +[**RemoveUserBadgeResponse**](RemoveUserBadgeResponse.md) ### Authorization @@ -2992,10 +3032,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **putReopenThread** -> PutReopenThreadResponse putReopenThread(urlId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse putReopenThread(urlId).tenantId(tenantId).sso(sso).execute(); @@ -3018,7 +3059,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PutReopenThreadResponse result = apiInstance.putReopenThread(urlId) + APIEmptyResponse result = apiInstance.putReopenThread(urlId) .tenantId(tenantId) .sso(sso) .execute(); @@ -3044,7 +3085,7 @@ public class Example { ### Return type -[**PutReopenThreadResponse**](PutReopenThreadResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3059,10 +3100,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **setTrustFactor** -> SetTrustFactorResponse setTrustFactor().userId(userId).trustFactor(trustFactor).tenantId(tenantId).sso(sso).execute(); +> SetUserTrustFactorResponse setTrustFactor().userId(userId).trustFactor(trustFactor).tenantId(tenantId).sso(sso).execute(); @@ -3086,7 +3128,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - SetTrustFactorResponse result = apiInstance.setTrustFactor() + SetUserTrustFactorResponse result = apiInstance.setTrustFactor() .userId(userId) .trustFactor(trustFactor) .tenantId(tenantId) @@ -3115,7 +3157,7 @@ public class Example { ### Return type -[**SetTrustFactorResponse**](SetTrustFactorResponse.md) +[**SetUserTrustFactorResponse**](SetUserTrustFactorResponse.md) ### Authorization @@ -3130,4 +3172,5 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | diff --git a/client/docs/PatchHashTagResponse.md b/client/docs/PatchHashTagResponse.md deleted file mode 100644 index 2f602153..00000000 --- a/client/docs/PatchHashTagResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# PatchHashTagResponse - - -## 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/PinCommentResponse.md b/client/docs/PinCommentResponse.md deleted file mode 100644 index e817b817..00000000 --- a/client/docs/PinCommentResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# PinCommentResponse - - -## 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/PostAdjustCommentVotesResponse.md b/client/docs/PostAdjustCommentVotesResponse.md deleted file mode 100644 index 2aa1c5b0..00000000 --- a/client/docs/PostAdjustCommentVotesResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# PostAdjustCommentVotesResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**newCommentVotes** | **Integer** | | [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/PostApiExportResponse.md b/client/docs/PostApiExportResponse.md deleted file mode 100644 index 6339d3bc..00000000 --- a/client/docs/PostApiExportResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# PostApiExportResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**batchJobId** | **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/PostBanUserFromCommentResponse.md b/client/docs/PostBanUserFromCommentResponse.md deleted file mode 100644 index a77b92ce..00000000 --- a/client/docs/PostBanUserFromCommentResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# PostBanUserFromCommentResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] | -|**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/PostBanUserUndoResponse.md b/client/docs/PostBanUserUndoResponse.md deleted file mode 100644 index 7336f30d..00000000 --- a/client/docs/PostBanUserUndoResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# PostBanUserUndoResponse - - -## 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/PostBulkPreBanSummaryResponse.md b/client/docs/PostBulkPreBanSummaryResponse.md deleted file mode 100644 index 9ae5c32b..00000000 --- a/client/docs/PostBulkPreBanSummaryResponse.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# PostBulkPreBanSummaryResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**totalRelatedCommentCount** | **Integer** | | [optional] | -|**emailDomains** | **List<String>** | | [optional] | -|**emails** | **List<String>** | | [optional] | -|**userIds** | **List<String>** | | [optional] | -|**ipHashes** | **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/PostCommentsByIdsResponse.md b/client/docs/PostCommentsByIdsResponse.md deleted file mode 100644 index 439efeb0..00000000 --- a/client/docs/PostCommentsByIdsResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# PostCommentsByIdsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**comments** | [**List<ModerationAPIComment>**](ModerationAPIComment.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/PostFlagCommentResponse.md b/client/docs/PostFlagCommentResponse.md deleted file mode 100644 index 7c407905..00000000 --- a/client/docs/PostFlagCommentResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# PostFlagCommentResponse - - -## 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/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentResponse.md index 594f9985..ad9d1d96 100644 --- a/client/docs/PostRemoveCommentResponse.md +++ b/client/docs/PostRemoveCommentResponse.md @@ -7,15 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**action** | **String** | | [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] | +|**action** | **String** | | | +|**status** | **String** | | | diff --git a/client/docs/PostRestoreDeletedCommentResponse.md b/client/docs/PostRestoreDeletedCommentResponse.md deleted file mode 100644 index cd38f850..00000000 --- a/client/docs/PostRestoreDeletedCommentResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# PostRestoreDeletedCommentResponse - - -## 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/PostSetCommentApprovalStatusResponse.md b/client/docs/PostSetCommentApprovalStatusResponse.md deleted file mode 100644 index 89089d9f..00000000 --- a/client/docs/PostSetCommentApprovalStatusResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# PostSetCommentApprovalStatusResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**didResetFlaggedCount** | **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/PostSetCommentReviewStatusResponse.md b/client/docs/PostSetCommentReviewStatusResponse.md deleted file mode 100644 index 6fdef38a..00000000 --- a/client/docs/PostSetCommentReviewStatusResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# PostSetCommentReviewStatusResponse - - -## 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/PostSetCommentSpamStatusResponse.md b/client/docs/PostSetCommentSpamStatusResponse.md deleted file mode 100644 index 0d6a901d..00000000 --- a/client/docs/PostSetCommentSpamStatusResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# PostSetCommentSpamStatusResponse - - -## 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/PostSetCommentTextResponse.md b/client/docs/PostSetCommentTextResponse.md deleted file mode 100644 index 57c7d872..00000000 --- a/client/docs/PostSetCommentTextResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# PostSetCommentTextResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**newCommentTextHTML** | **String** | | [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/PostUnFlagCommentResponse.md b/client/docs/PostUnFlagCommentResponse.md deleted file mode 100644 index bf4c35c4..00000000 --- a/client/docs/PostUnFlagCommentResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# PostUnFlagCommentResponse - - -## 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/PostVoteResponse.md b/client/docs/PostVoteResponse.md deleted file mode 100644 index c1bce1fd..00000000 --- a/client/docs/PostVoteResponse.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# PostVoteResponse - - -## 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/docs/PublicApi.md b/client/docs/PublicApi.md index 004f5345..fc189e61 100644 --- a/client/docs/PublicApi.md +++ b/client/docs/PublicApi.md @@ -61,7 +61,7 @@ All URIs are relative to *https://fastcomments.com* # **blockFromCommentPublic** -> BlockFromCommentPublicResponse blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); +> BlockSuccess blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); @@ -85,7 +85,7 @@ public class Example { PublicBlockFromCommentParams publicBlockFromCommentParams = new PublicBlockFromCommentParams(); // PublicBlockFromCommentParams | String sso = "sso_example"; // String | try { - BlockFromCommentPublicResponse result = apiInstance.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + BlockSuccess result = apiInstance.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); System.out.println(result); @@ -111,7 +111,7 @@ public class Example { ### Return type -[**BlockFromCommentPublicResponse**](BlockFromCommentPublicResponse.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -126,10 +126,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **checkedCommentsForBlocked** -> CheckedCommentsForBlockedResponse checkedCommentsForBlocked(tenantId, commentIds).sso(sso).execute(); +> CheckBlockedCommentsResponse checkedCommentsForBlocked(tenantId, commentIds).sso(sso).execute(); @@ -152,7 +153,7 @@ public class Example { String commentIds = "commentIds_example"; // String | A comma separated list of comment ids. String sso = "sso_example"; // String | try { - CheckedCommentsForBlockedResponse result = apiInstance.checkedCommentsForBlocked(tenantId, commentIds) + CheckBlockedCommentsResponse result = apiInstance.checkedCommentsForBlocked(tenantId, commentIds) .sso(sso) .execute(); System.out.println(result); @@ -177,7 +178,7 @@ public class Example { ### Return type -[**CheckedCommentsForBlockedResponse**](CheckedCommentsForBlockedResponse.md) +[**CheckBlockedCommentsResponse**](CheckBlockedCommentsResponse.md) ### Authorization @@ -192,10 +193,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createCommentPublic** -> CreateCommentPublicResponse createCommentPublic(tenantId, urlId, broadcastId, commentData).sessionId(sessionId).sso(sso).execute(); +> SaveCommentsResponseWithPresence createCommentPublic(tenantId, urlId, broadcastId, commentData).sessionId(sessionId).sso(sso).execute(); @@ -221,7 +223,7 @@ public class Example { String sessionId = "sessionId_example"; // String | String sso = "sso_example"; // String | try { - CreateCommentPublicResponse result = apiInstance.createCommentPublic(tenantId, urlId, broadcastId, commentData) + SaveCommentsResponseWithPresence result = apiInstance.createCommentPublic(tenantId, urlId, broadcastId, commentData) .sessionId(sessionId) .sso(sso) .execute(); @@ -250,7 +252,7 @@ public class Example { ### Return type -[**CreateCommentPublicResponse**](CreateCommentPublicResponse.md) +[**SaveCommentsResponseWithPresence**](SaveCommentsResponseWithPresence.md) ### Authorization @@ -265,10 +267,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createFeedPostPublic** -> CreateFeedPostPublicResponse createFeedPostPublic(tenantId, createFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); +> CreateFeedPostResponse createFeedPostPublic(tenantId, createFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); @@ -292,7 +295,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - CreateFeedPostPublicResponse result = apiInstance.createFeedPostPublic(tenantId, createFeedPostParams) + CreateFeedPostResponse result = apiInstance.createFeedPostPublic(tenantId, createFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); @@ -319,7 +322,7 @@ public class Example { ### Return type -[**CreateFeedPostPublicResponse**](CreateFeedPostPublicResponse.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -334,10 +337,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createV1PageReact** -> CreateV1PageReactResponse createV1PageReact(tenantId, urlId).title(title).execute(); +> CreateV1PageReact createV1PageReact(tenantId, urlId).title(title).execute(); @@ -360,7 +364,7 @@ public class Example { String urlId = "urlId_example"; // String | String title = "title_example"; // String | try { - CreateV1PageReactResponse result = apiInstance.createV1PageReact(tenantId, urlId) + CreateV1PageReact result = apiInstance.createV1PageReact(tenantId, urlId) .title(title) .execute(); System.out.println(result); @@ -385,7 +389,7 @@ public class Example { ### Return type -[**CreateV1PageReactResponse**](CreateV1PageReactResponse.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -400,10 +404,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **createV2PageReact** -> CreateV2PageReactResponse createV2PageReact(tenantId, urlId, id).title(title).execute(); +> CreateV1PageReact createV2PageReact(tenantId, urlId, id).title(title).execute(); @@ -427,7 +432,7 @@ public class Example { String id = "id_example"; // String | String title = "title_example"; // String | try { - CreateV2PageReactResponse result = apiInstance.createV2PageReact(tenantId, urlId, id) + CreateV1PageReact result = apiInstance.createV2PageReact(tenantId, urlId, id) .title(title) .execute(); System.out.println(result); @@ -453,7 +458,7 @@ public class Example { ### Return type -[**CreateV2PageReactResponse**](CreateV2PageReactResponse.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -468,10 +473,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteCommentPublic** -> DeleteCommentPublicResponse deleteCommentPublic(tenantId, commentId, broadcastId).editKey(editKey).sso(sso).execute(); +> PublicAPIDeleteCommentResponse deleteCommentPublic(tenantId, commentId, broadcastId).editKey(editKey).sso(sso).execute(); @@ -496,7 +502,7 @@ public class Example { String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | try { - DeleteCommentPublicResponse result = apiInstance.deleteCommentPublic(tenantId, commentId, broadcastId) + PublicAPIDeleteCommentResponse result = apiInstance.deleteCommentPublic(tenantId, commentId, broadcastId) .editKey(editKey) .sso(sso) .execute(); @@ -524,7 +530,7 @@ public class Example { ### Return type -[**DeleteCommentPublicResponse**](DeleteCommentPublicResponse.md) +[**PublicAPIDeleteCommentResponse**](PublicAPIDeleteCommentResponse.md) ### Authorization @@ -539,10 +545,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteCommentVote** -> DeleteCommentVoteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId).editKey(editKey).sso(sso).execute(); +> VoteDeleteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId).editKey(editKey).sso(sso).execute(); @@ -569,7 +576,7 @@ public class Example { String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | try { - DeleteCommentVoteResponse result = apiInstance.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) + VoteDeleteResponse result = apiInstance.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) .editKey(editKey) .sso(sso) .execute(); @@ -599,7 +606,7 @@ public class Example { ### Return type -[**DeleteCommentVoteResponse**](DeleteCommentVoteResponse.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -614,6 +621,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteFeedPostPublic** @@ -683,10 +691,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteV1PageReact** -> DeleteV1PageReactResponse deleteV1PageReact(tenantId, urlId).execute(); +> CreateV1PageReact deleteV1PageReact(tenantId, urlId).execute(); @@ -708,7 +717,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | try { - DeleteV1PageReactResponse result = apiInstance.deleteV1PageReact(tenantId, urlId) + CreateV1PageReact result = apiInstance.deleteV1PageReact(tenantId, urlId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -731,7 +740,7 @@ public class Example { ### Return type -[**DeleteV1PageReactResponse**](DeleteV1PageReactResponse.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -746,10 +755,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **deleteV2PageReact** -> DeleteV2PageReactResponse deleteV2PageReact(tenantId, urlId, id).execute(); +> CreateV1PageReact deleteV2PageReact(tenantId, urlId, id).execute(); @@ -772,7 +782,7 @@ public class Example { String urlId = "urlId_example"; // String | String id = "id_example"; // String | try { - DeleteV2PageReactResponse result = apiInstance.deleteV2PageReact(tenantId, urlId, id) + CreateV1PageReact result = apiInstance.deleteV2PageReact(tenantId, urlId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -796,7 +806,7 @@ public class Example { ### Return type -[**DeleteV2PageReactResponse**](DeleteV2PageReactResponse.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -811,10 +821,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **flagCommentPublic** -> FlagCommentPublicResponse flagCommentPublic(tenantId, commentId, isFlagged).sso(sso).execute(); +> APIEmptyResponse flagCommentPublic(tenantId, commentId, isFlagged).sso(sso).execute(); @@ -838,7 +849,7 @@ public class Example { Boolean isFlagged = true; // Boolean | String sso = "sso_example"; // String | try { - FlagCommentPublicResponse result = apiInstance.flagCommentPublic(tenantId, commentId, isFlagged) + APIEmptyResponse result = apiInstance.flagCommentPublic(tenantId, commentId, isFlagged) .sso(sso) .execute(); System.out.println(result); @@ -864,7 +875,7 @@ public class Example { ### Return type -[**FlagCommentPublicResponse**](FlagCommentPublicResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -879,10 +890,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getCommentText** -> GetCommentTextResponse1 getCommentText(tenantId, commentId).editKey(editKey).sso(sso).execute(); +> PublicAPIGetCommentTextResponse getCommentText(tenantId, commentId).editKey(editKey).sso(sso).execute(); @@ -906,7 +918,7 @@ public class Example { String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | try { - GetCommentTextResponse1 result = apiInstance.getCommentText(tenantId, commentId) + PublicAPIGetCommentTextResponse result = apiInstance.getCommentText(tenantId, commentId) .editKey(editKey) .sso(sso) .execute(); @@ -933,7 +945,7 @@ public class Example { ### Return type -[**GetCommentTextResponse1**](GetCommentTextResponse1.md) +[**PublicAPIGetCommentTextResponse**](PublicAPIGetCommentTextResponse.md) ### Authorization @@ -948,10 +960,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getCommentVoteUserNames** -> GetCommentVoteUserNamesResponse getCommentVoteUserNames(tenantId, commentId, dir).sso(sso).execute(); +> GetCommentVoteUserNamesSuccessResponse getCommentVoteUserNames(tenantId, commentId, dir).sso(sso).execute(); @@ -975,7 +988,7 @@ public class Example { Integer dir = 56; // Integer | String sso = "sso_example"; // String | try { - GetCommentVoteUserNamesResponse result = apiInstance.getCommentVoteUserNames(tenantId, commentId, dir) + GetCommentVoteUserNamesSuccessResponse result = apiInstance.getCommentVoteUserNames(tenantId, commentId, dir) .sso(sso) .execute(); System.out.println(result); @@ -1001,7 +1014,7 @@ public class Example { ### Return type -[**GetCommentVoteUserNamesResponse**](GetCommentVoteUserNamesResponse.md) +[**GetCommentVoteUserNamesSuccessResponse**](GetCommentVoteUserNamesSuccessResponse.md) ### Authorization @@ -1016,10 +1029,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getCommentsForUser** -> GetCommentsForUserResponse1 getCommentsForUser().userId(userId).direction(direction).repliesToUserId(repliesToUserId).page(page).includei10n(includei10n).locale(locale).isCrawler(isCrawler).execute(); +> GetCommentsForUserResponse getCommentsForUser().userId(userId).direction(direction).repliesToUserId(repliesToUserId).page(page).includei10n(includei10n).locale(locale).isCrawler(isCrawler).execute(); @@ -1046,7 +1060,7 @@ public class Example { String locale = "locale_example"; // String | Boolean isCrawler = true; // Boolean | try { - GetCommentsForUserResponse1 result = apiInstance.getCommentsForUser() + GetCommentsForUserResponse result = apiInstance.getCommentsForUser() .userId(userId) .direction(direction) .repliesToUserId(repliesToUserId) @@ -1081,7 +1095,7 @@ public class Example { ### Return type -[**GetCommentsForUserResponse1**](GetCommentsForUserResponse1.md) +[**GetCommentsForUserResponse**](GetCommentsForUserResponse.md) ### Authorization @@ -1096,10 +1110,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getCommentsPublic** -> GetCommentsPublicResponse 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(); +> 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(); @@ -1149,7 +1164,7 @@ public class Example { String afterCommentId = "afterCommentId_example"; // String | String beforeCommentId = "beforeCommentId_example"; // String | try { - GetCommentsPublicResponse result = apiInstance.getCommentsPublic(tenantId, urlId) + GetCommentsResponseWithPresencePublicComment result = apiInstance.getCommentsPublic(tenantId, urlId) .page(page) .direction(direction) .sso(sso) @@ -1224,7 +1239,7 @@ public class Example { ### Return type -[**GetCommentsPublicResponse**](GetCommentsPublicResponse.md) +[**GetCommentsResponseWithPresencePublicComment**](GetCommentsResponseWithPresencePublicComment.md) ### Authorization @@ -1239,10 +1254,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getEventLog** -> GetEventLogResponse1 getEventLog(tenantId, urlId, userIdWS, startTime).endTime(endTime).execute(); +> GetEventLogResponse getEventLog(tenantId, urlId, userIdWS, startTime).endTime(endTime).execute(); @@ -1269,7 +1285,7 @@ public class Example { Long startTime = 56L; // Long | Long endTime = 56L; // Long | try { - GetEventLogResponse1 result = apiInstance.getEventLog(tenantId, urlId, userIdWS, startTime) + GetEventLogResponse result = apiInstance.getEventLog(tenantId, urlId, userIdWS, startTime) .endTime(endTime) .execute(); System.out.println(result); @@ -1296,7 +1312,7 @@ public class Example { ### Return type -[**GetEventLogResponse1**](GetEventLogResponse1.md) +[**GetEventLogResponse**](GetEventLogResponse.md) ### Authorization @@ -1311,10 +1327,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getFeedPostsPublic** -> GetFeedPostsPublicResponse getFeedPostsPublic(tenantId).afterId(afterId).limit(limit).tags(tags).sso(sso).isCrawler(isCrawler).includeUserInfo(includeUserInfo).execute(); +> PublicFeedPostsResponse getFeedPostsPublic(tenantId).afterId(afterId).limit(limit).tags(tags).sso(sso).isCrawler(isCrawler).includeUserInfo(includeUserInfo).execute(); @@ -1343,7 +1360,7 @@ public class Example { Boolean isCrawler = true; // Boolean | Boolean includeUserInfo = true; // Boolean | try { - GetFeedPostsPublicResponse result = apiInstance.getFeedPostsPublic(tenantId) + PublicFeedPostsResponse result = apiInstance.getFeedPostsPublic(tenantId) .afterId(afterId) .limit(limit) .tags(tags) @@ -1377,7 +1394,7 @@ public class Example { ### Return type -[**GetFeedPostsPublicResponse**](GetFeedPostsPublicResponse.md) +[**PublicFeedPostsResponse**](PublicFeedPostsResponse.md) ### Authorization @@ -1392,10 +1409,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getFeedPostsStats** -> GetFeedPostsStatsResponse getFeedPostsStats(tenantId, postIds).sso(sso).execute(); +> FeedPostsStatsResponse getFeedPostsStats(tenantId, postIds).sso(sso).execute(); @@ -1418,7 +1436,7 @@ public class Example { List postIds = Arrays.asList(); // List | String sso = "sso_example"; // String | try { - GetFeedPostsStatsResponse result = apiInstance.getFeedPostsStats(tenantId, postIds) + FeedPostsStatsResponse result = apiInstance.getFeedPostsStats(tenantId, postIds) .sso(sso) .execute(); System.out.println(result); @@ -1443,7 +1461,7 @@ public class Example { ### Return type -[**GetFeedPostsStatsResponse**](GetFeedPostsStatsResponse.md) +[**FeedPostsStatsResponse**](FeedPostsStatsResponse.md) ### Authorization @@ -1458,10 +1476,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getGifLarge** -> GetGifLargeResponse getGifLarge(tenantId, largeInternalURLSanitized).execute(); +> GifGetLargeResponse getGifLarge(tenantId, largeInternalURLSanitized).execute(); @@ -1483,7 +1502,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String largeInternalURLSanitized = "largeInternalURLSanitized_example"; // String | try { - GetGifLargeResponse result = apiInstance.getGifLarge(tenantId, largeInternalURLSanitized) + GifGetLargeResponse result = apiInstance.getGifLarge(tenantId, largeInternalURLSanitized) .execute(); System.out.println(result); } catch (ApiException e) { @@ -1506,7 +1525,7 @@ public class Example { ### Return type -[**GetGifLargeResponse**](GetGifLargeResponse.md) +[**GifGetLargeResponse**](GifGetLargeResponse.md) ### Authorization @@ -1522,6 +1541,7 @@ No authorization required |-------------|-------------|------------------| | **200** | Ok | - | | **422** | Validation Failed | - | +| **0** | Error | - | # **getGifsSearch** @@ -1595,6 +1615,7 @@ No authorization required |-------------|-------------|------------------| | **200** | Ok | - | | **422** | Validation Failed | - | +| **0** | Error | - | # **getGifsTrending** @@ -1668,7 +1689,7 @@ No authorization required # **getGlobalEventLog** -> GetGlobalEventLogResponse getGlobalEventLog(tenantId, urlId, userIdWS, startTime).endTime(endTime).execute(); +> GetEventLogResponse getGlobalEventLog(tenantId, urlId, userIdWS, startTime).endTime(endTime).execute(); @@ -1695,7 +1716,7 @@ public class Example { Long startTime = 56L; // Long | Long endTime = 56L; // Long | try { - GetGlobalEventLogResponse result = apiInstance.getGlobalEventLog(tenantId, urlId, userIdWS, startTime) + GetEventLogResponse result = apiInstance.getGlobalEventLog(tenantId, urlId, userIdWS, startTime) .endTime(endTime) .execute(); System.out.println(result); @@ -1722,7 +1743,7 @@ public class Example { ### Return type -[**GetGlobalEventLogResponse**](GetGlobalEventLogResponse.md) +[**GetEventLogResponse**](GetEventLogResponse.md) ### Authorization @@ -1737,10 +1758,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getOfflineUsers** -> GetOfflineUsersResponse getOfflineUsers(tenantId, urlId).afterName(afterName).afterUserId(afterUserId).execute(); +> PageUsersOfflineResponse getOfflineUsers(tenantId, urlId).afterName(afterName).afterUserId(afterUserId).execute(); @@ -1766,7 +1788,7 @@ public class Example { 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 { - GetOfflineUsersResponse result = apiInstance.getOfflineUsers(tenantId, urlId) + PageUsersOfflineResponse result = apiInstance.getOfflineUsers(tenantId, urlId) .afterName(afterName) .afterUserId(afterUserId) .execute(); @@ -1793,7 +1815,7 @@ public class Example { ### Return type -[**GetOfflineUsersResponse**](GetOfflineUsersResponse.md) +[**PageUsersOfflineResponse**](PageUsersOfflineResponse.md) ### Authorization @@ -1810,10 +1832,11 @@ No authorization required | **200** | Ok | - | | **403** | Forbidden | - | | **422** | Validation Failed | - | +| **0** | Error | - | # **getOnlineUsers** -> GetOnlineUsersResponse getOnlineUsers(tenantId, urlId).afterName(afterName).afterUserId(afterUserId).execute(); +> PageUsersOnlineResponse getOnlineUsers(tenantId, urlId).afterName(afterName).afterUserId(afterUserId).execute(); @@ -1839,7 +1862,7 @@ public class Example { 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 { - GetOnlineUsersResponse result = apiInstance.getOnlineUsers(tenantId, urlId) + PageUsersOnlineResponse result = apiInstance.getOnlineUsers(tenantId, urlId) .afterName(afterName) .afterUserId(afterUserId) .execute(); @@ -1866,7 +1889,7 @@ public class Example { ### Return type -[**GetOnlineUsersResponse**](GetOnlineUsersResponse.md) +[**PageUsersOnlineResponse**](PageUsersOnlineResponse.md) ### Authorization @@ -1883,10 +1906,11 @@ No authorization required | **200** | Ok | - | | **403** | Forbidden | - | | **422** | Validation Failed | - | +| **0** | Error | - | # **getPagesPublic** -> GetPagesPublicResponse getPagesPublic(tenantId).cursor(cursor).limit(limit).q(q).sortBy(sortBy).hasComments(hasComments).execute(); +> GetPublicPagesResponse getPagesPublic(tenantId).cursor(cursor).limit(limit).q(q).sortBy(sortBy).hasComments(hasComments).execute(); @@ -1914,7 +1938,7 @@ public class Example { 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 { - GetPagesPublicResponse result = apiInstance.getPagesPublic(tenantId) + GetPublicPagesResponse result = apiInstance.getPagesPublic(tenantId) .cursor(cursor) .limit(limit) .q(q) @@ -1946,7 +1970,7 @@ public class Example { ### Return type -[**GetPagesPublicResponse**](GetPagesPublicResponse.md) +[**GetPublicPagesResponse**](GetPublicPagesResponse.md) ### Authorization @@ -1961,10 +1985,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getTranslations** -> GetTranslationsResponse1 getTranslations(namespace, component).locale(locale).useFullTranslationIds(useFullTranslationIds).execute(); +> GetTranslationsResponse getTranslations(namespace, component).locale(locale).useFullTranslationIds(useFullTranslationIds).execute(); @@ -1988,7 +2013,7 @@ public class Example { String locale = "locale_example"; // String | Boolean useFullTranslationIds = true; // Boolean | try { - GetTranslationsResponse1 result = apiInstance.getTranslations(namespace, component) + GetTranslationsResponse result = apiInstance.getTranslations(namespace, component) .locale(locale) .useFullTranslationIds(useFullTranslationIds) .execute(); @@ -2015,7 +2040,7 @@ public class Example { ### Return type -[**GetTranslationsResponse1**](GetTranslationsResponse1.md) +[**GetTranslationsResponse**](GetTranslationsResponse.md) ### Authorization @@ -2032,10 +2057,11 @@ No authorization required | **200** | Ok | - | | **422** | Validation Failed | - | | **500** | Internal | - | +| **0** | Error | - | # **getUserNotificationCount** -> GetUserNotificationCountResponse1 getUserNotificationCount(tenantId).sso(sso).execute(); +> GetUserNotificationCountResponse getUserNotificationCount(tenantId).sso(sso).execute(); @@ -2057,7 +2083,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetUserNotificationCountResponse1 result = apiInstance.getUserNotificationCount(tenantId) + GetUserNotificationCountResponse result = apiInstance.getUserNotificationCount(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2081,7 +2107,7 @@ public class Example { ### Return type -[**GetUserNotificationCountResponse1**](GetUserNotificationCountResponse1.md) +[**GetUserNotificationCountResponse**](GetUserNotificationCountResponse.md) ### Authorization @@ -2096,10 +2122,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserNotifications** -> GetUserNotificationsResponse 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(); +> 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(); @@ -2131,7 +2158,7 @@ public class Example { Boolean includeTenantNotifications = true; // Boolean | String sso = "sso_example"; // String | try { - GetUserNotificationsResponse result = apiInstance.getUserNotifications(tenantId) + GetMyNotificationsResponse result = apiInstance.getUserNotifications(tenantId) .urlId(urlId) .pageSize(pageSize) .afterId(afterId) @@ -2175,7 +2202,7 @@ public class Example { ### Return type -[**GetUserNotificationsResponse**](GetUserNotificationsResponse.md) +[**GetMyNotificationsResponse**](GetMyNotificationsResponse.md) ### Authorization @@ -2190,10 +2217,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUserPresenceStatuses** -> GetUserPresenceStatusesResponse1 getUserPresenceStatuses(tenantId, urlIdWS, userIds).execute(); +> GetUserPresenceStatusesResponse getUserPresenceStatuses(tenantId, urlIdWS, userIds).execute(); @@ -2216,7 +2244,7 @@ public class Example { String urlIdWS = "urlIdWS_example"; // String | String userIds = "userIds_example"; // String | try { - GetUserPresenceStatusesResponse1 result = apiInstance.getUserPresenceStatuses(tenantId, urlIdWS, userIds) + GetUserPresenceStatusesResponse result = apiInstance.getUserPresenceStatuses(tenantId, urlIdWS, userIds) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2240,7 +2268,7 @@ public class Example { ### Return type -[**GetUserPresenceStatusesResponse1**](GetUserPresenceStatusesResponse1.md) +[**GetUserPresenceStatusesResponse**](GetUserPresenceStatusesResponse.md) ### Authorization @@ -2256,10 +2284,11 @@ No authorization required |-------------|-------------|------------------| | **200** | Ok | - | | **422** | Validation Failed | - | +| **0** | Error | - | # **getUserReactsPublic** -> GetUserReactsPublicResponse getUserReactsPublic(tenantId).postIds(postIds).sso(sso).execute(); +> UserReactsResponse getUserReactsPublic(tenantId).postIds(postIds).sso(sso).execute(); @@ -2282,7 +2311,7 @@ public class Example { List postIds = Arrays.asList(); // List | String sso = "sso_example"; // String | try { - GetUserReactsPublicResponse result = apiInstance.getUserReactsPublic(tenantId) + UserReactsResponse result = apiInstance.getUserReactsPublic(tenantId) .postIds(postIds) .sso(sso) .execute(); @@ -2308,7 +2337,7 @@ public class Example { ### Return type -[**GetUserReactsPublicResponse**](GetUserReactsPublicResponse.md) +[**UserReactsResponse**](UserReactsResponse.md) ### Authorization @@ -2323,10 +2352,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getUsersInfo** -> GetUsersInfoResponse getUsersInfo(tenantId, ids).execute(); +> PageUsersInfoResponse getUsersInfo(tenantId, ids).execute(); @@ -2350,7 +2380,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String ids = "ids_example"; // String | Comma-delimited userIds. try { - GetUsersInfoResponse result = apiInstance.getUsersInfo(tenantId, ids) + PageUsersInfoResponse result = apiInstance.getUsersInfo(tenantId, ids) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2373,7 +2403,7 @@ public class Example { ### Return type -[**GetUsersInfoResponse**](GetUsersInfoResponse.md) +[**PageUsersInfoResponse**](PageUsersInfoResponse.md) ### Authorization @@ -2389,10 +2419,11 @@ No authorization required |-------------|-------------|------------------| | **200** | Ok | - | | **422** | Validation Failed | - | +| **0** | Error | - | # **getV1PageLikes** -> GetV1PageLikesResponse getV1PageLikes(tenantId, urlId).execute(); +> GetV1PageLikes getV1PageLikes(tenantId, urlId).execute(); @@ -2414,7 +2445,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | try { - GetV1PageLikesResponse result = apiInstance.getV1PageLikes(tenantId, urlId) + GetV1PageLikes result = apiInstance.getV1PageLikes(tenantId, urlId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2437,7 +2468,7 @@ public class Example { ### Return type -[**GetV1PageLikesResponse**](GetV1PageLikesResponse.md) +[**GetV1PageLikes**](GetV1PageLikes.md) ### Authorization @@ -2452,10 +2483,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getV2PageReactUsers** -> GetV2PageReactUsersResponse1 getV2PageReactUsers(tenantId, urlId, id).execute(); +> GetV2PageReactUsersResponse getV2PageReactUsers(tenantId, urlId, id).execute(); @@ -2478,7 +2510,7 @@ public class Example { String urlId = "urlId_example"; // String | String id = "id_example"; // String | try { - GetV2PageReactUsersResponse1 result = apiInstance.getV2PageReactUsers(tenantId, urlId, id) + GetV2PageReactUsersResponse result = apiInstance.getV2PageReactUsers(tenantId, urlId, id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2502,7 +2534,7 @@ public class Example { ### Return type -[**GetV2PageReactUsersResponse1**](GetV2PageReactUsersResponse1.md) +[**GetV2PageReactUsersResponse**](GetV2PageReactUsersResponse.md) ### Authorization @@ -2517,10 +2549,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **getV2PageReacts** -> GetV2PageReactsResponse getV2PageReacts(tenantId, urlId).execute(); +> GetV2PageReacts getV2PageReacts(tenantId, urlId).execute(); @@ -2542,7 +2575,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | try { - GetV2PageReactsResponse result = apiInstance.getV2PageReacts(tenantId, urlId) + GetV2PageReacts result = apiInstance.getV2PageReacts(tenantId, urlId) .execute(); System.out.println(result); } catch (ApiException e) { @@ -2565,7 +2598,7 @@ public class Example { ### Return type -[**GetV2PageReactsResponse**](GetV2PageReactsResponse.md) +[**GetV2PageReacts**](GetV2PageReacts.md) ### Authorization @@ -2580,10 +2613,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **lockComment** -> LockCommentResponse lockComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> APIEmptyResponse lockComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -2607,7 +2641,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - LockCommentResponse result = apiInstance.lockComment(tenantId, commentId, broadcastId) + APIEmptyResponse result = apiInstance.lockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2633,7 +2667,7 @@ public class Example { ### Return type -[**LockCommentResponse**](LockCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2648,6 +2682,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **logoutPublic** @@ -2708,7 +2743,7 @@ No authorization required # **pinComment** -> PinCommentResponse pinComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> ChangeCommentPinStatusResponse pinComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -2732,7 +2767,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - PinCommentResponse result = apiInstance.pinComment(tenantId, commentId, broadcastId) + ChangeCommentPinStatusResponse result = apiInstance.pinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2758,7 +2793,7 @@ public class Example { ### Return type -[**PinCommentResponse**](PinCommentResponse.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -2773,10 +2808,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **reactFeedPostPublic** -> ReactFeedPostPublicResponse reactFeedPostPublic(tenantId, postId, reactBodyParams).isUndo(isUndo).broadcastId(broadcastId).sso(sso).execute(); +> ReactFeedPostResponse reactFeedPostPublic(tenantId, postId, reactBodyParams).isUndo(isUndo).broadcastId(broadcastId).sso(sso).execute(); @@ -2802,7 +2838,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - ReactFeedPostPublicResponse result = apiInstance.reactFeedPostPublic(tenantId, postId, reactBodyParams) + ReactFeedPostResponse result = apiInstance.reactFeedPostPublic(tenantId, postId, reactBodyParams) .isUndo(isUndo) .broadcastId(broadcastId) .sso(sso) @@ -2832,7 +2868,7 @@ public class Example { ### Return type -[**ReactFeedPostPublicResponse**](ReactFeedPostPublicResponse.md) +[**ReactFeedPostResponse**](ReactFeedPostResponse.md) ### Authorization @@ -2847,10 +2883,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **resetUserNotificationCount** -> ResetUserNotificationCountResponse resetUserNotificationCount(tenantId).sso(sso).execute(); +> ResetUserNotificationsResponse resetUserNotificationCount(tenantId).sso(sso).execute(); @@ -2872,7 +2909,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ResetUserNotificationCountResponse result = apiInstance.resetUserNotificationCount(tenantId) + ResetUserNotificationsResponse result = apiInstance.resetUserNotificationCount(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2896,7 +2933,7 @@ public class Example { ### Return type -[**ResetUserNotificationCountResponse**](ResetUserNotificationCountResponse.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -2911,10 +2948,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **resetUserNotifications** -> ResetUserNotificationsResponse1 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(); @@ -2941,7 +2979,7 @@ public class Example { Boolean noDm = true; // Boolean | String sso = "sso_example"; // String | try { - ResetUserNotificationsResponse1 result = apiInstance.resetUserNotifications(tenantId) + ResetUserNotificationsResponse result = apiInstance.resetUserNotifications(tenantId) .afterId(afterId) .afterCreatedAt(afterCreatedAt) .unreadOnly(unreadOnly) @@ -2975,7 +3013,7 @@ public class Example { ### Return type -[**ResetUserNotificationsResponse1**](ResetUserNotificationsResponse1.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -2990,10 +3028,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **searchUsers** -> SearchUsersResponse1 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(); @@ -3019,7 +3058,7 @@ public class Example { String sso = "sso_example"; // String | String searchSection = "fast"; // String | try { - SearchUsersResponse1 result = apiInstance.searchUsers(tenantId, urlId) + SearchUsersResult result = apiInstance.searchUsers(tenantId, urlId) .usernameStartsWith(usernameStartsWith) .mentionGroupIds(mentionGroupIds) .sso(sso) @@ -3050,7 +3089,7 @@ public class Example { ### Return type -[**SearchUsersResponse1**](SearchUsersResponse1.md) +[**SearchUsersResult**](SearchUsersResult.md) ### Authorization @@ -3065,10 +3104,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **setCommentText** -> SetCommentTextResponse1 setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest).editKey(editKey).sso(sso).execute(); +> PublicAPISetCommentTextResponse setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest).editKey(editKey).sso(sso).execute(); @@ -3094,7 +3134,7 @@ public class Example { String editKey = "editKey_example"; // String | String sso = "sso_example"; // String | try { - SetCommentTextResponse1 result = apiInstance.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) + PublicAPISetCommentTextResponse result = apiInstance.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) .editKey(editKey) .sso(sso) .execute(); @@ -3123,7 +3163,7 @@ public class Example { ### Return type -[**SetCommentTextResponse1**](SetCommentTextResponse1.md) +[**PublicAPISetCommentTextResponse**](PublicAPISetCommentTextResponse.md) ### Authorization @@ -3138,10 +3178,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **unBlockCommentPublic** -> UnBlockCommentPublicResponse unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); +> UnblockSuccess unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams).sso(sso).execute(); @@ -3165,7 +3206,7 @@ public class Example { PublicBlockFromCommentParams publicBlockFromCommentParams = new PublicBlockFromCommentParams(); // PublicBlockFromCommentParams | String sso = "sso_example"; // String | try { - UnBlockCommentPublicResponse result = apiInstance.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + UnblockSuccess result = apiInstance.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); System.out.println(result); @@ -3191,7 +3232,7 @@ public class Example { ### Return type -[**UnBlockCommentPublicResponse**](UnBlockCommentPublicResponse.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -3206,10 +3247,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **unLockComment** -> UnLockCommentResponse unLockComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> APIEmptyResponse unLockComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -3233,7 +3275,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - UnLockCommentResponse result = apiInstance.unLockComment(tenantId, commentId, broadcastId) + APIEmptyResponse result = apiInstance.unLockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -3259,7 +3301,7 @@ public class Example { ### Return type -[**UnLockCommentResponse**](UnLockCommentResponse.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3274,10 +3316,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **unPinComment** -> UnPinCommentResponse unPinComment(tenantId, commentId, broadcastId).sso(sso).execute(); +> ChangeCommentPinStatusResponse unPinComment(tenantId, commentId, broadcastId).sso(sso).execute(); @@ -3301,7 +3344,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - UnPinCommentResponse result = apiInstance.unPinComment(tenantId, commentId, broadcastId) + ChangeCommentPinStatusResponse result = apiInstance.unPinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -3327,7 +3370,7 @@ public class Example { ### Return type -[**UnPinCommentResponse**](UnPinCommentResponse.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -3342,10 +3385,11 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateFeedPostPublic** -> UpdateFeedPostPublicResponse updateFeedPostPublic(tenantId, postId, updateFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); +> CreateFeedPostResponse updateFeedPostPublic(tenantId, postId, updateFeedPostParams).broadcastId(broadcastId).sso(sso).execute(); @@ -3370,7 +3414,7 @@ public class Example { String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - UpdateFeedPostPublicResponse result = apiInstance.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) + CreateFeedPostResponse result = apiInstance.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); @@ -3398,7 +3442,7 @@ public class Example { ### Return type -[**UpdateFeedPostPublicResponse**](UpdateFeedPostPublicResponse.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -3413,6 +3457,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateUserNotificationCommentSubscriptionStatus** @@ -3485,6 +3530,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateUserNotificationPageSubscriptionStatus** @@ -3559,6 +3605,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **updateUserNotificationStatus** @@ -3627,6 +3674,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | # **uploadImage** @@ -3701,7 +3749,7 @@ No authorization required # **voteComment** -> VoteCommentResponse voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams).sessionId(sessionId).sso(sso).execute(); +> VoteResponse voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams).sessionId(sessionId).sso(sso).execute(); @@ -3728,7 +3776,7 @@ public class Example { String sessionId = "sessionId_example"; // String | String sso = "sso_example"; // String | try { - VoteCommentResponse result = apiInstance.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams) + VoteResponse result = apiInstance.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams) .sessionId(sessionId) .sso(sso) .execute(); @@ -3758,7 +3806,7 @@ public class Example { ### Return type -[**VoteCommentResponse**](VoteCommentResponse.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -3773,4 +3821,5 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Ok | - | +| **0** | Error | - | diff --git a/client/docs/PutAwardBadgeResponse.md b/client/docs/PutAwardBadgeResponse.md deleted file mode 100644 index b9461336..00000000 --- a/client/docs/PutAwardBadgeResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# PutAwardBadgeResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**notes** | **List<String>** | | [optional] | -|**badges** | [**List<CommentUserBadgeInfo>**](CommentUserBadgeInfo.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/PutCloseThreadResponse.md b/client/docs/PutCloseThreadResponse.md deleted file mode 100644 index ecc485ad..00000000 --- a/client/docs/PutCloseThreadResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# PutCloseThreadResponse - - -## 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/PutRemoveBadgeResponse.md b/client/docs/PutRemoveBadgeResponse.md deleted file mode 100644 index 3261a30e..00000000 --- a/client/docs/PutRemoveBadgeResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# PutRemoveBadgeResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**badges** | [**List<CommentUserBadgeInfo>**](CommentUserBadgeInfo.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/PutReopenThreadResponse.md b/client/docs/PutReopenThreadResponse.md deleted file mode 100644 index eb3a9ef4..00000000 --- a/client/docs/PutReopenThreadResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# PutReopenThreadResponse - - -## 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/ReactFeedPostPublicResponse.md b/client/docs/ReactFeedPostPublicResponse.md deleted file mode 100644 index 473cd2d5..00000000 --- a/client/docs/ReactFeedPostPublicResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# ReactFeedPostPublicResponse - - -## 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/RenderEmailTemplateResponse1.md b/client/docs/RenderEmailTemplateResponse1.md deleted file mode 100644 index 64c5b1eb..00000000 --- a/client/docs/RenderEmailTemplateResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# RenderEmailTemplateResponse1 - - -## 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/ReplaceTenantPackageResponse.md b/client/docs/ReplaceTenantPackageResponse.md deleted file mode 100644 index 36785984..00000000 --- a/client/docs/ReplaceTenantPackageResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# ReplaceTenantPackageResponse - - -## 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/ReplaceTenantUserResponse.md b/client/docs/ReplaceTenantUserResponse.md deleted file mode 100644 index a6cabac8..00000000 --- a/client/docs/ReplaceTenantUserResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# ReplaceTenantUserResponse - - -## 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/ResetUserNotificationCountResponse.md b/client/docs/ResetUserNotificationCountResponse.md deleted file mode 100644 index 7cf1cad9..00000000 --- a/client/docs/ResetUserNotificationCountResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# ResetUserNotificationCountResponse - - -## 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/ResetUserNotificationsResponse1.md b/client/docs/ResetUserNotificationsResponse1.md deleted file mode 100644 index bf868683..00000000 --- a/client/docs/ResetUserNotificationsResponse1.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# ResetUserNotificationsResponse1 - - -## 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/SaveCommentResponse.md b/client/docs/SaveCommentResponse.md deleted file mode 100644 index f7c60374..00000000 --- a/client/docs/SaveCommentResponse.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# SaveCommentResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **APIStatus** | | | -|**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] | -|**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/SearchUsersResponse1.md b/client/docs/SearchUsersResponse1.md deleted file mode 100644 index 6267270b..00000000 --- a/client/docs/SearchUsersResponse1.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# SearchUsersResponse1 - - -## 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/SendInviteResponse.md b/client/docs/SendInviteResponse.md deleted file mode 100644 index 7411f8f9..00000000 --- a/client/docs/SendInviteResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# SendInviteResponse - - -## 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/SendLoginLinkResponse.md b/client/docs/SendLoginLinkResponse.md deleted file mode 100644 index 32224594..00000000 --- a/client/docs/SendLoginLinkResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# SendLoginLinkResponse - - -## 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/SetCommentTextResponse1.md b/client/docs/SetCommentTextResponse1.md deleted file mode 100644 index 7b8933ea..00000000 --- a/client/docs/SetCommentTextResponse1.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# SetCommentTextResponse1 - - -## 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/SetTrustFactorResponse.md b/client/docs/SetTrustFactorResponse.md deleted file mode 100644 index 0842f778..00000000 --- a/client/docs/SetTrustFactorResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# SetTrustFactorResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**previousManualTrustFactor** | **Double** | | [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/UnBlockCommentPublicResponse.md b/client/docs/UnBlockCommentPublicResponse.md deleted file mode 100644 index 8c64cea5..00000000 --- a/client/docs/UnBlockCommentPublicResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# UnBlockCommentPublicResponse - - -## 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/UnBlockUserFromCommentResponse.md b/client/docs/UnBlockUserFromCommentResponse.md deleted file mode 100644 index 5c08d69a..00000000 --- a/client/docs/UnBlockUserFromCommentResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# UnBlockUserFromCommentResponse - - -## 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/UnFlagCommentResponse.md b/client/docs/UnFlagCommentResponse.md deleted file mode 100644 index 2eca045e..00000000 --- a/client/docs/UnFlagCommentResponse.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# UnFlagCommentResponse - - -## 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/UnLockCommentResponse.md b/client/docs/UnLockCommentResponse.md deleted file mode 100644 index 869352c5..00000000 --- a/client/docs/UnLockCommentResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UnLockCommentResponse - - -## 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/UnPinCommentResponse.md b/client/docs/UnPinCommentResponse.md deleted file mode 100644 index fe4866ca..00000000 --- a/client/docs/UnPinCommentResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# UnPinCommentResponse - - -## 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/UpdateCommentResponse.md b/client/docs/UpdateCommentResponse.md deleted file mode 100644 index 37a23422..00000000 --- a/client/docs/UpdateCommentResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateCommentResponse - - -## 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/UpdateEmailTemplateResponse.md b/client/docs/UpdateEmailTemplateResponse.md deleted file mode 100644 index 9116c46e..00000000 --- a/client/docs/UpdateEmailTemplateResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateEmailTemplateResponse - - -## 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/UpdateFeedPostPublicResponse.md b/client/docs/UpdateFeedPostPublicResponse.md deleted file mode 100644 index 708471ba..00000000 --- a/client/docs/UpdateFeedPostPublicResponse.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# UpdateFeedPostPublicResponse - - -## 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/UpdateFeedPostResponse.md b/client/docs/UpdateFeedPostResponse.md deleted file mode 100644 index a7c5441f..00000000 --- a/client/docs/UpdateFeedPostResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateFeedPostResponse - - -## 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/UpdateModeratorResponse.md b/client/docs/UpdateModeratorResponse.md deleted file mode 100644 index 26ffebb7..00000000 --- a/client/docs/UpdateModeratorResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateModeratorResponse - - -## 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/UpdateNotificationResponse.md b/client/docs/UpdateNotificationResponse.md deleted file mode 100644 index c92fc674..00000000 --- a/client/docs/UpdateNotificationResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateNotificationResponse - - -## 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/UpdateQuestionConfigResponse.md b/client/docs/UpdateQuestionConfigResponse.md deleted file mode 100644 index 520ccc6e..00000000 --- a/client/docs/UpdateQuestionConfigResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateQuestionConfigResponse - - -## 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/UpdateQuestionResultResponse.md b/client/docs/UpdateQuestionResultResponse.md deleted file mode 100644 index 51015215..00000000 --- a/client/docs/UpdateQuestionResultResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateQuestionResultResponse - - -## 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/UpdateTenantPackageResponse.md b/client/docs/UpdateTenantPackageResponse.md deleted file mode 100644 index b321d1b9..00000000 --- a/client/docs/UpdateTenantPackageResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateTenantPackageResponse - - -## 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/UpdateTenantResponse.md b/client/docs/UpdateTenantResponse.md deleted file mode 100644 index bc96335c..00000000 --- a/client/docs/UpdateTenantResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateTenantResponse - - -## 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/UpdateTenantUserResponse.md b/client/docs/UpdateTenantUserResponse.md deleted file mode 100644 index 60926631..00000000 --- a/client/docs/UpdateTenantUserResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateTenantUserResponse - - -## 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/UpdateUserBadgeResponse.md b/client/docs/UpdateUserBadgeResponse.md deleted file mode 100644 index f4453ecd..00000000 --- a/client/docs/UpdateUserBadgeResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UpdateUserBadgeResponse - - -## 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/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md index 6af33614..884ec500 100644 --- a/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md +++ b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -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 index 5d7f8737..e735cead 100644 --- a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md +++ b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -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/UpdateUserNotificationStatusResponse.md b/client/docs/UpdateUserNotificationStatusResponse.md index 0fbbd021..7976fc31 100644 --- a/client/docs/UpdateUserNotificationStatusResponse.md +++ b/client/docs/UpdateUserNotificationStatusResponse.md @@ -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/VoteCommentResponse.md b/client/docs/VoteCommentResponse.md deleted file mode 100644 index 26578ebb..00000000 --- a/client/docs/VoteCommentResponse.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# VoteCommentResponse - - -## 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 4ee34779..677aced1 100644 --- a/client/src/main/java/com/fastcomments/api/DefaultApi.java +++ b/client/src/main/java/com/fastcomments/api/DefaultApi.java @@ -27,167 +27,141 @@ import java.io.IOException; +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.AddDomainConfigResponse; -import com.fastcomments.model.AddHashTagResponse; -import com.fastcomments.model.AddHashTagsBulkResponse; import com.fastcomments.model.AddPageAPIResponse; import com.fastcomments.model.AddSSOUserAPIResponse; -import com.fastcomments.model.AggregateQuestionResultsResponse1; +import com.fastcomments.model.AggregateQuestionResultsResponse; import com.fastcomments.model.AggregateResponse; import com.fastcomments.model.AggregateTimeBucket; import com.fastcomments.model.AggregationRequest; import com.fastcomments.model.BlockFromCommentParams; -import com.fastcomments.model.BlockUserFromCommentResponse; +import com.fastcomments.model.BlockSuccess; import com.fastcomments.model.BulkAggregateQuestionResultsRequest; -import com.fastcomments.model.BulkAggregateQuestionResultsResponse1; +import com.fastcomments.model.BulkAggregateQuestionResultsResponse; import com.fastcomments.model.BulkCreateHashTagsBody; +import com.fastcomments.model.BulkCreateHashTagsResponse; import com.fastcomments.model.ChangeTicketStateBody; -import com.fastcomments.model.ChangeTicketStateResponse1; -import com.fastcomments.model.CombineCommentsWithQuestionResultsResponse; +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.CreateEmailTemplateBody; -import com.fastcomments.model.CreateEmailTemplateResponse1; +import com.fastcomments.model.CreateEmailTemplateResponse; import com.fastcomments.model.CreateFeedPostParams; -import com.fastcomments.model.CreateFeedPostResponse1; +import com.fastcomments.model.CreateFeedPostsResponse; import com.fastcomments.model.CreateHashTagBody; +import com.fastcomments.model.CreateHashTagResponse; import com.fastcomments.model.CreateModeratorBody; -import com.fastcomments.model.CreateModeratorResponse1; +import com.fastcomments.model.CreateModeratorResponse; import com.fastcomments.model.CreateQuestionConfigBody; -import com.fastcomments.model.CreateQuestionConfigResponse1; +import com.fastcomments.model.CreateQuestionConfigResponse; import com.fastcomments.model.CreateQuestionResultBody; -import com.fastcomments.model.CreateQuestionResultResponse1; +import com.fastcomments.model.CreateQuestionResultResponse; import com.fastcomments.model.CreateSubscriptionAPIResponse; import com.fastcomments.model.CreateTenantBody; import com.fastcomments.model.CreateTenantPackageBody; -import com.fastcomments.model.CreateTenantPackageResponse1; -import com.fastcomments.model.CreateTenantResponse1; +import com.fastcomments.model.CreateTenantPackageResponse; +import com.fastcomments.model.CreateTenantResponse; import com.fastcomments.model.CreateTenantUserBody; -import com.fastcomments.model.CreateTenantUserResponse1; +import com.fastcomments.model.CreateTenantUserResponse; import com.fastcomments.model.CreateTicketBody; -import com.fastcomments.model.CreateTicketResponse1; +import com.fastcomments.model.CreateTicketResponse; import com.fastcomments.model.CreateUserBadgeParams; -import com.fastcomments.model.CreateUserBadgeResponse; -import com.fastcomments.model.CreateVoteResponse; -import com.fastcomments.model.DeleteCommentResponse; +import com.fastcomments.model.DeleteCommentResult; import com.fastcomments.model.DeleteDomainConfigResponse; -import com.fastcomments.model.DeleteEmailTemplateRenderErrorResponse; -import com.fastcomments.model.DeleteEmailTemplateResponse; import com.fastcomments.model.DeleteHashTagRequestBody; -import com.fastcomments.model.DeleteHashTagResponse; -import com.fastcomments.model.DeleteModeratorResponse; -import com.fastcomments.model.DeleteNotificationCountResponse; import com.fastcomments.model.DeletePageAPIResponse; -import com.fastcomments.model.DeletePendingWebhookEventResponse; -import com.fastcomments.model.DeleteQuestionConfigResponse; -import com.fastcomments.model.DeleteQuestionResultResponse; import com.fastcomments.model.DeleteSSOUserAPIResponse; import com.fastcomments.model.DeleteSubscriptionAPIResponse; -import com.fastcomments.model.DeleteTenantPackageResponse; -import com.fastcomments.model.DeleteTenantResponse; -import com.fastcomments.model.DeleteTenantUserResponse; -import com.fastcomments.model.DeleteUserBadgeResponse; -import com.fastcomments.model.DeleteVoteResponse; import com.fastcomments.model.FeedPost; -import com.fastcomments.model.FlagCommentResponse1; -import com.fastcomments.model.GetAuditLogsResponse1; -import com.fastcomments.model.GetCachedNotificationCountResponse1; -import com.fastcomments.model.GetCommentResponse; -import com.fastcomments.model.GetCommentsResponse; +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.GetEmailTemplateDefinitionsResponse1; -import com.fastcomments.model.GetEmailTemplateRenderErrorsResponse1; -import com.fastcomments.model.GetEmailTemplateResponse1; -import com.fastcomments.model.GetEmailTemplatesResponse1; -import com.fastcomments.model.GetFeedPostsResponse1; -import com.fastcomments.model.GetHashTagsResponse1; -import com.fastcomments.model.GetModeratorResponse1; -import com.fastcomments.model.GetModeratorsResponse1; -import com.fastcomments.model.GetNotificationCountResponse1; -import com.fastcomments.model.GetNotificationsResponse1; +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.GetPendingWebhookEventCountResponse1; -import com.fastcomments.model.GetPendingWebhookEventsResponse1; -import com.fastcomments.model.GetQuestionConfigResponse1; -import com.fastcomments.model.GetQuestionConfigsResponse1; -import com.fastcomments.model.GetQuestionResultResponse1; -import com.fastcomments.model.GetQuestionResultsResponse1; +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.GetSSOUsersResponse; import com.fastcomments.model.GetSubscriptionsAPIResponse; -import com.fastcomments.model.GetTenantDailyUsagesResponse1; -import com.fastcomments.model.GetTenantPackageResponse1; -import com.fastcomments.model.GetTenantPackagesResponse1; -import com.fastcomments.model.GetTenantResponse1; -import com.fastcomments.model.GetTenantUserResponse1; -import com.fastcomments.model.GetTenantUsersResponse1; -import com.fastcomments.model.GetTenantsResponse1; -import com.fastcomments.model.GetTicketResponse1; -import com.fastcomments.model.GetTicketsResponse1; -import com.fastcomments.model.GetUserBadgeProgressByIdResponse; -import com.fastcomments.model.GetUserBadgeProgressByUserIdResponse; -import com.fastcomments.model.GetUserBadgeProgressListResponse; -import com.fastcomments.model.GetUserBadgeResponse; -import com.fastcomments.model.GetUserBadgesResponse; -import com.fastcomments.model.GetUserResponse1; -import com.fastcomments.model.GetVotesForUserResponse1; -import com.fastcomments.model.GetVotesResponse1; +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.PatchDomainConfigResponse; -import com.fastcomments.model.PatchHashTagResponse; import com.fastcomments.model.PatchPageAPIResponse; import com.fastcomments.model.PatchSSOUserAPIResponse; import com.fastcomments.model.PutDomainConfigResponse; import com.fastcomments.model.PutSSOUserAPIResponse; import com.fastcomments.model.RenderEmailTemplateBody; -import com.fastcomments.model.RenderEmailTemplateResponse1; +import com.fastcomments.model.RenderEmailTemplateResponse; import com.fastcomments.model.ReplaceTenantPackageBody; -import com.fastcomments.model.ReplaceTenantPackageResponse; import com.fastcomments.model.ReplaceTenantUserBody; -import com.fastcomments.model.ReplaceTenantUserResponse; import com.fastcomments.model.SORTDIR; -import com.fastcomments.model.SaveCommentResponse; import com.fastcomments.model.SaveCommentsBulkResponse; -import com.fastcomments.model.SendInviteResponse; -import com.fastcomments.model.SendLoginLinkResponse; import com.fastcomments.model.SortDirections; import com.fastcomments.model.UnBlockFromCommentParams; -import com.fastcomments.model.UnBlockUserFromCommentResponse; -import com.fastcomments.model.UnFlagCommentResponse; +import com.fastcomments.model.UnblockSuccess; import com.fastcomments.model.UpdatableCommentParams; import com.fastcomments.model.UpdateAPIPageData; import com.fastcomments.model.UpdateAPISSOUserData; import com.fastcomments.model.UpdateAPIUserSubscriptionData; -import com.fastcomments.model.UpdateCommentResponse; import com.fastcomments.model.UpdateDomainConfigParams; import com.fastcomments.model.UpdateEmailTemplateBody; -import com.fastcomments.model.UpdateEmailTemplateResponse; -import com.fastcomments.model.UpdateFeedPostResponse; import com.fastcomments.model.UpdateHashTagBody; +import com.fastcomments.model.UpdateHashTagResponse; import com.fastcomments.model.UpdateModeratorBody; -import com.fastcomments.model.UpdateModeratorResponse; import com.fastcomments.model.UpdateNotificationBody; -import com.fastcomments.model.UpdateNotificationResponse; import com.fastcomments.model.UpdateQuestionConfigBody; -import com.fastcomments.model.UpdateQuestionConfigResponse; import com.fastcomments.model.UpdateQuestionResultBody; -import com.fastcomments.model.UpdateQuestionResultResponse; import com.fastcomments.model.UpdateSubscriptionAPIResponse; import com.fastcomments.model.UpdateTenantBody; import com.fastcomments.model.UpdateTenantPackageBody; -import com.fastcomments.model.UpdateTenantPackageResponse; -import com.fastcomments.model.UpdateTenantResponse; import com.fastcomments.model.UpdateTenantUserBody; -import com.fastcomments.model.UpdateTenantUserResponse; import com.fastcomments.model.UpdateUserBadgeParams; -import com.fastcomments.model.UpdateUserBadgeResponse; +import com.fastcomments.model.VoteDeleteResponse; +import com.fastcomments.model.VoteResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -459,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; } @@ -512,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 { @@ -520,32 +495,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute addHashTag request - * @return AddHashTagResponse + * @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 AddHashTagResponse 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<AddHashTagResponse> + * @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); } @@ -559,9 +536,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 addHashTagAsync(tenantId, createHashTagBody, _callback); } } @@ -575,6 +553,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIaddHashTagRequest addHashTag() { @@ -636,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; } @@ -689,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 { @@ -697,32 +677,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute addHashTagsBulk request - * @return AddHashTagsBulkResponse + * @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 AddHashTagsBulkResponse 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<AddHashTagsBulkResponse> + * @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); } @@ -736,9 +718,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 addHashTagsBulkAsync(tenantId, bulkCreateHashTagsBody, _callback); } } @@ -752,6 +735,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIaddHashTagsBulkRequest addHashTagsBulk() { @@ -1386,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; } @@ -1490,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 { @@ -1498,32 +1483,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute aggregateQuestionResults request - * @return AggregateQuestionResultsResponse1 + * @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 AggregateQuestionResultsResponse1 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<AggregateQuestionResultsResponse1> + * @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); } @@ -1537,9 +1524,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 aggregateQuestionResultsAsync(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate, _callback); } } @@ -1554,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) { @@ -1639,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; } @@ -1701,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 { @@ -1709,32 +1699,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute blockUserFromComment request - * @return BlockUserFromCommentResponse + * @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 BlockUserFromCommentResponse 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<BlockUserFromCommentResponse> + * @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); } @@ -1748,9 +1740,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 blockUserFromCommentAsync(tenantId, id, blockFromCommentParams, userId, anonUserId, _callback); } } @@ -1767,6 +1760,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response 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) { @@ -1842,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; } @@ -1889,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 { @@ -1897,32 +1892,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute bulkAggregateQuestionResults request - * @return BulkAggregateQuestionResultsResponse1 + * @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 BulkAggregateQuestionResultsResponse1 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<BulkAggregateQuestionResultsResponse1> + * @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); } @@ -1936,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); } } @@ -1954,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) { @@ -2040,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; } @@ -2081,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 { @@ -2089,32 +2089,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute changeTicketState request - * @return ChangeTicketStateResponse1 + * @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 ChangeTicketStateResponse1 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<ChangeTicketStateResponse1> + * @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); } @@ -2128,9 +2130,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 changeTicketStateAsync(tenantId, userId, id, changeTicketStateBody, _callback); } } @@ -2148,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) { @@ -2245,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; } @@ -2373,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 { @@ -2381,32 +2386,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute combineCommentsWithQuestionResults request - * @return CombineCommentsWithQuestionResultsResponse + * @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 CombineCommentsWithQuestionResultsResponse 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<CombineCommentsWithQuestionResultsResponse> + * @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); } @@ -2420,9 +2427,10 @@ public ApiResponse executeWithHttpIn 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); } } @@ -2437,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) { @@ -2508,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; } @@ -2543,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 { @@ -2551,32 +2561,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createEmailTemplate request - * @return CreateEmailTemplateResponse1 + * @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 CreateEmailTemplateResponse1 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<CreateEmailTemplateResponse1> + * @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); } @@ -2590,9 +2602,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 createEmailTemplateAsync(tenantId, createEmailTemplateBody, _callback); } } @@ -2608,6 +2621,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateEmailTemplateRequest createEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateEmailTemplateBody createEmailTemplateBody) { @@ -2695,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; } @@ -2778,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 { @@ -2786,32 +2801,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createFeedPost request - * @return CreateFeedPostResponse1 + * @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 CreateFeedPostResponse1 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<CreateFeedPostResponse1> + * @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); } @@ -2825,9 +2842,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 createFeedPostAsync(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck, _callback); } } @@ -2843,6 +2861,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateFeedPostRequest createFeedPost(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams) { @@ -2914,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; } @@ -2949,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 { @@ -2957,32 +2977,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createModerator request - * @return CreateModeratorResponse1 + * @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 CreateModeratorResponse1 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<CreateModeratorResponse1> + * @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); } @@ -2996,9 +3018,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 createModeratorAsync(tenantId, createModeratorBody, _callback); } } @@ -3014,6 +3037,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateModeratorRequest createModerator(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateModeratorBody createModeratorBody) { @@ -3085,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; } @@ -3120,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 { @@ -3128,32 +3153,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createQuestionConfig request - * @return CreateQuestionConfigResponse1 + * @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 CreateQuestionConfigResponse1 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<CreateQuestionConfigResponse1> + * @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); } @@ -3167,9 +3194,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 createQuestionConfigAsync(tenantId, createQuestionConfigBody, _callback); } } @@ -3185,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) { @@ -3256,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; } @@ -3291,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 { @@ -3299,32 +3329,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createQuestionResult request - * @return CreateQuestionResultResponse1 + * @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 CreateQuestionResultResponse1 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<CreateQuestionResultResponse1> + * @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); } @@ -3338,9 +3370,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 createQuestionResultAsync(tenantId, createQuestionResultBody, _callback); } } @@ -3356,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) { @@ -3598,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; } @@ -3633,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 { @@ -3641,32 +3676,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTenant request - * @return CreateTenantResponse1 + * @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 CreateTenantResponse1 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<CreateTenantResponse1> + * @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); } @@ -3680,9 +3717,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 createTenantAsync(tenantId, createTenantBody, _callback); } } @@ -3698,6 +3736,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateTenantRequest createTenant(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantBody createTenantBody) { @@ -3769,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; } @@ -3804,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 { @@ -3812,32 +3852,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTenantPackage request - * @return CreateTenantPackageResponse1 + * @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 CreateTenantPackageResponse1 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<CreateTenantPackageResponse1> + * @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); } @@ -3851,9 +3893,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 createTenantPackageAsync(tenantId, createTenantPackageBody, _callback); } } @@ -3869,6 +3912,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateTenantPackageRequest createTenantPackage(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantPackageBody createTenantPackageBody) { @@ -3940,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; } @@ -3975,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 { @@ -3983,32 +4028,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTenantUser request - * @return CreateTenantUserResponse1 + * @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 CreateTenantUserResponse1 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<CreateTenantUserResponse1> + * @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); } @@ -4022,9 +4069,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 createTenantUserAsync(tenantId, createTenantUserBody, _callback); } } @@ -4040,6 +4088,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateTenantUserRequest createTenantUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateTenantUserBody createTenantUserBody) { @@ -4120,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; } @@ -4158,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 { @@ -4166,32 +4216,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createTicket request - * @return CreateTicketResponse1 + * @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 CreateTicketResponse1 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<CreateTicketResponse1> + * @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); } @@ -4205,9 +4257,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 createTicketAsync(tenantId, userId, createTicketBody, _callback); } } @@ -4224,6 +4277,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb 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) { @@ -4295,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; } @@ -4330,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 { @@ -4338,32 +4393,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createUserBadge request - * @return CreateUserBadgeResponse + * @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 CreateUserBadgeResponse 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<CreateUserBadgeResponse> + * @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); } @@ -4377,9 +4434,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 createUserBadgeAsync(tenantId, createUserBadgeParams, _callback); } } @@ -4395,6 +4453,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateUserBadgeRequest createUserBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateUserBadgeParams createUserBadgeParams) { @@ -4486,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; } @@ -4548,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 { @@ -4556,32 +4616,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createVote request - * @return CreateVoteResponse + * @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 CreateVoteResponse 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<CreateVoteResponse> + * @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); } @@ -4595,9 +4657,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 createVoteAsync(tenantId, commentId, direction, userId, anonUserId, _callback); } } @@ -4614,6 +4677,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback 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) { @@ -4693,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; } @@ -4752,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 { @@ -4760,32 +4825,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteComment request - * @return DeleteCommentResponse + * @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 DeleteCommentResponse 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<DeleteCommentResponse> + * @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); } @@ -4799,9 +4866,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 deleteCommentAsync(tenantId, id, contextUserId, isLive, _callback); } } @@ -4817,6 +4885,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteCommentRequest deleteComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -5059,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; } @@ -5094,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 { @@ -5102,32 +5172,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteEmailTemplate request - * @return DeleteEmailTemplateResponse + * @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 DeleteEmailTemplateResponse 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<DeleteEmailTemplateResponse> + * @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); } @@ -5141,9 +5213,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 deleteEmailTemplateAsync(tenantId, id, _callback); } } @@ -5159,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) { @@ -5236,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; } @@ -5274,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 { @@ -5282,32 +5357,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteEmailTemplateRenderError request - * @return DeleteEmailTemplateRenderErrorResponse + * @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 DeleteEmailTemplateRenderErrorResponse 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<DeleteEmailTemplateRenderErrorResponse> + * @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); } @@ -5321,9 +5398,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 deleteEmailTemplateRenderErrorAsync(tenantId, id, errorId, _callback); } } @@ -5340,6 +5418,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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) { @@ -5407,16 +5486,16 @@ private okhttp3.Call deleteHashTagValidateBeforeCall(@javax.annotation.Nonnull S } - private ApiResponse deleteHashTagWithHttpInfo(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody) throws ApiException { + 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(); + 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 DeleteHashTagRequestBody deleteHashTagRequestBody, 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, deleteHashTagRequestBody, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5463,6 +5542,7 @@ public APIdeleteHashTagRequest deleteHashTagRequestBody(@javax.annotation.Nullab Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5471,32 +5551,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteHashTag request - * @return DeleteHashTagResponse + * @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 DeleteHashTagResponse execute() throws ApiException { - ApiResponse localVarResp = deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); return localVarResp.getData(); } /** * Execute deleteHashTag request with HTTP info returned - * @return ApiResponse<DeleteHashTagResponse> + * @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 deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); } @@ -5510,9 +5592,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 deleteHashTagAsync(tag, tenantId, deleteHashTagRequestBody, _callback); } } @@ -5527,6 +5610,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteHashTagRequest deleteHashTag(@javax.annotation.Nonnull String tag) { @@ -5602,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; } @@ -5649,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 { @@ -5657,32 +5742,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteModerator request - * @return DeleteModeratorResponse + * @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 DeleteModeratorResponse 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<DeleteModeratorResponse> + * @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); } @@ -5696,9 +5783,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 deleteModeratorAsync(tenantId, id, sendEmail, _callback); } } @@ -5714,6 +5802,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteModeratorRequest deleteModerator(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -5785,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; } @@ -5820,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 { @@ -5828,32 +5918,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteNotificationCount request - * @return DeleteNotificationCountResponse + * @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 DeleteNotificationCountResponse 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<DeleteNotificationCountResponse> + * @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); } @@ -5867,9 +5959,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 deleteNotificationCountAsync(tenantId, id, _callback); } } @@ -5885,6 +5978,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteNotificationCountRequest deleteNotificationCount(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -6127,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; } @@ -6162,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 { @@ -6170,32 +6265,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deletePendingWebhookEvent request - * @return DeletePendingWebhookEventResponse + * @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 DeletePendingWebhookEventResponse 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<DeletePendingWebhookEventResponse> + * @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); } @@ -6209,9 +6306,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 deletePendingWebhookEventAsync(tenantId, id, _callback); } } @@ -6227,6 +6325,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeletePendingWebhookEventRequest deletePendingWebhookEvent(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -6298,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; } @@ -6333,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 { @@ -6341,32 +6441,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteQuestionConfig request - * @return DeleteQuestionConfigResponse + * @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 DeleteQuestionConfigResponse 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<DeleteQuestionConfigResponse> + * @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); } @@ -6380,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); } } @@ -6398,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) { @@ -6469,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; } @@ -6504,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 { @@ -6512,32 +6617,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteQuestionResult request - * @return DeleteQuestionResultResponse + * @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 DeleteQuestionResultResponse 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<DeleteQuestionResultResponse> + * @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); } @@ -6551,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); } } @@ -6569,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) { @@ -7034,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; } @@ -7081,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 { @@ -7089,32 +7199,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteTenant request - * @return DeleteTenantResponse + * @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 DeleteTenantResponse 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<DeleteTenantResponse> + * @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); } @@ -7128,9 +7240,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 deleteTenantAsync(tenantId, id, sure, _callback); } } @@ -7146,6 +7259,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteTenantRequest deleteTenant(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7217,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; } @@ -7252,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 { @@ -7260,32 +7375,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteTenantPackage request - * @return DeleteTenantPackageResponse + * @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 DeleteTenantPackageResponse 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<DeleteTenantPackageResponse> + * @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); } @@ -7299,9 +7416,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 deleteTenantPackageAsync(tenantId, id, _callback); } } @@ -7317,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) { @@ -7396,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; } @@ -7455,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 { @@ -7463,32 +7583,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteTenantUser request - * @return DeleteTenantUserResponse + * @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 DeleteTenantUserResponse 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<DeleteTenantUserResponse> + * @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); } @@ -7502,9 +7624,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 deleteTenantUserAsync(tenantId, id, deleteComments, commentDeleteMode, _callback); } } @@ -7520,6 +7643,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteTenantUserRequest deleteTenantUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7591,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; } @@ -7626,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 { @@ -7634,32 +7759,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteUserBadge request - * @return DeleteUserBadgeResponse + * @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 DeleteUserBadgeResponse 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<DeleteUserBadgeResponse> + * @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); } @@ -7673,9 +7800,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 deleteUserBadgeAsync(tenantId, id, _callback); } } @@ -7691,6 +7819,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteUserBadgeRequest deleteUserBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7766,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; } @@ -7813,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 { @@ -7821,32 +7951,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteVote request - * @return DeleteVoteResponse + * @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 DeleteVoteResponse 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<DeleteVoteResponse> + * @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); } @@ -7860,9 +7992,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 deleteVoteAsync(tenantId, id, editKey, _callback); } } @@ -7878,6 +8011,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteVoteRequest deleteVote(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -7957,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; } @@ -8016,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 { @@ -8024,32 +8159,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute flagComment request - * @return FlagCommentResponse1 + * @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 FlagCommentResponse1 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<FlagCommentResponse1> + * @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); } @@ -8063,9 +8200,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 flagCommentAsync(tenantId, id, userId, anonUserId, _callback); } } @@ -8081,6 +8219,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIflagCommentRequest flagComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -8166,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; } @@ -8258,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 { @@ -8266,32 +8406,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getAuditLogs request - * @return GetAuditLogsResponse1 + * @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 GetAuditLogsResponse1 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<GetAuditLogsResponse1> + * @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); } @@ -8305,9 +8447,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 getAuditLogsAsync(tenantId, limit, skip, order, after, before, _callback); } } @@ -8322,6 +8465,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetAuditLogsRequest getAuditLogs(@javax.annotation.Nonnull String tenantId) { @@ -8393,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; } @@ -8428,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 { @@ -8436,32 +8581,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCachedNotificationCount request - * @return GetCachedNotificationCountResponse1 + * @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 GetCachedNotificationCountResponse1 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<GetCachedNotificationCountResponse1> + * @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); } @@ -8475,9 +8622,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 getCachedNotificationCountAsync(tenantId, id, _callback); } } @@ -8493,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) { @@ -8564,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; } @@ -8599,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 { @@ -8607,32 +8757,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getComment request - * @return GetCommentResponse + * @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 GetCommentResponse 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<GetCommentResponse> + * @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); } @@ -8646,9 +8798,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 getCommentAsync(tenantId, id, _callback); } } @@ -8664,6 +8817,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCommentRequest getComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -8793,16 +8947,16 @@ private okhttp3.Call getCommentsValidateBeforeCall(@javax.annotation.Nonnull Str } - 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 { + 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(); + 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, @javax.annotation.Nullable Long fromDate, @javax.annotation.Nullable Long toDate, 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, fromDate, toDate, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9017,6 +9171,7 @@ public APIgetCommentsRequest toDate(@javax.annotation.Nullable Long toDate) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -9025,32 +9180,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getComments request - * @return GetCommentsResponse + * @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 GetCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = getCommentsWithHttpInfo(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate); + 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<GetCommentsResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getCommentsWithHttpInfo(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate); } @@ -9064,9 +9221,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 getCommentsAsync(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate, _callback); } } @@ -9081,6 +9239,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCommentsRequest getComments(@javax.annotation.Nonnull String tenantId) { @@ -9484,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; } @@ -9519,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 { @@ -9527,32 +9687,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplate request - * @return GetEmailTemplateResponse1 + * @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 GetEmailTemplateResponse1 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<GetEmailTemplateResponse1> + * @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); } @@ -9566,9 +9728,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 getEmailTemplateAsync(tenantId, id, _callback); } } @@ -9584,6 +9747,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetEmailTemplateRequest getEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -9649,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; } @@ -9681,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 { @@ -9689,32 +9854,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplateDefinitions request - * @return GetEmailTemplateDefinitionsResponse1 + * @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 GetEmailTemplateDefinitionsResponse1 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<GetEmailTemplateDefinitionsResponse1> + * @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); } @@ -9728,9 +9895,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 getEmailTemplateDefinitionsAsync(tenantId, _callback); } } @@ -9745,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) { @@ -9820,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; } @@ -9867,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 { @@ -9875,32 +10045,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplateRenderErrors request - * @return GetEmailTemplateRenderErrorsResponse1 + * @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 GetEmailTemplateRenderErrorsResponse1 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<GetEmailTemplateRenderErrorsResponse1> + * @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); } @@ -9914,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); } } @@ -9932,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) { @@ -10001,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; } @@ -10045,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 { @@ -10053,32 +10228,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEmailTemplates request - * @return GetEmailTemplatesResponse1 + * @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 GetEmailTemplatesResponse1 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<GetEmailTemplatesResponse1> + * @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); } @@ -10092,9 +10269,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 getEmailTemplatesAsync(tenantId, skip, _callback); } } @@ -10109,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) { @@ -10186,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; } @@ -10254,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 { @@ -10262,32 +10442,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getFeedPosts request - * @return GetFeedPostsResponse1 + * @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 GetFeedPostsResponse1 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<GetFeedPostsResponse1> + * @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); } @@ -10301,9 +10483,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 getFeedPostsAsync(tenantId, afterId, limit, tags, _callback); } } @@ -10318,6 +10501,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetFeedPostsRequest getFeedPosts(@javax.annotation.Nonnull String tenantId) { @@ -10387,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; } @@ -10431,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 { @@ -10439,32 +10624,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getHashTags request - * @return GetHashTagsResponse1 + * @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 GetHashTagsResponse1 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<GetHashTagsResponse1> + * @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); } @@ -10478,9 +10665,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 getHashTagsAsync(tenantId, page, _callback); } } @@ -10495,6 +10683,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetHashTagsRequest getHashTags(@javax.annotation.Nonnull String tenantId) { @@ -10566,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; } @@ -10601,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 { @@ -10609,32 +10799,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getModerator request - * @return GetModeratorResponse1 + * @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 GetModeratorResponse1 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<GetModeratorResponse1> + * @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); } @@ -10648,9 +10840,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 getModeratorAsync(tenantId, id, _callback); } } @@ -10666,6 +10859,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetModeratorRequest getModerator(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -10735,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; } @@ -10779,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 { @@ -10787,32 +10982,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getModerators request - * @return GetModeratorsResponse1 + * @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 GetModeratorsResponse1 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<GetModeratorsResponse1> + * @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); } @@ -10826,9 +11023,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 getModeratorsAsync(tenantId, skip, _callback); } } @@ -10843,6 +11041,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetModeratorsRequest getModerators(@javax.annotation.Nonnull String tenantId) { @@ -10928,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; } @@ -11020,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 { @@ -11028,32 +11228,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getNotificationCount request - * @return GetNotificationCountResponse1 + * @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 GetNotificationCountResponse1 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<GetNotificationCountResponse1> + * @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); } @@ -11067,9 +11269,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 getNotificationCountAsync(tenantId, userId, urlId, fromCommentId, viewed, type, _callback); } } @@ -11084,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) { @@ -11173,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; } @@ -11277,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 { @@ -11285,32 +11490,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getNotifications request - * @return GetNotificationsResponse1 + * @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 GetNotificationsResponse1 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<GetNotificationsResponse1> + * @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); } @@ -11324,9 +11531,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 getNotificationsAsync(tenantId, userId, urlId, fromCommentId, viewed, type, skip, _callback); } } @@ -11341,6 +11549,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetNotificationsRequest getNotifications(@javax.annotation.Nonnull String tenantId) { @@ -11765,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; } @@ -11869,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 { @@ -11877,32 +12087,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getPendingWebhookEventCount request - * @return GetPendingWebhookEventCountResponse1 + * @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 GetPendingWebhookEventCountResponse1 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<GetPendingWebhookEventCountResponse1> + * @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); } @@ -11916,9 +12128,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 getPendingWebhookEventCountAsync(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, _callback); } } @@ -11933,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) { @@ -12026,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; } @@ -12142,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 { @@ -12150,32 +12365,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getPendingWebhookEvents request - * @return GetPendingWebhookEventsResponse1 + * @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 GetPendingWebhookEventsResponse1 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<GetPendingWebhookEventsResponse1> + * @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); } @@ -12189,9 +12406,10 @@ public ApiResponse executeWithHttpInfo() throw 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); } } @@ -12206,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) { @@ -12277,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; } @@ -12312,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 { @@ -12320,32 +12540,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionConfig request - * @return GetQuestionConfigResponse1 + * @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 GetQuestionConfigResponse1 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<GetQuestionConfigResponse1> + * @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); } @@ -12359,9 +12581,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 getQuestionConfigAsync(tenantId, id, _callback); } } @@ -12377,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) { @@ -12446,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; } @@ -12490,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 { @@ -12498,32 +12723,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionConfigs request - * @return GetQuestionConfigsResponse1 + * @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 GetQuestionConfigsResponse1 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<GetQuestionConfigsResponse1> + * @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); } @@ -12537,9 +12764,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 getQuestionConfigsAsync(tenantId, skip, _callback); } } @@ -12554,6 +12782,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetQuestionConfigsRequest getQuestionConfigs(@javax.annotation.Nonnull String tenantId) { @@ -12625,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; } @@ -12660,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 { @@ -12668,32 +12898,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionResult request - * @return GetQuestionResultResponse1 + * @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 GetQuestionResultResponse1 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<GetQuestionResultResponse1> + * @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); } @@ -12707,9 +12939,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 getQuestionResultAsync(tenantId, id, _callback); } } @@ -12725,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) { @@ -12814,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; } @@ -12918,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 { @@ -12926,32 +13161,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getQuestionResults request - * @return GetQuestionResultsResponse1 + * @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 GetQuestionResultsResponse1 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<GetQuestionResultsResponse1> + * @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); } @@ -12965,9 +13202,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 getQuestionResultsAsync(tenantId, urlId, userId, startDate, questionId, questionIds, skip, _callback); } } @@ -12982,6 +13220,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetQuestionResultsRequest getQuestionResults(@javax.annotation.Nonnull String tenantId) { @@ -13749,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; } @@ -13784,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 { @@ -13792,32 +14032,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenant request - * @return GetTenantResponse1 + * @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 GetTenantResponse1 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<GetTenantResponse1> + * @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); } @@ -13831,9 +14073,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 getTenantAsync(tenantId, id, _callback); } } @@ -13849,6 +14092,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantRequest getTenant(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -13930,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; } @@ -14010,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 { @@ -14018,32 +14263,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantDailyUsages request - * @return GetTenantDailyUsagesResponse1 + * @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 GetTenantDailyUsagesResponse1 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<GetTenantDailyUsagesResponse1> + * @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); } @@ -14057,9 +14304,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 getTenantDailyUsagesAsync(tenantId, yearNumber, monthNumber, dayNumber, skip, _callback); } } @@ -14074,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) { @@ -14145,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; } @@ -14180,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 { @@ -14188,32 +14438,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantPackage request - * @return GetTenantPackageResponse1 + * @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 GetTenantPackageResponse1 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<GetTenantPackageResponse1> + * @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); } @@ -14227,9 +14479,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 getTenantPackageAsync(tenantId, id, _callback); } } @@ -14245,6 +14498,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantPackageRequest getTenantPackage(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -14314,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; } @@ -14358,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 { @@ -14366,32 +14621,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantPackages request - * @return GetTenantPackagesResponse1 + * @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 GetTenantPackagesResponse1 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<GetTenantPackagesResponse1> + * @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); } @@ -14405,9 +14662,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 getTenantPackagesAsync(tenantId, skip, _callback); } } @@ -14422,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) { @@ -14493,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; } @@ -14528,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 { @@ -14536,32 +14796,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantUser request - * @return GetTenantUserResponse1 + * @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 GetTenantUserResponse1 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<GetTenantUserResponse1> + * @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); } @@ -14575,9 +14837,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 getTenantUserAsync(tenantId, id, _callback); } } @@ -14593,6 +14856,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantUserRequest getTenantUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -14662,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; } @@ -14706,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 { @@ -14714,32 +14979,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenantUsers request - * @return GetTenantUsersResponse1 + * @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 GetTenantUsersResponse1 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<GetTenantUsersResponse1> + * @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); } @@ -14753,9 +15020,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 getTenantUsersAsync(tenantId, skip, _callback); } } @@ -14770,6 +15038,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantUsersRequest getTenantUsers(@javax.annotation.Nonnull String tenantId) { @@ -14843,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; } @@ -14899,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 { @@ -14907,32 +15177,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTenants request - * @return GetTenantsResponse1 + * @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 GetTenantsResponse1 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<GetTenantsResponse1> + * @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); } @@ -14946,9 +15218,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 getTenantsAsync(tenantId, meta, skip, _callback); } } @@ -14963,6 +15236,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTenantsRequest getTenants(@javax.annotation.Nonnull String tenantId) { @@ -15038,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; } @@ -15085,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 { @@ -15093,32 +15368,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTicket request - * @return GetTicketResponse1 + * @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 GetTicketResponse1 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<GetTicketResponse1> + * @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); } @@ -15132,9 +15409,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 getTicketAsync(tenantId, id, userId, _callback); } } @@ -15150,6 +15428,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTicketRequest getTicket(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -15231,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; } @@ -15311,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 { @@ -15319,32 +15599,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTickets request - * @return GetTicketsResponse1 + * @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 GetTicketsResponse1 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<GetTicketsResponse1> + * @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); } @@ -15358,9 +15640,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 getTicketsAsync(tenantId, userId, state, skip, limit, _callback); } } @@ -15375,6 +15658,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTicketsRequest getTickets(@javax.annotation.Nonnull String tenantId) { @@ -15446,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; } @@ -15481,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 { @@ -15489,32 +15774,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUser request - * @return GetUserResponse1 + * @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 GetUserResponse1 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<GetUserResponse1> + * @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); } @@ -15528,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); } } @@ -15546,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) { @@ -15617,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; } @@ -15652,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 { @@ -15660,32 +15950,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadge request - * @return GetUserBadgeResponse + * @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 GetUserBadgeResponse 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<GetUserBadgeResponse> + * @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); } @@ -15699,9 +15991,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 getUserBadgeAsync(tenantId, id, _callback); } } @@ -15717,6 +16010,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetUserBadgeRequest getUserBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -15788,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; } @@ -15823,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 { @@ -15831,32 +16126,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadgeProgressById request - * @return GetUserBadgeProgressByIdResponse + * @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 GetUserBadgeProgressByIdResponse 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<GetUserBadgeProgressByIdResponse> + * @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); } @@ -15870,9 +16167,10 @@ public ApiResponse executeWithHttpInfo() throw 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); } } @@ -15888,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) { @@ -15959,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; } @@ -15994,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 { @@ -16002,32 +16302,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadgeProgressByUserId request - * @return GetUserBadgeProgressByUserIdResponse + * @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 GetUserBadgeProgressByUserIdResponse 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<GetUserBadgeProgressByUserIdResponse> + * @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); } @@ -16041,9 +16343,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 getUserBadgeProgressByUserIdAsync(tenantId, userId, _callback); } } @@ -16059,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) { @@ -16136,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; } @@ -16204,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 { @@ -16212,32 +16517,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadgeProgressList request - * @return GetUserBadgeProgressListResponse + * @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 GetUserBadgeProgressListResponse 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<GetUserBadgeProgressListResponse> + * @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); } @@ -16251,9 +16558,10 @@ public ApiResponse executeWithHttpInfo() throw 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); } } @@ -16268,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) { @@ -16357,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; } @@ -16461,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 { @@ -16469,32 +16779,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBadges request - * @return GetUserBadgesResponse + * @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 GetUserBadgesResponse 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<GetUserBadgesResponse> + * @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); } @@ -16508,9 +16820,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 getUserBadgesAsync(tenantId, userId, badgeId, type, displayedOnComments, limit, skip, _callback); } } @@ -16525,6 +16838,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetUserBadgesRequest getUserBadges(@javax.annotation.Nonnull String tenantId) { @@ -16599,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; } @@ -16634,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 { @@ -16642,32 +16957,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getVotes request - * @return GetVotesResponse1 + * @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 GetVotesResponse1 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<GetVotesResponse1> + * @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); } @@ -16681,9 +16998,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 getVotesAsync(tenantId, urlId, _callback); } } @@ -16699,6 +17017,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetVotesRequest getVotes(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -16781,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; } @@ -16840,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 { @@ -16848,32 +17168,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getVotesForUser request - * @return GetVotesForUserResponse1 + * @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 GetVotesForUserResponse1 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<GetVotesForUserResponse1> + * @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); } @@ -16887,9 +17209,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 getVotesForUserAsync(tenantId, urlId, userId, anonUserId, _callback); } } @@ -16905,6 +17228,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetVotesForUserRequest getVotesForUser(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -17153,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; } @@ -17209,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 { @@ -17217,32 +17542,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute patchHashTag request - * @return PatchHashTagResponse + * @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 PatchHashTagResponse 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<PatchHashTagResponse> + * @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); } @@ -17256,9 +17583,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 patchHashTagAsync(tag, tenantId, updateHashTagBody, _callback); } } @@ -17273,6 +17601,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpatchHashTagRequest patchHashTag(@javax.annotation.Nonnull String tag) { @@ -18104,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; } @@ -18151,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 { @@ -18159,32 +18489,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute renderEmailTemplate request - * @return RenderEmailTemplateResponse1 + * @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 RenderEmailTemplateResponse1 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<RenderEmailTemplateResponse1> + * @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); } @@ -18198,9 +18530,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 renderEmailTemplateAsync(tenantId, renderEmailTemplateBody, locale, _callback); } } @@ -18216,6 +18549,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIrenderEmailTemplateRequest renderEmailTemplate(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull RenderEmailTemplateBody renderEmailTemplateBody) { @@ -18293,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; } @@ -18331,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 { @@ -18339,32 +18674,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute replaceTenantPackage request - * @return ReplaceTenantPackageResponse + * @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 ReplaceTenantPackageResponse 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<ReplaceTenantPackageResponse> + * @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); } @@ -18378,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); } } @@ -18397,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) { @@ -18478,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; } @@ -18528,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 { @@ -18536,32 +18876,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute replaceTenantUser request - * @return ReplaceTenantUserResponse + * @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 ReplaceTenantUserResponse 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<ReplaceTenantUserResponse> + * @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); } @@ -18575,9 +18917,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 replaceTenantUserAsync(tenantId, id, replaceTenantUserBody, updateComments, _callback); } } @@ -18594,6 +18937,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c 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) { @@ -18681,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; } @@ -18764,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 { @@ -18772,32 +19117,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute saveComment request - * @return SaveCommentResponse + * @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 SaveCommentResponse 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<SaveCommentResponse> + * @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); } @@ -18811,9 +19158,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 saveCommentAsync(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications, _callback); } } @@ -18829,6 +19177,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIsaveCommentRequest saveComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateCommentParams createCommentParams) { @@ -19144,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; } @@ -19182,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 { @@ -19190,32 +19540,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute sendInvite request - * @return SendInviteResponse + * @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 SendInviteResponse 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<SendInviteResponse> + * @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); } @@ -19229,9 +19581,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 sendInviteAsync(tenantId, id, fromName, _callback); } } @@ -19248,6 +19601,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback 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) { @@ -19323,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; } @@ -19370,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 { @@ -19378,32 +19733,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute sendLoginLink request - * @return SendLoginLinkResponse + * @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 SendLoginLinkResponse 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<SendLoginLinkResponse> + * @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); } @@ -19417,9 +19774,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 sendLoginLinkAsync(tenantId, id, redirectURL, _callback); } } @@ -19435,6 +19793,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIsendLoginLinkRequest sendLoginLink(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -19520,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; } @@ -19582,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 { @@ -19590,32 +19950,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unBlockUserFromComment request - * @return UnBlockUserFromCommentResponse + * @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 UnBlockUserFromCommentResponse 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<UnBlockUserFromCommentResponse> + * @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); } @@ -19629,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); } } @@ -19648,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) { @@ -19727,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; } @@ -19786,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 { @@ -19794,32 +20159,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unFlagComment request - * @return UnFlagCommentResponse + * @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 UnFlagCommentResponse 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<UnFlagCommentResponse> + * @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); } @@ -19833,9 +20200,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 unFlagCommentAsync(tenantId, id, userId, anonUserId, _callback); } } @@ -19851,6 +20219,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIunFlagCommentRequest unFlagComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id) { @@ -19940,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; } @@ -20014,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 { @@ -20022,32 +20392,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateComment request - * @return UpdateCommentResponse + * @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 UpdateCommentResponse 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<UpdateCommentResponse> + * @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); } @@ -20061,9 +20433,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 updateCommentAsync(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive, _callback); } } @@ -20080,6 +20453,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb 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) { @@ -20157,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; } @@ -20195,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 { @@ -20203,32 +20578,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateEmailTemplate request - * @return UpdateEmailTemplateResponse + * @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 UpdateEmailTemplateResponse 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<UpdateEmailTemplateResponse> + * @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); } @@ -20242,9 +20619,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 updateEmailTemplateAsync(tenantId, id, updateEmailTemplateBody, _callback); } } @@ -20261,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) { @@ -20338,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; } @@ -20376,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 { @@ -20384,32 +20764,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateFeedPost request - * @return UpdateFeedPostResponse + * @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 UpdateFeedPostResponse 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<UpdateFeedPostResponse> + * @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); } @@ -20423,9 +20805,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 updateFeedPostAsync(tenantId, id, feedPost, _callback); } } @@ -20442,6 +20825,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call 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) { @@ -20519,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; } @@ -20557,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 { @@ -20565,32 +20950,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateModerator request - * @return UpdateModeratorResponse + * @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 UpdateModeratorResponse 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<UpdateModeratorResponse> + * @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); } @@ -20604,9 +20991,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 updateModeratorAsync(tenantId, id, updateModeratorBody, _callback); } } @@ -20623,6 +21011,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal 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) { @@ -20704,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; } @@ -20754,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 { @@ -20762,32 +21152,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateNotification request - * @return UpdateNotificationResponse + * @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 UpdateNotificationResponse 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<UpdateNotificationResponse> + * @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); } @@ -20801,9 +21193,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 updateNotificationAsync(tenantId, id, updateNotificationBody, userId, _callback); } } @@ -20820,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) { @@ -20897,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; } @@ -20935,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 { @@ -20943,32 +21338,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateQuestionConfig request - * @return UpdateQuestionConfigResponse + * @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 UpdateQuestionConfigResponse 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<UpdateQuestionConfigResponse> + * @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); } @@ -20982,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); } } @@ -21001,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) { @@ -21078,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; } @@ -21116,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 { @@ -21124,32 +21524,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateQuestionResult request - * @return UpdateQuestionResultResponse + * @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 UpdateQuestionResultResponse 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<UpdateQuestionResultResponse> + * @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); } @@ -21163,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); } } @@ -21182,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) { @@ -21456,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; } @@ -21494,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 { @@ -21502,32 +21907,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateTenant request - * @return UpdateTenantResponse + * @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 UpdateTenantResponse 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<UpdateTenantResponse> + * @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); } @@ -21541,9 +21948,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 updateTenantAsync(tenantId, id, updateTenantBody, _callback); } } @@ -21560,6 +21968,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba 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) { @@ -21637,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; } @@ -21675,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 { @@ -21683,32 +22093,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateTenantPackage request - * @return UpdateTenantPackageResponse + * @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 UpdateTenantPackageResponse 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<UpdateTenantPackageResponse> + * @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); } @@ -21722,9 +22134,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 updateTenantPackageAsync(tenantId, id, updateTenantPackageBody, _callback); } } @@ -21741,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) { @@ -21822,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; } @@ -21872,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 { @@ -21880,32 +22295,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateTenantUser request - * @return UpdateTenantUserResponse + * @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 UpdateTenantUserResponse 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<UpdateTenantUserResponse> + * @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); } @@ -21919,9 +22336,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 updateTenantUserAsync(tenantId, id, updateTenantUserBody, updateComments, _callback); } } @@ -21938,6 +22356,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca 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) { @@ -22015,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; } @@ -22053,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 { @@ -22061,32 +22481,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateUserBadge request - * @return UpdateUserBadgeResponse + * @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 UpdateUserBadgeResponse 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<UpdateUserBadgeResponse> + * @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); } @@ -22100,9 +22522,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 updateUserBadgeAsync(tenantId, id, updateUserBadgeParams, _callback); } } @@ -22119,6 +22542,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal 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 index cd47dc16..433c0c45 100644 --- a/client/src/main/java/com/fastcomments/api/ModerationApi.java +++ b/client/src/main/java/com/fastcomments/api/ModerationApi.java @@ -27,54 +27,47 @@ 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.DeleteModerationVoteResponse; -import com.fastcomments.model.GetApiCommentsResponse; -import com.fastcomments.model.GetApiExportStatusResponse; -import com.fastcomments.model.GetApiIdsResponse; -import com.fastcomments.model.GetBanUsersFromCommentResponse; -import com.fastcomments.model.GetCommentBanStatusResponse1; -import com.fastcomments.model.GetCommentChildrenResponse; -import com.fastcomments.model.GetCountResponse; -import com.fastcomments.model.GetCountsResponse; -import com.fastcomments.model.GetLogsResponse; -import com.fastcomments.model.GetManualBadgesForUserResponse; -import com.fastcomments.model.GetManualBadgesResponse; -import com.fastcomments.model.GetModerationCommentResponse; -import com.fastcomments.model.GetModerationCommentTextResponse; -import com.fastcomments.model.GetPreBanSummaryResponse; -import com.fastcomments.model.GetSearchCommentsSummaryResponse; -import com.fastcomments.model.GetSearchPagesResponse; -import com.fastcomments.model.GetSearchSitesResponse; -import com.fastcomments.model.GetSearchSuggestResponse; -import com.fastcomments.model.GetSearchUsersResponse; -import com.fastcomments.model.GetTrustFactorResponse; -import com.fastcomments.model.GetUserBanPreferenceResponse; -import com.fastcomments.model.GetUserInternalProfileResponse1; -import com.fastcomments.model.PostAdjustCommentVotesResponse; -import com.fastcomments.model.PostApiExportResponse; -import com.fastcomments.model.PostBanUserFromCommentResponse; -import com.fastcomments.model.PostBanUserUndoResponse; -import com.fastcomments.model.PostBulkPreBanSummaryResponse; -import com.fastcomments.model.PostCommentsByIdsResponse; -import com.fastcomments.model.PostFlagCommentResponse; +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.PostRestoreDeletedCommentResponse; -import com.fastcomments.model.PostSetCommentApprovalStatusResponse; -import com.fastcomments.model.PostSetCommentReviewStatusResponse; -import com.fastcomments.model.PostSetCommentSpamStatusResponse; -import com.fastcomments.model.PostSetCommentTextResponse; -import com.fastcomments.model.PostUnFlagCommentResponse; -import com.fastcomments.model.PostVoteResponse; -import com.fastcomments.model.PutAwardBadgeResponse; -import com.fastcomments.model.PutCloseThreadResponse; -import com.fastcomments.model.PutRemoveBadgeResponse; -import com.fastcomments.model.PutReopenThreadResponse; +import com.fastcomments.model.PreBanSummary; +import com.fastcomments.model.RemoveUserBadgeResponse; +import com.fastcomments.model.SetCommentApprovedResponse; import com.fastcomments.model.SetCommentTextParams; -import com.fastcomments.model.SetTrustFactorResponse; +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; @@ -194,16 +187,16 @@ private okhttp3.Call deleteModerationVoteValidateBeforeCall(@javax.annotation.No } - private ApiResponse deleteModerationVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse deleteModerationVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(commentId, voteId, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteModerationVoteAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(commentId, voteId, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -265,6 +258,7 @@ public APIdeleteModerationVoteRequest 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 { @@ -273,32 +267,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteModerationVote request - * @return DeleteModerationVoteResponse + * @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 DeleteModerationVoteResponse execute() throws ApiException { - ApiResponse localVarResp = deleteModerationVoteWithHttpInfo(commentId, voteId, broadcastId, tenantId, sso); + public VoteDeleteResponse execute() throws ApiException { + ApiResponse localVarResp = deleteModerationVoteWithHttpInfo(commentId, voteId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute deleteModerationVote request with HTTP info returned - * @return ApiResponse<DeleteModerationVoteResponse> + * @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 deleteModerationVoteWithHttpInfo(commentId, voteId, broadcastId, tenantId, sso); } @@ -312,9 +308,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 deleteModerationVoteAsync(commentId, voteId, broadcastId, tenantId, sso, _callback); } } @@ -330,6 +327,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteModerationVoteRequest deleteModerationVote(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { @@ -426,16 +424,16 @@ private okhttp3.Call getApiCommentsValidateBeforeCall(@javax.annotation.Nullable } - 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -575,6 +573,7 @@ public APIgetApiCommentsRequest 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 { @@ -583,32 +582,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getApiComments request - * @return GetApiCommentsResponse + * @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 GetApiCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = getApiCommentsWithHttpInfo(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso); + public ModerationAPIGetCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = getApiCommentsWithHttpInfo(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso); return localVarResp.getData(); } /** * Execute getApiComments request with HTTP info returned - * @return ApiResponse<GetApiCommentsResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getApiCommentsWithHttpInfo(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso); } @@ -622,9 +623,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 getApiCommentsAsync(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso, _callback); } } @@ -638,6 +640,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetApiCommentsRequest getApiComments() { @@ -706,16 +709,16 @@ private okhttp3.Call getApiExportStatusValidateBeforeCall(@javax.annotation.Null } - private ApiResponse getApiExportStatusWithHttpInfo(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getApiExportStatusWithHttpInfo(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(batchJobId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getApiExportStatusAsync(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiExportStatusAsync(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(batchJobId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -771,6 +774,7 @@ public APIgetApiExportStatusRequest 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 { @@ -779,32 +783,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getApiExportStatus request - * @return GetApiExportStatusResponse + * @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 GetApiExportStatusResponse execute() throws ApiException { - ApiResponse localVarResp = getApiExportStatusWithHttpInfo(batchJobId, tenantId, sso); + public ModerationExportStatusResponse execute() throws ApiException { + ApiResponse localVarResp = getApiExportStatusWithHttpInfo(batchJobId, tenantId, sso); return localVarResp.getData(); } /** * Execute getApiExportStatus request with HTTP info returned - * @return ApiResponse<GetApiExportStatusResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getApiExportStatusWithHttpInfo(batchJobId, tenantId, sso); } @@ -818,9 +824,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 getApiExportStatusAsync(batchJobId, tenantId, sso, _callback); } } @@ -834,6 +841,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetApiExportStatusRequest getApiExportStatus() { @@ -922,16 +930,16 @@ private okhttp3.Call getApiIdsValidateBeforeCall(@javax.annotation.Nullable Stri } - 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1047,6 +1055,7 @@ public APIgetApiIdsRequest 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 { @@ -1055,32 +1064,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getApiIds request - * @return GetApiIdsResponse + * @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 GetApiIdsResponse execute() throws ApiException { - ApiResponse localVarResp = getApiIdsWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso); + public ModerationAPIGetCommentIdsResponse execute() throws ApiException { + ApiResponse localVarResp = getApiIdsWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso); return localVarResp.getData(); } /** * Execute getApiIds request with HTTP info returned - * @return ApiResponse<GetApiIdsResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getApiIdsWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso); } @@ -1094,9 +1105,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 getApiIdsAsync(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso, _callback); } } @@ -1110,6 +1122,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetApiIdsRequest getApiIds() { @@ -1180,16 +1193,16 @@ private okhttp3.Call getBanUsersFromCommentValidateBeforeCall(@javax.annotation. } - private ApiResponse getBanUsersFromCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getBanUsersFromCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(commentId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getBanUsersFromCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBanUsersFromCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(commentId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1236,6 +1249,7 @@ public APIgetBanUsersFromCommentRequest 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 { @@ -1244,32 +1258,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getBanUsersFromComment request - * @return GetBanUsersFromCommentResponse + * @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 GetBanUsersFromCommentResponse execute() throws ApiException { - ApiResponse localVarResp = getBanUsersFromCommentWithHttpInfo(commentId, tenantId, sso); + public GetBannedUsersFromCommentResponse execute() throws ApiException { + ApiResponse localVarResp = getBanUsersFromCommentWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getBanUsersFromComment request with HTTP info returned - * @return ApiResponse<GetBanUsersFromCommentResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getBanUsersFromCommentWithHttpInfo(commentId, tenantId, sso); } @@ -1283,9 +1299,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 getBanUsersFromCommentAsync(commentId, tenantId, sso, _callback); } } @@ -1300,6 +1317,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetBanUsersFromCommentRequest getBanUsersFromComment(@javax.annotation.Nonnull String commentId) { @@ -1370,16 +1388,16 @@ private okhttp3.Call getCommentBanStatusValidateBeforeCall(@javax.annotation.Non } - private ApiResponse getCommentBanStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getCommentBanStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(commentId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCommentBanStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentBanStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(commentId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1426,6 +1444,7 @@ public APIgetCommentBanStatusRequest 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 { @@ -1434,32 +1453,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCommentBanStatus request - * @return GetCommentBanStatusResponse1 + * @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 GetCommentBanStatusResponse1 execute() throws ApiException { - ApiResponse localVarResp = getCommentBanStatusWithHttpInfo(commentId, tenantId, sso); + public GetCommentBanStatusResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentBanStatusWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getCommentBanStatus request with HTTP info returned - * @return ApiResponse<GetCommentBanStatusResponse1> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getCommentBanStatusWithHttpInfo(commentId, tenantId, sso); } @@ -1473,9 +1494,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 getCommentBanStatusAsync(commentId, tenantId, sso, _callback); } } @@ -1490,6 +1512,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCommentBanStatusRequest getCommentBanStatus(@javax.annotation.Nonnull String commentId) { @@ -1560,16 +1583,16 @@ private okhttp3.Call getCommentChildrenValidateBeforeCall(@javax.annotation.Nonn } - private ApiResponse getCommentChildrenWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getCommentChildrenWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(commentId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCommentChildrenAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentChildrenAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(commentId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1616,6 +1639,7 @@ public APIgetCommentChildrenRequest 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 { @@ -1624,32 +1648,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCommentChildren request - * @return GetCommentChildrenResponse + * @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 GetCommentChildrenResponse execute() throws ApiException { - ApiResponse localVarResp = getCommentChildrenWithHttpInfo(commentId, tenantId, sso); + public ModerationAPIChildCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentChildrenWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getCommentChildren request with HTTP info returned - * @return ApiResponse<GetCommentChildrenResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getCommentChildrenWithHttpInfo(commentId, tenantId, sso); } @@ -1663,9 +1689,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 getCommentChildrenAsync(commentId, tenantId, sso, _callback); } } @@ -1680,6 +1707,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCommentChildrenRequest getCommentChildren(@javax.annotation.Nonnull String commentId) { @@ -1764,16 +1792,16 @@ private okhttp3.Call getCountValidateBeforeCall(@javax.annotation.Nullable Strin } - 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getCountValidateBeforeCall(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCountValidateBeforeCall(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1877,6 +1905,7 @@ public APIgetCountRequest 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 { @@ -1885,32 +1914,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCount request - * @return GetCountResponse + * @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 GetCountResponse execute() throws ApiException { - ApiResponse localVarResp = getCountWithHttpInfo(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso); + public ModerationAPICountCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = getCountWithHttpInfo(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso); return localVarResp.getData(); } /** * Execute getCount request with HTTP info returned - * @return ApiResponse<GetCountResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getCountWithHttpInfo(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso); } @@ -1924,9 +1955,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 getCountAsync(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso, _callback); } } @@ -1940,6 +1972,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCountRequest getCount() { @@ -2004,16 +2037,16 @@ private okhttp3.Call getCountsValidateBeforeCall(@javax.annotation.Nullable Stri } - private ApiResponse getCountsWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getCountsWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getCountsValidateBeforeCall(tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCountsAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCountsAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCountsValidateBeforeCall(tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2057,6 +2090,7 @@ public APIgetCountsRequest 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 { @@ -2065,32 +2099,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCounts request - * @return GetCountsResponse + * @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 GetCountsResponse execute() throws ApiException { - ApiResponse localVarResp = getCountsWithHttpInfo(tenantId, sso); + public GetBannedUsersCountResponse execute() throws ApiException { + ApiResponse localVarResp = getCountsWithHttpInfo(tenantId, sso); return localVarResp.getData(); } /** * Execute getCounts request with HTTP info returned - * @return ApiResponse<GetCountsResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getCountsWithHttpInfo(tenantId, sso); } @@ -2104,9 +2140,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 getCountsAsync(tenantId, sso, _callback); } } @@ -2120,6 +2157,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCountsRequest getCounts() { @@ -2190,16 +2228,16 @@ private okhttp3.Call getLogsValidateBeforeCall(@javax.annotation.Nonnull String } - private ApiResponse getLogsWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getLogsWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getLogsValidateBeforeCall(commentId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getLogsAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLogsAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLogsValidateBeforeCall(commentId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2246,6 +2284,7 @@ public APIgetLogsRequest 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 { @@ -2254,32 +2293,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getLogs request - * @return GetLogsResponse + * @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 GetLogsResponse execute() throws ApiException { - ApiResponse localVarResp = getLogsWithHttpInfo(commentId, tenantId, sso); + public ModerationAPIGetLogsResponse execute() throws ApiException { + ApiResponse localVarResp = getLogsWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getLogs request with HTTP info returned - * @return ApiResponse<GetLogsResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getLogsWithHttpInfo(commentId, tenantId, sso); } @@ -2293,9 +2334,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 getLogsAsync(commentId, tenantId, sso, _callback); } } @@ -2310,6 +2352,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetLogsRequest getLogs(@javax.annotation.Nonnull String commentId) { @@ -2374,16 +2417,16 @@ private okhttp3.Call getManualBadgesValidateBeforeCall(@javax.annotation.Nullabl } - private ApiResponse getManualBadgesWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getManualBadgesWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getManualBadgesAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getManualBadgesAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2427,6 +2470,7 @@ public APIgetManualBadgesRequest 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 { @@ -2435,32 +2479,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getManualBadges request - * @return GetManualBadgesResponse + * @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 GetManualBadgesResponse execute() throws ApiException { - ApiResponse localVarResp = getManualBadgesWithHttpInfo(tenantId, sso); + public GetTenantManualBadgesResponse execute() throws ApiException { + ApiResponse localVarResp = getManualBadgesWithHttpInfo(tenantId, sso); return localVarResp.getData(); } /** * Execute getManualBadges request with HTTP info returned - * @return ApiResponse<GetManualBadgesResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getManualBadgesWithHttpInfo(tenantId, sso); } @@ -2474,9 +2520,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 getManualBadgesAsync(tenantId, sso, _callback); } } @@ -2490,6 +2537,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetManualBadgesRequest getManualBadges() { @@ -2562,16 +2610,16 @@ private okhttp3.Call getManualBadgesForUserValidateBeforeCall(@javax.annotation. } - private ApiResponse getManualBadgesForUserWithHttpInfo(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getManualBadgesForUserWithHttpInfo(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(badgesUserId, commentId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getManualBadgesForUserAsync(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(badgesUserId, commentId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2639,6 +2687,7 @@ public APIgetManualBadgesForUserRequest 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 { @@ -2647,32 +2696,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getManualBadgesForUser request - * @return GetManualBadgesForUserResponse + * @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 GetManualBadgesForUserResponse execute() throws ApiException { - ApiResponse localVarResp = getManualBadgesForUserWithHttpInfo(badgesUserId, commentId, tenantId, sso); + public GetUserManualBadgesResponse execute() throws ApiException { + ApiResponse localVarResp = getManualBadgesForUserWithHttpInfo(badgesUserId, commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getManualBadgesForUser request with HTTP info returned - * @return ApiResponse<GetManualBadgesForUserResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getManualBadgesForUserWithHttpInfo(badgesUserId, commentId, tenantId, sso); } @@ -2686,9 +2737,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 getManualBadgesForUserAsync(badgesUserId, commentId, tenantId, sso, _callback); } } @@ -2702,6 +2754,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetManualBadgesForUserRequest getManualBadgesForUser() { @@ -2780,16 +2833,16 @@ private okhttp3.Call getModerationCommentValidateBeforeCall(@javax.annotation.No } - private ApiResponse getModerationCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getModerationCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(commentId, includeEmail, includeIP, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(commentId, includeEmail, includeIP, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2860,6 +2913,7 @@ public APIgetModerationCommentRequest 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 { @@ -2868,32 +2922,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getModerationComment request - * @return GetModerationCommentResponse + * @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 GetModerationCommentResponse execute() throws ApiException { - ApiResponse localVarResp = getModerationCommentWithHttpInfo(commentId, includeEmail, includeIP, tenantId, sso); + public ModerationAPICommentResponse execute() throws ApiException { + ApiResponse localVarResp = getModerationCommentWithHttpInfo(commentId, includeEmail, includeIP, tenantId, sso); return localVarResp.getData(); } /** * Execute getModerationComment request with HTTP info returned - * @return ApiResponse<GetModerationCommentResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getModerationCommentWithHttpInfo(commentId, includeEmail, includeIP, tenantId, sso); } @@ -2907,9 +2963,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 getModerationCommentAsync(commentId, includeEmail, includeIP, tenantId, sso, _callback); } } @@ -2924,6 +2981,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetModerationCommentRequest getModerationComment(@javax.annotation.Nonnull String commentId) { @@ -2994,16 +3052,16 @@ private okhttp3.Call getModerationCommentTextValidateBeforeCall(@javax.annotatio } - private ApiResponse getModerationCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getModerationCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(commentId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getModerationCommentTextAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentTextAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(commentId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3050,6 +3108,7 @@ public APIgetModerationCommentTextRequest 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 { @@ -3058,32 +3117,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getModerationCommentText request - * @return GetModerationCommentTextResponse + * @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 GetModerationCommentTextResponse execute() throws ApiException { - ApiResponse localVarResp = getModerationCommentTextWithHttpInfo(commentId, tenantId, sso); + public GetCommentTextResponse execute() throws ApiException { + ApiResponse localVarResp = getModerationCommentTextWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getModerationCommentText request with HTTP info returned - * @return ApiResponse<GetModerationCommentTextResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getModerationCommentTextWithHttpInfo(commentId, tenantId, sso); } @@ -3097,9 +3158,10 @@ public ApiResponse executeWithHttpInfo() throw 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 getModerationCommentTextAsync(commentId, tenantId, sso, _callback); } } @@ -3114,6 +3176,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetModerationCommentTextRequest getModerationCommentText(@javax.annotation.Nonnull String commentId) { @@ -3196,16 +3259,16 @@ private okhttp3.Call getPreBanSummaryValidateBeforeCall(@javax.annotation.Nonnul } - 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3288,6 +3351,7 @@ public APIgetPreBanSummaryRequest 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 { @@ -3296,32 +3360,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getPreBanSummary request - * @return GetPreBanSummaryResponse + * @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 GetPreBanSummaryResponse execute() throws ApiException { - ApiResponse localVarResp = getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); + public PreBanSummary execute() throws ApiException { + ApiResponse localVarResp = getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); return localVarResp.getData(); } /** * Execute getPreBanSummary request with HTTP info returned - * @return ApiResponse<GetPreBanSummaryResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); } @@ -3335,9 +3401,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 getPreBanSummaryAsync(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); } } @@ -3352,6 +3419,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetPreBanSummaryRequest getPreBanSummary(@javax.annotation.Nonnull String commentId) { @@ -3428,16 +3496,16 @@ private okhttp3.Call getSearchCommentsSummaryValidateBeforeCall(@javax.annotatio } - private ApiResponse getSearchCommentsSummaryWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getSearchCommentsSummaryWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(value, filters, searchFilters, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchCommentsSummaryAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(value, filters, searchFilters, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3517,6 +3585,7 @@ public APIgetSearchCommentsSummaryRequest 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 { @@ -3525,32 +3594,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getSearchCommentsSummary request - * @return GetSearchCommentsSummaryResponse + * @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 GetSearchCommentsSummaryResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchCommentsSummaryWithHttpInfo(value, filters, searchFilters, tenantId, sso); + public ModerationCommentSearchResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchCommentsSummaryWithHttpInfo(value, filters, searchFilters, tenantId, sso); return localVarResp.getData(); } /** * Execute getSearchCommentsSummary request with HTTP info returned - * @return ApiResponse<GetSearchCommentsSummaryResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getSearchCommentsSummaryWithHttpInfo(value, filters, searchFilters, tenantId, sso); } @@ -3564,9 +3635,10 @@ public ApiResponse executeWithHttpInfo() throw 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 getSearchCommentsSummaryAsync(value, filters, searchFilters, tenantId, sso, _callback); } } @@ -3580,6 +3652,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetSearchCommentsSummaryRequest getSearchCommentsSummary() { @@ -3648,16 +3721,16 @@ private okhttp3.Call getSearchPagesValidateBeforeCall(@javax.annotation.Nullable } - private ApiResponse getSearchPagesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getSearchPagesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(value, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getSearchPagesAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchPagesAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(value, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3713,6 +3786,7 @@ public APIgetSearchPagesRequest 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 { @@ -3721,32 +3795,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getSearchPages request - * @return GetSearchPagesResponse + * @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 GetSearchPagesResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchPagesWithHttpInfo(value, tenantId, sso); + public ModerationPageSearchResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchPagesWithHttpInfo(value, tenantId, sso); return localVarResp.getData(); } /** * Execute getSearchPages request with HTTP info returned - * @return ApiResponse<GetSearchPagesResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getSearchPagesWithHttpInfo(value, tenantId, sso); } @@ -3760,9 +3836,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 getSearchPagesAsync(value, tenantId, sso, _callback); } } @@ -3776,6 +3853,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetSearchPagesRequest getSearchPages() { @@ -3844,16 +3922,16 @@ private okhttp3.Call getSearchSitesValidateBeforeCall(@javax.annotation.Nullable } - private ApiResponse getSearchSitesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getSearchSitesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(value, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getSearchSitesAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchSitesAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(value, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3909,6 +3987,7 @@ public APIgetSearchSitesRequest 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 { @@ -3917,32 +3996,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getSearchSites request - * @return GetSearchSitesResponse + * @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 GetSearchSitesResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchSitesWithHttpInfo(value, tenantId, sso); + public ModerationSiteSearchResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchSitesWithHttpInfo(value, tenantId, sso); return localVarResp.getData(); } /** * Execute getSearchSites request with HTTP info returned - * @return ApiResponse<GetSearchSitesResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getSearchSitesWithHttpInfo(value, tenantId, sso); } @@ -3956,9 +4037,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 getSearchSitesAsync(value, tenantId, sso, _callback); } } @@ -3972,6 +4054,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetSearchSitesRequest getSearchSites() { @@ -4040,16 +4123,16 @@ private okhttp3.Call getSearchSuggestValidateBeforeCall(@javax.annotation.Nullab } - private ApiResponse getSearchSuggestWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getSearchSuggestWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(textSearch, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getSearchSuggestAsync(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchSuggestAsync(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(textSearch, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4105,6 +4188,7 @@ public APIgetSearchSuggestRequest 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 { @@ -4113,32 +4197,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getSearchSuggest request - * @return GetSearchSuggestResponse + * @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 GetSearchSuggestResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchSuggestWithHttpInfo(textSearch, tenantId, sso); + public ModerationSuggestResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchSuggestWithHttpInfo(textSearch, tenantId, sso); return localVarResp.getData(); } /** * Execute getSearchSuggest request with HTTP info returned - * @return ApiResponse<GetSearchSuggestResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getSearchSuggestWithHttpInfo(textSearch, tenantId, sso); } @@ -4152,9 +4238,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 getSearchSuggestAsync(textSearch, tenantId, sso, _callback); } } @@ -4168,6 +4255,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetSearchSuggestRequest getSearchSuggest() { @@ -4236,16 +4324,16 @@ private okhttp3.Call getSearchUsersValidateBeforeCall(@javax.annotation.Nullable } - private ApiResponse getSearchUsersWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getSearchUsersWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(value, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getSearchUsersAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchUsersAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(value, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4301,6 +4389,7 @@ public APIgetSearchUsersRequest 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 { @@ -4309,32 +4398,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getSearchUsers request - * @return GetSearchUsersResponse + * @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 GetSearchUsersResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchUsersWithHttpInfo(value, tenantId, sso); + public ModerationUserSearchResponse execute() throws ApiException { + ApiResponse localVarResp = getSearchUsersWithHttpInfo(value, tenantId, sso); return localVarResp.getData(); } /** * Execute getSearchUsers request with HTTP info returned - * @return ApiResponse<GetSearchUsersResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getSearchUsersWithHttpInfo(value, tenantId, sso); } @@ -4348,9 +4439,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 getSearchUsersAsync(value, tenantId, sso, _callback); } } @@ -4364,6 +4456,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetSearchUsersRequest getSearchUsers() { @@ -4432,16 +4525,16 @@ private okhttp3.Call getTrustFactorValidateBeforeCall(@javax.annotation.Nullable } - private ApiResponse getTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(userId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getTrustFactorAsync(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTrustFactorAsync(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(userId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4497,6 +4590,7 @@ public APIgetTrustFactorRequest 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 { @@ -4505,32 +4599,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTrustFactor request - * @return GetTrustFactorResponse + * @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 GetTrustFactorResponse execute() throws ApiException { - ApiResponse localVarResp = getTrustFactorWithHttpInfo(userId, tenantId, sso); + public GetUserTrustFactorResponse execute() throws ApiException { + ApiResponse localVarResp = getTrustFactorWithHttpInfo(userId, tenantId, sso); return localVarResp.getData(); } /** * Execute getTrustFactor request with HTTP info returned - * @return ApiResponse<GetTrustFactorResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTrustFactorWithHttpInfo(userId, tenantId, sso); } @@ -4544,9 +4640,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 getTrustFactorAsync(userId, tenantId, sso, _callback); } } @@ -4560,6 +4657,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetTrustFactorRequest getTrustFactor() { @@ -4624,16 +4722,16 @@ private okhttp3.Call getUserBanPreferenceValidateBeforeCall(@javax.annotation.Nu } - private ApiResponse getUserBanPreferenceWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getUserBanPreferenceWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserBanPreferenceAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserBanPreferenceAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4677,6 +4775,7 @@ public APIgetUserBanPreferenceRequest 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 { @@ -4685,32 +4784,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserBanPreference request - * @return GetUserBanPreferenceResponse + * @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 GetUserBanPreferenceResponse execute() throws ApiException { - ApiResponse localVarResp = getUserBanPreferenceWithHttpInfo(tenantId, sso); + public APIModerateGetUserBanPreferencesResponse execute() throws ApiException { + ApiResponse localVarResp = getUserBanPreferenceWithHttpInfo(tenantId, sso); return localVarResp.getData(); } /** * Execute getUserBanPreference request with HTTP info returned - * @return ApiResponse<GetUserBanPreferenceResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserBanPreferenceWithHttpInfo(tenantId, sso); } @@ -4724,9 +4825,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 getUserBanPreferenceAsync(tenantId, sso, _callback); } } @@ -4740,6 +4842,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetUserBanPreferenceRequest getUserBanPreference() { @@ -4808,16 +4911,16 @@ private okhttp3.Call getUserInternalProfileValidateBeforeCall(@javax.annotation. } - private ApiResponse getUserInternalProfileWithHttpInfo(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getUserInternalProfileWithHttpInfo(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(commentId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserInternalProfileAsync(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserInternalProfileAsync(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(commentId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4873,6 +4976,7 @@ public APIgetUserInternalProfileRequest 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 { @@ -4881,32 +4985,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserInternalProfile request - * @return GetUserInternalProfileResponse1 + * @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 GetUserInternalProfileResponse1 execute() throws ApiException { - ApiResponse localVarResp = getUserInternalProfileWithHttpInfo(commentId, tenantId, sso); + public GetUserInternalProfileResponse execute() throws ApiException { + ApiResponse localVarResp = getUserInternalProfileWithHttpInfo(commentId, tenantId, sso); return localVarResp.getData(); } /** * Execute getUserInternalProfile request with HTTP info returned - * @return ApiResponse<GetUserInternalProfileResponse1> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserInternalProfileWithHttpInfo(commentId, tenantId, sso); } @@ -4920,9 +5026,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 getUserInternalProfileAsync(commentId, tenantId, sso, _callback); } } @@ -4936,6 +5043,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetUserInternalProfileRequest getUserInternalProfile() { @@ -5016,16 +5124,16 @@ private okhttp3.Call postAdjustCommentVotesValidateBeforeCall(@javax.annotation. } - private ApiResponse postAdjustCommentVotesWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse postAdjustCommentVotesWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postAdjustCommentVotesAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5087,6 +5195,7 @@ public APIpostAdjustCommentVotesRequest 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 { @@ -5095,32 +5204,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postAdjustCommentVotes request - * @return PostAdjustCommentVotesResponse + * @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 PostAdjustCommentVotesResponse execute() throws ApiException { - ApiResponse localVarResp = postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso); + public AdjustVotesResponse execute() throws ApiException { + ApiResponse localVarResp = postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postAdjustCommentVotes request with HTTP info returned - * @return ApiResponse<PostAdjustCommentVotesResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso); } @@ -5134,9 +5245,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 postAdjustCommentVotesAsync(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso, _callback); } } @@ -5152,6 +5264,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostAdjustCommentVotesRequest postAdjustCommentVotes(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { @@ -5236,16 +5349,16 @@ private okhttp3.Call postApiExportValidateBeforeCall(@javax.annotation.Nullable } - 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postApiExportValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postApiExportValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5349,6 +5462,7 @@ public APIpostApiExportRequest 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 { @@ -5357,32 +5471,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postApiExport request - * @return PostApiExportResponse + * @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 PostApiExportResponse execute() throws ApiException { - ApiResponse localVarResp = postApiExportWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso); + public ModerationExportResponse execute() throws ApiException { + ApiResponse localVarResp = postApiExportWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso); return localVarResp.getData(); } /** * Execute postApiExport request with HTTP info returned - * @return ApiResponse<PostApiExportResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return postApiExportWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso); } @@ -5396,9 +5512,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 postApiExportAsync(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso, _callback); } } @@ -5412,6 +5529,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostApiExportRequest postApiExport() { @@ -5514,16 +5632,16 @@ private okhttp3.Call postBanUserFromCommentValidateBeforeCall(@javax.annotation. } - 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5666,6 +5784,7 @@ public APIpostBanUserFromCommentRequest 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 { @@ -5674,32 +5793,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postBanUserFromComment request - * @return PostBanUserFromCommentResponse + * @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 PostBanUserFromCommentResponse execute() throws ApiException { - ApiResponse localVarResp = postBanUserFromCommentWithHttpInfo(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso); + public BanUserFromCommentResult execute() throws ApiException { + ApiResponse localVarResp = postBanUserFromCommentWithHttpInfo(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso); return localVarResp.getData(); } /** * Execute postBanUserFromComment request with HTTP info returned - * @return ApiResponse<PostBanUserFromCommentResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return postBanUserFromCommentWithHttpInfo(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso); } @@ -5713,9 +5834,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 postBanUserFromCommentAsync(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso, _callback); } } @@ -5730,6 +5852,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostBanUserFromCommentRequest postBanUserFromComment(@javax.annotation.Nonnull String commentId) { @@ -5800,16 +5923,16 @@ private okhttp3.Call postBanUserUndoValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse postBanUserUndoWithHttpInfo(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse postBanUserUndoWithHttpInfo(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(banUserUndoParams, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postBanUserUndoAsync(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserUndoAsync(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(banUserUndoParams, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5856,6 +5979,7 @@ public APIpostBanUserUndoRequest 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 { @@ -5864,32 +5988,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postBanUserUndo request - * @return PostBanUserUndoResponse + * @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 PostBanUserUndoResponse execute() throws ApiException { - ApiResponse localVarResp = postBanUserUndoWithHttpInfo(banUserUndoParams, tenantId, sso); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postBanUserUndoWithHttpInfo(banUserUndoParams, tenantId, sso); return localVarResp.getData(); } /** * Execute postBanUserUndo request with HTTP info returned - * @return ApiResponse<PostBanUserUndoResponse> + * @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 postBanUserUndoWithHttpInfo(banUserUndoParams, tenantId, sso); } @@ -5903,9 +6029,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 postBanUserUndoAsync(banUserUndoParams, tenantId, sso, _callback); } } @@ -5920,6 +6047,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostBanUserUndoRequest postBanUserUndo(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { @@ -6002,16 +6130,16 @@ private okhttp3.Call postBulkPreBanSummaryValidateBeforeCall(@javax.annotation.N } - 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6094,6 +6222,7 @@ public APIpostBulkPreBanSummaryRequest 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 { @@ -6102,32 +6231,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postBulkPreBanSummary request - * @return PostBulkPreBanSummaryResponse + * @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 PostBulkPreBanSummaryResponse execute() throws ApiException { - ApiResponse localVarResp = postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); + public BulkPreBanSummary execute() throws ApiException { + ApiResponse localVarResp = postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); return localVarResp.getData(); } /** * Execute postBulkPreBanSummary request with HTTP info returned - * @return ApiResponse<PostBulkPreBanSummaryResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); } @@ -6141,9 +6272,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 postBulkPreBanSummaryAsync(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); } } @@ -6158,6 +6290,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostBulkPreBanSummaryRequest postBulkPreBanSummary(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { @@ -6228,16 +6361,16 @@ private okhttp3.Call postCommentsByIdsValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse postCommentsByIdsWithHttpInfo(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse postCommentsByIdsWithHttpInfo(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(commentsByIdsParams, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postCommentsByIdsAsync(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postCommentsByIdsAsync(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(commentsByIdsParams, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6284,6 +6417,7 @@ public APIpostCommentsByIdsRequest 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 { @@ -6292,32 +6426,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postCommentsByIds request - * @return PostCommentsByIdsResponse + * @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 PostCommentsByIdsResponse execute() throws ApiException { - ApiResponse localVarResp = postCommentsByIdsWithHttpInfo(commentsByIdsParams, tenantId, sso); + public ModerationAPIChildCommentsResponse execute() throws ApiException { + ApiResponse localVarResp = postCommentsByIdsWithHttpInfo(commentsByIdsParams, tenantId, sso); return localVarResp.getData(); } /** * Execute postCommentsByIds request with HTTP info returned - * @return ApiResponse<PostCommentsByIdsResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return postCommentsByIdsWithHttpInfo(commentsByIdsParams, tenantId, sso); } @@ -6331,9 +6467,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 postCommentsByIdsAsync(commentsByIdsParams, tenantId, sso, _callback); } } @@ -6348,6 +6485,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostCommentsByIdsRequest postCommentsByIds(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { @@ -6422,16 +6560,16 @@ private okhttp3.Call postFlagCommentValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse postFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse postFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postFlagCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postFlagCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6490,6 +6628,7 @@ public APIpostFlagCommentRequest 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 { @@ -6498,32 +6637,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postFlagComment request - * @return PostFlagCommentResponse + * @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 PostFlagCommentResponse execute() throws ApiException { - ApiResponse localVarResp = postFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postFlagComment request with HTTP info returned - * @return ApiResponse<PostFlagCommentResponse> + * @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 postFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); } @@ -6537,9 +6678,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 postFlagCommentAsync(commentId, broadcastId, tenantId, sso, _callback); } } @@ -6554,6 +6696,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostFlagCommentRequest postFlagComment(@javax.annotation.Nonnull String commentId) { @@ -6696,6 +6839,7 @@ public APIpostRemoveCommentRequest 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 { @@ -6711,6 +6855,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public PostRemoveCommentResponse execute() throws ApiException { @@ -6727,6 +6872,7 @@ public PostRemoveCommentResponse execute() throws ApiException { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -6743,6 +6889,7 @@ 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 { @@ -6760,6 +6907,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostRemoveCommentRequest postRemoveComment(@javax.annotation.Nonnull String commentId) { @@ -6834,16 +6982,16 @@ private okhttp3.Call postRestoreDeletedCommentValidateBeforeCall(@javax.annotati } - private ApiResponse postRestoreDeletedCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse postRestoreDeletedCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postRestoreDeletedCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRestoreDeletedCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6902,6 +7050,7 @@ public APIpostRestoreDeletedCommentRequest 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 { @@ -6910,32 +7059,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postRestoreDeletedComment request - * @return PostRestoreDeletedCommentResponse + * @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 PostRestoreDeletedCommentResponse execute() throws ApiException { - ApiResponse localVarResp = postRestoreDeletedCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postRestoreDeletedCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postRestoreDeletedComment request with HTTP info returned - * @return ApiResponse<PostRestoreDeletedCommentResponse> + * @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 postRestoreDeletedCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); } @@ -6949,9 +7100,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 postRestoreDeletedCommentAsync(commentId, broadcastId, tenantId, sso, _callback); } } @@ -6966,6 +7118,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostRestoreDeletedCommentRequest postRestoreDeletedComment(@javax.annotation.Nonnull String commentId) { @@ -7044,16 +7197,16 @@ private okhttp3.Call postSetCommentApprovalStatusValidateBeforeCall(@javax.annot } - private ApiResponse postSetCommentApprovalStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse postSetCommentApprovalStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(commentId, approved, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentApprovalStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(commentId, approved, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7124,6 +7277,7 @@ public APIpostSetCommentApprovalStatusRequest 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 { @@ -7132,32 +7286,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postSetCommentApprovalStatus request - * @return PostSetCommentApprovalStatusResponse + * @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 PostSetCommentApprovalStatusResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentApprovalStatusWithHttpInfo(commentId, approved, broadcastId, tenantId, sso); + public SetCommentApprovedResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentApprovalStatusWithHttpInfo(commentId, approved, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postSetCommentApprovalStatus request with HTTP info returned - * @return ApiResponse<PostSetCommentApprovalStatusResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return postSetCommentApprovalStatusWithHttpInfo(commentId, approved, broadcastId, tenantId, sso); } @@ -7171,9 +7327,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 postSetCommentApprovalStatusAsync(commentId, approved, broadcastId, tenantId, sso, _callback); } } @@ -7188,6 +7345,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostSetCommentApprovalStatusRequest postSetCommentApprovalStatus(@javax.annotation.Nonnull String commentId) { @@ -7266,16 +7424,16 @@ private okhttp3.Call postSetCommentReviewStatusValidateBeforeCall(@javax.annotat } - private ApiResponse postSetCommentReviewStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse postSetCommentReviewStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(commentId, reviewed, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentReviewStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(commentId, reviewed, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7346,6 +7504,7 @@ public APIpostSetCommentReviewStatusRequest 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 { @@ -7354,32 +7513,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postSetCommentReviewStatus request - * @return PostSetCommentReviewStatusResponse + * @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 PostSetCommentReviewStatusResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentReviewStatusWithHttpInfo(commentId, reviewed, broadcastId, tenantId, sso); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentReviewStatusWithHttpInfo(commentId, reviewed, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postSetCommentReviewStatus request with HTTP info returned - * @return ApiResponse<PostSetCommentReviewStatusResponse> + * @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 postSetCommentReviewStatusWithHttpInfo(commentId, reviewed, broadcastId, tenantId, sso); } @@ -7393,9 +7554,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 postSetCommentReviewStatusAsync(commentId, reviewed, broadcastId, tenantId, sso, _callback); } } @@ -7410,6 +7572,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostSetCommentReviewStatusRequest postSetCommentReviewStatus(@javax.annotation.Nonnull String commentId) { @@ -7492,16 +7655,16 @@ private okhttp3.Call postSetCommentSpamStatusValidateBeforeCall(@javax.annotatio } - private ApiResponse postSetCommentSpamStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse postSetCommentSpamStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(commentId, spam, permNotSpam, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentSpamStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(commentId, spam, permNotSpam, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7584,6 +7747,7 @@ public APIpostSetCommentSpamStatusRequest 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 { @@ -7592,32 +7756,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postSetCommentSpamStatus request - * @return PostSetCommentSpamStatusResponse + * @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 PostSetCommentSpamStatusResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentSpamStatusWithHttpInfo(commentId, spam, permNotSpam, broadcastId, tenantId, sso); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentSpamStatusWithHttpInfo(commentId, spam, permNotSpam, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postSetCommentSpamStatus request with HTTP info returned - * @return ApiResponse<PostSetCommentSpamStatusResponse> + * @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 postSetCommentSpamStatusWithHttpInfo(commentId, spam, permNotSpam, broadcastId, tenantId, sso); } @@ -7631,9 +7797,10 @@ public ApiResponse executeWithHttpInfo() throw 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 postSetCommentSpamStatusAsync(commentId, spam, permNotSpam, broadcastId, tenantId, sso, _callback); } } @@ -7648,6 +7815,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostSetCommentSpamStatusRequest postSetCommentSpamStatus(@javax.annotation.Nonnull String commentId) { @@ -7728,16 +7896,16 @@ private okhttp3.Call postSetCommentTextValidateBeforeCall(@javax.annotation.Nonn } - private ApiResponse postSetCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse postSetCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(commentId, setCommentTextParams, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentTextAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(commentId, setCommentTextParams, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7799,6 +7967,7 @@ public APIpostSetCommentTextRequest 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 { @@ -7807,32 +7976,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postSetCommentText request - * @return PostSetCommentTextResponse + * @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 PostSetCommentTextResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, broadcastId, tenantId, sso); + public SetCommentTextResponse execute() throws ApiException { + ApiResponse localVarResp = postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postSetCommentText request with HTTP info returned - * @return ApiResponse<PostSetCommentTextResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, broadcastId, tenantId, sso); } @@ -7846,9 +8017,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 postSetCommentTextAsync(commentId, setCommentTextParams, broadcastId, tenantId, sso, _callback); } } @@ -7864,6 +8036,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostSetCommentTextRequest postSetCommentText(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { @@ -7938,16 +8111,16 @@ private okhttp3.Call postUnFlagCommentValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse postUnFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse postUnFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postUnFlagCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postUnFlagCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8006,6 +8179,7 @@ public APIpostUnFlagCommentRequest 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 { @@ -8014,32 +8188,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postUnFlagComment request - * @return PostUnFlagCommentResponse + * @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 PostUnFlagCommentResponse execute() throws ApiException { - ApiResponse localVarResp = postUnFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = postUnFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postUnFlagComment request with HTTP info returned - * @return ApiResponse<PostUnFlagCommentResponse> + * @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 postUnFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); } @@ -8053,9 +8229,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 postUnFlagCommentAsync(commentId, broadcastId, tenantId, sso, _callback); } } @@ -8070,6 +8247,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostUnFlagCommentRequest postUnFlagComment(@javax.annotation.Nonnull String commentId) { @@ -8148,16 +8326,16 @@ private okhttp3.Call postVoteValidateBeforeCall(@javax.annotation.Nonnull String } - private ApiResponse postVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse postVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = postVoteValidateBeforeCall(commentId, direction, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postVoteAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postVoteValidateBeforeCall(commentId, direction, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8228,6 +8406,7 @@ public APIpostVoteRequest 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 { @@ -8236,32 +8415,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute postVote request - * @return PostVoteResponse + * @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 PostVoteResponse execute() throws ApiException { - ApiResponse localVarResp = postVoteWithHttpInfo(commentId, direction, broadcastId, tenantId, sso); + public VoteResponse execute() throws ApiException { + ApiResponse localVarResp = postVoteWithHttpInfo(commentId, direction, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute postVote request with HTTP info returned - * @return ApiResponse<PostVoteResponse> + * @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 postVoteWithHttpInfo(commentId, direction, broadcastId, tenantId, sso); } @@ -8275,9 +8456,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 postVoteAsync(commentId, direction, broadcastId, tenantId, sso, _callback); } } @@ -8292,6 +8474,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIpostVoteRequest postVote(@javax.annotation.Nonnull String commentId) { @@ -8377,16 +8560,16 @@ private okhttp3.Call putAwardBadgeValidateBeforeCall(@javax.annotation.Nonnull S } - 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8469,6 +8652,7 @@ public APIputAwardBadgeRequest 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 { @@ -8477,32 +8661,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute putAwardBadge request - * @return PutAwardBadgeResponse + * @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 PutAwardBadgeResponse execute() throws ApiException { - ApiResponse localVarResp = putAwardBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); + public AwardUserBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = putAwardBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute putAwardBadge request with HTTP info returned - * @return ApiResponse<PutAwardBadgeResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return putAwardBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); } @@ -8516,9 +8702,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 putAwardBadgeAsync(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); } } @@ -8533,6 +8720,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIputAwardBadgeRequest putAwardBadge(@javax.annotation.Nonnull String badgeId) { @@ -8606,16 +8794,16 @@ private okhttp3.Call putCloseThreadValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse putCloseThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse putCloseThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(urlId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call putCloseThreadAsync(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putCloseThreadAsync(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(urlId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8662,6 +8850,7 @@ public APIputCloseThreadRequest 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 { @@ -8670,32 +8859,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute putCloseThread request - * @return PutCloseThreadResponse + * @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 PutCloseThreadResponse execute() throws ApiException { - ApiResponse localVarResp = putCloseThreadWithHttpInfo(urlId, tenantId, sso); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = putCloseThreadWithHttpInfo(urlId, tenantId, sso); return localVarResp.getData(); } /** * Execute putCloseThread request with HTTP info returned - * @return ApiResponse<PutCloseThreadResponse> + * @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 putCloseThreadWithHttpInfo(urlId, tenantId, sso); } @@ -8709,9 +8900,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 putCloseThreadAsync(urlId, tenantId, sso, _callback); } } @@ -8726,6 +8918,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIputCloseThreadRequest putCloseThread(@javax.annotation.Nonnull String urlId) { @@ -8811,16 +9004,16 @@ private okhttp3.Call putRemoveBadgeValidateBeforeCall(@javax.annotation.Nonnull } - 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -8903,6 +9096,7 @@ public APIputRemoveBadgeRequest 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 { @@ -8911,32 +9105,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute putRemoveBadge request - * @return PutRemoveBadgeResponse + * @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 PutRemoveBadgeResponse execute() throws ApiException { - ApiResponse localVarResp = putRemoveBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); + public RemoveUserBadgeResponse execute() throws ApiException { + ApiResponse localVarResp = putRemoveBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); return localVarResp.getData(); } /** * Execute putRemoveBadge request with HTTP info returned - * @return ApiResponse<PutRemoveBadgeResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return putRemoveBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); } @@ -8950,9 +9146,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 putRemoveBadgeAsync(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); } } @@ -8967,6 +9164,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIputRemoveBadgeRequest putRemoveBadge(@javax.annotation.Nonnull String badgeId) { @@ -9040,16 +9238,16 @@ private okhttp3.Call putReopenThreadValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse putReopenThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse putReopenThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(urlId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call putReopenThreadAsync(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putReopenThreadAsync(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(urlId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9096,6 +9294,7 @@ public APIputReopenThreadRequest 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 { @@ -9104,32 +9303,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute putReopenThread request - * @return PutReopenThreadResponse + * @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 PutReopenThreadResponse execute() throws ApiException { - ApiResponse localVarResp = putReopenThreadWithHttpInfo(urlId, tenantId, sso); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = putReopenThreadWithHttpInfo(urlId, tenantId, sso); return localVarResp.getData(); } /** * Execute putReopenThread request with HTTP info returned - * @return ApiResponse<PutReopenThreadResponse> + * @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 putReopenThreadWithHttpInfo(urlId, tenantId, sso); } @@ -9143,9 +9344,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 putReopenThreadAsync(urlId, tenantId, sso, _callback); } } @@ -9160,6 +9362,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIputReopenThreadRequest putReopenThread(@javax.annotation.Nonnull String urlId) { @@ -9232,16 +9435,16 @@ private okhttp3.Call setTrustFactorValidateBeforeCall(@javax.annotation.Nullable } - private ApiResponse setTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse setTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(userId, trustFactor, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call setTrustFactorAsync(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(userId, trustFactor, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -9309,6 +9512,7 @@ public APIsetTrustFactorRequest 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 { @@ -9317,32 +9521,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute setTrustFactor request - * @return SetTrustFactorResponse + * @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 SetTrustFactorResponse execute() throws ApiException { - ApiResponse localVarResp = setTrustFactorWithHttpInfo(userId, trustFactor, tenantId, sso); + public SetUserTrustFactorResponse execute() throws ApiException { + ApiResponse localVarResp = setTrustFactorWithHttpInfo(userId, trustFactor, tenantId, sso); return localVarResp.getData(); } /** * Execute setTrustFactor request with HTTP info returned - * @return ApiResponse<SetTrustFactorResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return setTrustFactorWithHttpInfo(userId, trustFactor, tenantId, sso); } @@ -9356,9 +9562,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 setTrustFactorAsync(userId, trustFactor, tenantId, sso, _callback); } } @@ -9372,6 +9579,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIsetTrustFactorRequest setTrustFactor() { diff --git a/client/src/main/java/com/fastcomments/api/PublicApi.java b/client/src/main/java/com/fastcomments/api/PublicApi.java index 81a0bf79..5490c85d 100644 --- a/client/src/main/java/com/fastcomments/api/PublicApi.java +++ b/client/src/main/java/com/fastcomments/api/PublicApi.java @@ -29,68 +29,58 @@ import com.fastcomments.model.APIEmptyResponse; import com.fastcomments.model.APIError; -import com.fastcomments.model.BlockFromCommentPublicResponse; -import com.fastcomments.model.CheckedCommentsForBlockedResponse; +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.CreateCommentPublicResponse; import com.fastcomments.model.CreateFeedPostParams; -import com.fastcomments.model.CreateFeedPostPublicResponse; -import com.fastcomments.model.CreateV1PageReactResponse; -import com.fastcomments.model.CreateV2PageReactResponse; -import com.fastcomments.model.DeleteCommentPublicResponse; -import com.fastcomments.model.DeleteCommentVoteResponse; +import com.fastcomments.model.CreateFeedPostResponse; +import com.fastcomments.model.CreateV1PageReact; import com.fastcomments.model.DeleteFeedPostPublicResponse; -import com.fastcomments.model.DeleteV1PageReactResponse; -import com.fastcomments.model.DeleteV2PageReactResponse; +import com.fastcomments.model.FeedPostsStatsResponse; import java.io.File; -import com.fastcomments.model.FlagCommentPublicResponse; -import com.fastcomments.model.GetCommentTextResponse1; -import com.fastcomments.model.GetCommentVoteUserNamesResponse; -import com.fastcomments.model.GetCommentsForUserResponse1; -import com.fastcomments.model.GetCommentsPublicResponse; -import com.fastcomments.model.GetEventLogResponse1; -import com.fastcomments.model.GetFeedPostsPublicResponse; -import com.fastcomments.model.GetFeedPostsStatsResponse; -import com.fastcomments.model.GetGifLargeResponse; +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.GetGlobalEventLogResponse; -import com.fastcomments.model.GetOfflineUsersResponse; -import com.fastcomments.model.GetOnlineUsersResponse; -import com.fastcomments.model.GetPagesPublicResponse; -import com.fastcomments.model.GetTranslationsResponse1; -import com.fastcomments.model.GetUserNotificationCountResponse1; -import com.fastcomments.model.GetUserNotificationsResponse; -import com.fastcomments.model.GetUserPresenceStatusesResponse1; -import com.fastcomments.model.GetUserReactsPublicResponse; -import com.fastcomments.model.GetUsersInfoResponse; -import com.fastcomments.model.GetV1PageLikesResponse; -import com.fastcomments.model.GetV2PageReactUsersResponse1; -import com.fastcomments.model.GetV2PageReactsResponse; -import com.fastcomments.model.LockCommentResponse; +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.PinCommentResponse; +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.ReactFeedPostPublicResponse; -import com.fastcomments.model.ResetUserNotificationCountResponse; -import com.fastcomments.model.ResetUserNotificationsResponse1; -import com.fastcomments.model.SearchUsersResponse1; -import com.fastcomments.model.SetCommentTextResponse1; +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.UnBlockCommentPublicResponse; -import com.fastcomments.model.UnLockCommentResponse; -import com.fastcomments.model.UnPinCommentResponse; +import com.fastcomments.model.UnblockSuccess; import com.fastcomments.model.UpdateFeedPostParams; -import com.fastcomments.model.UpdateFeedPostPublicResponse; 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.VoteCommentResponse; +import com.fastcomments.model.VoteDeleteResponse; +import com.fastcomments.model.VoteResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -211,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; } @@ -261,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 { @@ -269,32 +260,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute blockFromCommentPublic request - * @return BlockFromCommentPublicResponse + * @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 BlockFromCommentPublicResponse 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<BlockFromCommentPublicResponse> + * @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); } @@ -308,9 +301,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 blockFromCommentPublicAsync(tenantId, commentId, publicBlockFromCommentParams, sso, _callback); } } @@ -327,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) { @@ -405,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; } @@ -452,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 { @@ -460,32 +456,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute checkedCommentsForBlocked request - * @return CheckedCommentsForBlockedResponse + * @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 CheckedCommentsForBlockedResponse 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<CheckedCommentsForBlockedResponse> + * @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); } @@ -499,9 +497,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 checkedCommentsForBlockedAsync(tenantId, commentIds, sso, _callback); } } @@ -517,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) { @@ -611,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; } @@ -676,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 { @@ -684,32 +685,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createCommentPublic request - * @return CreateCommentPublicResponse + * @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 CreateCommentPublicResponse 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<CreateCommentPublicResponse> + * @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); } @@ -723,9 +726,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 createCommentPublicAsync(tenantId, urlId, broadcastId, commentData, sessionId, sso, _callback); } } @@ -743,6 +747,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response 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) { @@ -819,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; } @@ -878,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 { @@ -886,32 +892,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createFeedPostPublic request - * @return CreateFeedPostPublicResponse + * @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 CreateFeedPostPublicResponse 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<CreateFeedPostPublicResponse> + * @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); } @@ -925,9 +933,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 createFeedPostPublicAsync(tenantId, createFeedPostParams, broadcastId, sso, _callback); } } @@ -943,6 +952,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateFeedPostPublicRequest createFeedPostPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateFeedPostParams createFeedPostParams) { @@ -1018,16 +1028,16 @@ private okhttp3.Call createV1PageReactValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse createV1PageReactWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String title) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createV1PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String title, 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 = createV1PageReactValidateBeforeCall(tenantId, urlId, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1065,6 +1075,7 @@ public APIcreateV1PageReactRequest title(@javax.annotation.Nullable String title Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -1073,32 +1084,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createV1PageReact request - * @return CreateV1PageReactResponse + * @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 CreateV1PageReactResponse execute() throws ApiException { - ApiResponse localVarResp = createV1PageReactWithHttpInfo(tenantId, urlId, title); + public CreateV1PageReact execute() throws ApiException { + ApiResponse localVarResp = createV1PageReactWithHttpInfo(tenantId, urlId, title); return localVarResp.getData(); } /** * Execute createV1PageReact request with HTTP info returned - * @return ApiResponse<CreateV1PageReactResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return createV1PageReactWithHttpInfo(tenantId, urlId, title); } @@ -1112,9 +1125,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 createV1PageReactAsync(tenantId, urlId, title, _callback); } } @@ -1130,6 +1144,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateV1PageReactRequest createV1PageReact(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -1214,16 +1229,16 @@ private okhttp3.Call createV2PageReactValidateBeforeCall(@javax.annotation.Nonnu } - 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + 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 = createV2PageReactValidateBeforeCall(tenantId, urlId, id, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1264,6 +1279,7 @@ public APIcreateV2PageReactRequest title(@javax.annotation.Nullable String title Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -1272,32 +1288,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute createV2PageReact request - * @return CreateV2PageReactResponse + * @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 CreateV2PageReactResponse execute() throws ApiException { - ApiResponse localVarResp = createV2PageReactWithHttpInfo(tenantId, urlId, id, title); + public CreateV1PageReact execute() throws ApiException { + ApiResponse localVarResp = createV2PageReactWithHttpInfo(tenantId, urlId, id, title); return localVarResp.getData(); } /** * Execute createV2PageReact request with HTTP info returned - * @return ApiResponse<CreateV2PageReactResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return createV2PageReactWithHttpInfo(tenantId, urlId, id, title); } @@ -1311,9 +1329,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 createV2PageReactAsync(tenantId, urlId, id, title, _callback); } } @@ -1330,6 +1349,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIcreateV2PageReactRequest createV2PageReact(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) { @@ -1415,16 +1435,16 @@ private okhttp3.Call deleteCommentPublicValidateBeforeCall(@javax.annotation.Non } - 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 { + 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(); + 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 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 = deleteCommentPublicValidateBeforeCall(tenantId, commentId, broadcastId, editKey, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1477,6 +1497,7 @@ 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 { @@ -1485,32 +1506,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteCommentPublic request - * @return DeleteCommentPublicResponse + * @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 DeleteCommentPublicResponse execute() throws ApiException { - ApiResponse localVarResp = deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso); + public PublicAPIDeleteCommentResponse execute() throws ApiException { + ApiResponse localVarResp = deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso); return localVarResp.getData(); } /** * Execute deleteCommentPublic request with HTTP info returned - * @return ApiResponse<DeleteCommentPublicResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso); } @@ -1524,9 +1547,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 deleteCommentPublicAsync(tenantId, commentId, broadcastId, editKey, sso, _callback); } } @@ -1543,6 +1567,7 @@ 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) { @@ -1643,16 +1668,16 @@ private okhttp3.Call deleteCommentVoteValidateBeforeCall(@javax.annotation.Nonnu } - 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 { + 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(); + 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 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 = deleteCommentVoteValidateBeforeCall(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1711,6 +1736,7 @@ 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 { @@ -1719,32 +1745,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteCommentVote request - * @return DeleteCommentVoteResponse + * @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 DeleteCommentVoteResponse execute() throws ApiException { - ApiResponse localVarResp = deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso); + public VoteDeleteResponse execute() throws ApiException { + ApiResponse localVarResp = deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso); return localVarResp.getData(); } /** * Execute deleteCommentVote request with HTTP info returned - * @return ApiResponse<DeleteCommentVoteResponse> + * @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 deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso); } @@ -1758,9 +1786,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 deleteCommentVoteAsync(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso, _callback); } } @@ -1779,6 +1808,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c 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) { @@ -1914,6 +1944,7 @@ 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 { @@ -1929,6 +1960,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public DeleteFeedPostPublicResponse execute() throws ApiException { @@ -1945,6 +1977,7 @@ public DeleteFeedPostPublicResponse execute() throws ApiException { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -1961,6 +1994,7 @@ 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 { @@ -1979,6 +2013,7 @@ 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) { @@ -2050,16 +2085,16 @@ private okhttp3.Call deleteV1PageReactValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse deleteV1PageReactWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteV1PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, 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 = deleteV1PageReactValidateBeforeCall(tenantId, urlId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2085,6 +2120,7 @@ private APIdeleteV1PageReactRequest(@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 { @@ -2093,32 +2129,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteV1PageReact request - * @return DeleteV1PageReactResponse + * @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 DeleteV1PageReactResponse execute() throws ApiException { - ApiResponse localVarResp = deleteV1PageReactWithHttpInfo(tenantId, urlId); + public CreateV1PageReact execute() throws ApiException { + ApiResponse localVarResp = deleteV1PageReactWithHttpInfo(tenantId, urlId); return localVarResp.getData(); } /** * Execute deleteV1PageReact request with HTTP info returned - * @return ApiResponse<DeleteV1PageReactResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteV1PageReactWithHttpInfo(tenantId, urlId); } @@ -2132,9 +2170,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 deleteV1PageReactAsync(tenantId, urlId, _callback); } } @@ -2150,6 +2189,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIdeleteV1PageReactRequest deleteV1PageReact(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -2230,16 +2270,16 @@ private okhttp3.Call deleteV2PageReactValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse deleteV2PageReactWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteV2PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteV2PageReactAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteV2PageReactValidateBeforeCall(tenantId, urlId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2268,6 +2308,7 @@ private APIdeleteV2PageReactRequest(@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 { @@ -2276,32 +2317,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute deleteV2PageReact request - * @return DeleteV2PageReactResponse + * @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 DeleteV2PageReactResponse execute() throws ApiException { - ApiResponse localVarResp = deleteV2PageReactWithHttpInfo(tenantId, urlId, id); + public CreateV1PageReact execute() throws ApiException { + ApiResponse localVarResp = deleteV2PageReactWithHttpInfo(tenantId, urlId, id); return localVarResp.getData(); } /** * Execute deleteV2PageReact request with HTTP info returned - * @return ApiResponse<DeleteV2PageReactResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return deleteV2PageReactWithHttpInfo(tenantId, urlId, id); } @@ -2315,9 +2358,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 deleteV2PageReactAsync(tenantId, urlId, id, _callback); } } @@ -2334,6 +2378,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c 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) { @@ -2418,16 +2463,16 @@ private okhttp3.Call flagCommentPublicValidateBeforeCall(@javax.annotation.Nonnu } - 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 { + 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(); + 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 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 = flagCommentPublicValidateBeforeCall(tenantId, commentId, isFlagged, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2468,6 +2513,7 @@ 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 { @@ -2476,32 +2522,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute flagCommentPublic request - * @return FlagCommentPublicResponse + * @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 FlagCommentPublicResponse execute() throws ApiException { - ApiResponse localVarResp = flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso); + public APIEmptyResponse execute() throws ApiException { + ApiResponse localVarResp = flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso); return localVarResp.getData(); } /** * Execute flagCommentPublic request with HTTP info returned - * @return ApiResponse<FlagCommentPublicResponse> + * @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 flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso); } @@ -2515,9 +2563,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 flagCommentPublicAsync(tenantId, commentId, isFlagged, sso, _callback); } } @@ -2534,6 +2583,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c 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) { @@ -2610,16 +2660,16 @@ private okhttp3.Call getCommentTextValidateBeforeCall(@javax.annotation.Nonnull } - 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 { + 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(); + 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 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2669,6 +2719,7 @@ 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 { @@ -2677,32 +2728,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCommentText request - * @return GetCommentTextResponse1 + * @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 GetCommentTextResponse1 execute() throws ApiException { - ApiResponse localVarResp = getCommentTextWithHttpInfo(tenantId, commentId, editKey, sso); + public PublicAPIGetCommentTextResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentTextWithHttpInfo(tenantId, commentId, editKey, sso); return localVarResp.getData(); } /** * Execute getCommentText request with HTTP info returned - * @return ApiResponse<GetCommentTextResponse1> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getCommentTextWithHttpInfo(tenantId, commentId, editKey, sso); } @@ -2716,9 +2769,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 getCommentTextAsync(tenantId, commentId, editKey, sso, _callback); } } @@ -2734,6 +2788,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCommentTextRequest getCommentText(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { @@ -2815,16 +2870,16 @@ private okhttp3.Call getCommentVoteUserNamesValidateBeforeCall(@javax.annotation } - 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 { + 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(); + 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 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -2865,6 +2920,7 @@ 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 { @@ -2873,32 +2929,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCommentVoteUserNames request - * @return GetCommentVoteUserNamesResponse + * @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 GetCommentVoteUserNamesResponse execute() throws ApiException { - ApiResponse localVarResp = getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso); + public GetCommentVoteUserNamesSuccessResponse execute() throws ApiException { + ApiResponse localVarResp = getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso); return localVarResp.getData(); } /** * Execute getCommentVoteUserNames request with HTTP info returned - * @return ApiResponse<GetCommentVoteUserNamesResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso); } @@ -2912,9 +2970,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 getCommentVoteUserNamesAsync(tenantId, commentId, dir, sso, _callback); } } @@ -2931,6 +2990,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse 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) { @@ -3015,16 +3075,16 @@ private okhttp3.Call getCommentsForUserValidateBeforeCall(@javax.annotation.Null } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3128,6 +3188,7 @@ public APIgetCommentsForUserRequest isCrawler(@javax.annotation.Nullable Boolean Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -3136,32 +3197,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCommentsForUser request - * @return GetCommentsForUserResponse1 + * @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 GetCommentsForUserResponse1 execute() throws ApiException { - ApiResponse localVarResp = getCommentsForUserWithHttpInfo(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler); + 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<GetCommentsForUserResponse1> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getCommentsForUserWithHttpInfo(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler); } @@ -3175,9 +3238,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 getCommentsForUserAsync(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler, _callback); } } @@ -3191,6 +3255,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCommentsForUserRequest getCommentsForUser() { @@ -3366,16 +3431,16 @@ private okhttp3.Call getCommentsPublicValidateBeforeCall(@javax.annotation.Nonnu } - 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 { + 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(); + 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 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3713,6 +3778,7 @@ public APIgetCommentsPublicRequest beforeCommentId(@javax.annotation.Nullable St Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -3721,32 +3787,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getCommentsPublic request - * @return GetCommentsPublicResponse + * @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 GetCommentsPublicResponse 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 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<GetCommentsPublicResponse> + * @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 { + 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); } @@ -3760,9 +3828,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 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); } } @@ -3778,6 +3847,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetCommentsPublicRequest getCommentsPublic(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -3871,16 +3941,16 @@ private okhttp3.Call getEventLogValidateBeforeCall(@javax.annotation.Nonnull Str } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3924,6 +3994,7 @@ public APIgetEventLogRequest endTime(@javax.annotation.Nullable Long endTime) { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -3932,32 +4003,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getEventLog request - * @return GetEventLogResponse1 + * @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 GetEventLogResponse1 execute() throws ApiException { - ApiResponse localVarResp = getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); + 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<GetEventLogResponse1> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); } @@ -3971,9 +4044,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 getEventLogAsync(tenantId, urlId, userIdWS, startTime, endTime, _callback); } } @@ -3991,6 +4065,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba 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) { @@ -4077,16 +4152,16 @@ private okhttp3.Call getFeedPostsPublicValidateBeforeCall(@javax.annotation.Nonn } - 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 { + 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(); + 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 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4181,6 +4256,7 @@ 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 { @@ -4189,32 +4265,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getFeedPostsPublic request - * @return GetFeedPostsPublicResponse + * @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 GetFeedPostsPublicResponse execute() throws ApiException { - ApiResponse localVarResp = getFeedPostsPublicWithHttpInfo(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo); + 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<GetFeedPostsPublicResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getFeedPostsPublicWithHttpInfo(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo); } @@ -4228,9 +4306,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 getFeedPostsPublicAsync(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo, _callback); } } @@ -4245,6 +4324,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetFeedPostsPublicRequest getFeedPostsPublic(@javax.annotation.Nonnull String tenantId) { @@ -4320,16 +4400,16 @@ private okhttp3.Call getFeedPostsStatsValidateBeforeCall(@javax.annotation.Nonnu } - private ApiResponse getFeedPostsStatsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds, @javax.annotation.Nullable String sso) throws ApiException { + 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(); + 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 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4367,6 +4447,7 @@ public APIgetFeedPostsStatsRequest 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 { @@ -4375,32 +4456,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getFeedPostsStats request - * @return GetFeedPostsStatsResponse + * @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 GetFeedPostsStatsResponse execute() throws ApiException { - ApiResponse localVarResp = getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso); + public FeedPostsStatsResponse execute() throws ApiException { + ApiResponse localVarResp = getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso); return localVarResp.getData(); } /** * Execute getFeedPostsStats request with HTTP info returned - * @return ApiResponse<GetFeedPostsStatsResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso); } @@ -4414,9 +4497,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 getFeedPostsStatsAsync(tenantId, postIds, sso, _callback); } } @@ -4432,6 +4516,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetFeedPostsStatsRequest getFeedPostsStats(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull List postIds) { @@ -4503,16 +4588,16 @@ private okhttp3.Call getGifLargeValidateBeforeCall(@javax.annotation.Nonnull Str } - private ApiResponse getGifLargeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String largeInternalURLSanitized) throws ApiException { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -4539,6 +4624,7 @@ private APIgetGifLargeRequest(@javax.annotation.Nonnull String tenantId, @javax. Status Code Description Response Headers 200 Ok - 422 Validation Failed - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -4547,7 +4633,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getGifLarge request - * @return GetGifLargeResponse + * @return GifGetLargeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4555,16 +4641,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { +
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public GetGifLargeResponse execute() throws ApiException { - ApiResponse localVarResp = getGifLargeWithHttpInfo(tenantId, largeInternalURLSanitized); + public GifGetLargeResponse execute() throws ApiException { + ApiResponse localVarResp = getGifLargeWithHttpInfo(tenantId, largeInternalURLSanitized); return localVarResp.getData(); } /** * Execute getGifLarge request with HTTP info returned - * @return ApiResponse<GetGifLargeResponse> + * @return ApiResponse<GifGetLargeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4572,9 +4659,10 @@ public GetGifLargeResponse execute() throws ApiException { +
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getGifLargeWithHttpInfo(tenantId, largeInternalURLSanitized); } @@ -4589,9 +4677,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio Status Code Description Response Headers 200 Ok - 422 Validation Failed - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getGifLargeAsync(tenantId, largeInternalURLSanitized, _callback); } } @@ -4608,6 +4697,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac 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) { @@ -4763,6 +4853,7 @@ public APIgetGifsSearchRequest page(@javax.annotation.Nullable Double page) { Status Code Description Response Headers 200 Ok - 422 Validation Failed - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -4779,6 +4870,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Status Code Description Response Headers 200 Ok - 422 Validation Failed - + 0 Error - */ public GetGifsSearchResponse execute() throws ApiException { @@ -4796,6 +4888,7 @@ public GetGifsSearchResponse execute() throws ApiException { Status Code Description Response Headers 200 Ok - 422 Validation Failed - + 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -4813,6 +4906,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Status Code Description Response Headers 200 Ok - 422 Validation Failed - + 0 Error - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { @@ -4832,6 +4926,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb 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) { @@ -5131,16 +5226,16 @@ private okhttp3.Call getGlobalEventLogValidateBeforeCall(@javax.annotation.Nonnu } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5184,6 +5279,7 @@ public APIgetGlobalEventLogRequest endTime(@javax.annotation.Nullable Long endTi Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5192,32 +5288,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getGlobalEventLog request - * @return GetGlobalEventLogResponse + * @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 GetGlobalEventLogResponse execute() throws ApiException { - ApiResponse localVarResp = getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); + 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<GetGlobalEventLogResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); } @@ -5231,9 +5329,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 getGlobalEventLogAsync(tenantId, urlId, userIdWS, startTime, endTime, _callback); } } @@ -5251,6 +5350,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c 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) { @@ -5330,16 +5430,16 @@ private okhttp3.Call getOfflineUsersValidateBeforeCall(@javax.annotation.Nonnull } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5391,6 +5491,7 @@ public APIgetOfflineUsersRequest afterUserId(@javax.annotation.Nullable String a 200 Ok - 403 Forbidden - 422 Validation Failed - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5399,7 +5500,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getOfflineUsers request - * @return GetOfflineUsersResponse + * @return PageUsersOfflineResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5408,16 +5509,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { +
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
*/ - public GetOfflineUsersResponse execute() throws ApiException { - ApiResponse localVarResp = getOfflineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); + public PageUsersOfflineResponse execute() throws ApiException { + ApiResponse localVarResp = getOfflineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); return localVarResp.getData(); } /** * Execute getOfflineUsers request with HTTP info returned - * @return ApiResponse<GetOfflineUsersResponse> + * @return ApiResponse<PageUsersOfflineResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5426,9 +5528,10 @@ public GetOfflineUsersResponse execute() throws ApiException { +
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getOfflineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); } @@ -5444,9 +5547,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 200 Ok - 403 Forbidden - 422 Validation Failed - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getOfflineUsersAsync(tenantId, urlId, afterName, afterUserId, _callback); } } @@ -5464,6 +5568,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal 200 Ok - 403 Forbidden - 422 Validation Failed - + 0 Error - */ public APIgetOfflineUsersRequest getOfflineUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -5543,16 +5648,16 @@ private okhttp3.Call getOnlineUsersValidateBeforeCall(@javax.annotation.Nonnull } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5604,6 +5709,7 @@ public APIgetOnlineUsersRequest afterUserId(@javax.annotation.Nullable String af 200 Ok - 403 Forbidden - 422 Validation Failed - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5612,7 +5718,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getOnlineUsers request - * @return GetOnlineUsersResponse + * @return PageUsersOnlineResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5621,16 +5727,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { +
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
*/ - public GetOnlineUsersResponse execute() throws ApiException { - ApiResponse localVarResp = getOnlineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); + public PageUsersOnlineResponse execute() throws ApiException { + ApiResponse localVarResp = getOnlineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); return localVarResp.getData(); } /** * Execute getOnlineUsers request with HTTP info returned - * @return ApiResponse<GetOnlineUsersResponse> + * @return ApiResponse<PageUsersOnlineResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5639,9 +5746,10 @@ public GetOnlineUsersResponse execute() throws ApiException { +
200 Ok -
403 Forbidden -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getOnlineUsersWithHttpInfo(tenantId, urlId, afterName, afterUserId); } @@ -5657,9 +5765,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep 200 Ok - 403 Forbidden - 422 Validation Failed - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getOnlineUsersAsync(tenantId, urlId, afterName, afterUserId, _callback); } } @@ -5677,6 +5786,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call 200 Ok - 403 Forbidden - 422 Validation Failed - + 0 Error - */ public APIgetOnlineUsersRequest getOnlineUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -5759,16 +5869,16 @@ private okhttp3.Call getPagesPublicValidateBeforeCall(@javax.annotation.Nonnull } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5851,6 +5961,7 @@ public APIgetPagesPublicRequest hasComments(@javax.annotation.Nullable Boolean h Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -5859,32 +5970,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getPagesPublic request - * @return GetPagesPublicResponse + * @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 GetPagesPublicResponse execute() throws ApiException { - ApiResponse localVarResp = getPagesPublicWithHttpInfo(tenantId, cursor, limit, q, sortBy, hasComments); + public GetPublicPagesResponse execute() throws ApiException { + ApiResponse localVarResp = getPagesPublicWithHttpInfo(tenantId, cursor, limit, q, sortBy, hasComments); return localVarResp.getData(); } /** * Execute getPagesPublic request with HTTP info returned - * @return ApiResponse<GetPagesPublicResponse> + * @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 ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getPagesPublicWithHttpInfo(tenantId, cursor, limit, q, sortBy, hasComments); } @@ -5898,9 +6011,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 getPagesPublicAsync(tenantId, cursor, limit, q, sortBy, hasComments, _callback); } } @@ -5915,6 +6029,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetPagesPublicRequest getPagesPublic(@javax.annotation.Nonnull String tenantId) { @@ -5991,16 +6106,16 @@ private okhttp3.Call getTranslationsValidateBeforeCall(@javax.annotation.Nonnull } - 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 { + 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(); + 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6052,6 +6167,7 @@ public APIgetTranslationsRequest useFullTranslationIds(@javax.annotation.Nullabl 200 Ok - 422 Validation Failed - 500 Internal - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6060,7 +6176,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getTranslations request - * @return GetTranslationsResponse1 + * @return GetTranslationsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6069,16 +6185,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { +
200 Ok -
422 Validation Failed -
500 Internal -
0 Error -
*/ - public GetTranslationsResponse1 execute() throws ApiException { - ApiResponse localVarResp = getTranslationsWithHttpInfo(namespace, component, locale, useFullTranslationIds); + public GetTranslationsResponse execute() throws ApiException { + ApiResponse localVarResp = getTranslationsWithHttpInfo(namespace, component, locale, useFullTranslationIds); return localVarResp.getData(); } /** * Execute getTranslations request with HTTP info returned - * @return ApiResponse<GetTranslationsResponse1> + * @return ApiResponse<GetTranslationsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6087,9 +6204,10 @@ public GetTranslationsResponse1 execute() throws ApiException { +
200 Ok -
422 Validation Failed -
500 Internal -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getTranslationsWithHttpInfo(namespace, component, locale, useFullTranslationIds); } @@ -6105,9 +6223,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExc 200 Ok - 422 Validation Failed - 500 Internal - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTranslationsAsync(namespace, component, locale, useFullTranslationIds, _callback); } } @@ -6125,6 +6244,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca 200 Ok - 422 Validation Failed - 500 Internal - + 0 Error - */ public APIgetTranslationsRequest getTranslations(@javax.annotation.Nonnull String namespace, @javax.annotation.Nonnull String component) { @@ -6194,16 +6314,16 @@ private okhttp3.Call getUserNotificationCountValidateBeforeCall(@javax.annotatio } - private ApiResponse getUserNotificationCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + 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(); + 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 getUserNotificationCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserNotificationCountValidateBeforeCall(tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6238,6 +6358,7 @@ public APIgetUserNotificationCountRequest 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 { @@ -6246,32 +6367,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserNotificationCount request - * @return GetUserNotificationCountResponse1 + * @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 GetUserNotificationCountResponse1 execute() throws ApiException { - ApiResponse localVarResp = getUserNotificationCountWithHttpInfo(tenantId, sso); + public GetUserNotificationCountResponse execute() throws ApiException { + ApiResponse localVarResp = getUserNotificationCountWithHttpInfo(tenantId, sso); return localVarResp.getData(); } /** * Execute getUserNotificationCount request with HTTP info returned - * @return ApiResponse<GetUserNotificationCountResponse1> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserNotificationCountWithHttpInfo(tenantId, sso); } @@ -6285,9 +6408,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 getUserNotificationCountAsync(tenantId, sso, _callback); } } @@ -6302,6 +6426,7 @@ public okhttp3.Call executeAsync(final ApiCallbackResponse Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetUserNotificationCountRequest getUserNotificationCount(@javax.annotation.Nonnull String tenantId) { @@ -6411,16 +6536,16 @@ private okhttp3.Call getUserNotificationsValidateBeforeCall(@javax.annotation.No } - 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 { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - 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 { + 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 = getUserNotificationsValidateBeforeCall(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6575,6 +6700,7 @@ 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 { @@ -6583,32 +6709,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserNotifications request - * @return GetUserNotificationsResponse + * @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 GetUserNotificationsResponse execute() throws ApiException { - ApiResponse localVarResp = getUserNotificationsWithHttpInfo(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso); + public GetMyNotificationsResponse execute() throws ApiException { + ApiResponse localVarResp = getUserNotificationsWithHttpInfo(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso); return localVarResp.getData(); } /** * Execute getUserNotifications request with HTTP info returned - * @return ApiResponse<GetUserNotificationsResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserNotificationsWithHttpInfo(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso); } @@ -6622,9 +6750,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 getUserNotificationsAsync(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso, _callback); } } @@ -6639,6 +6768,7 @@ 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) { @@ -6722,16 +6852,16 @@ private okhttp3.Call getUserPresenceStatusesValidateBeforeCall(@javax.annotation } - private ApiResponse getUserPresenceStatusesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds) throws ApiException { + 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(); + 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 getUserPresenceStatusesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlIdWS, @javax.annotation.Nonnull String userIds, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserPresenceStatusesValidateBeforeCall(tenantId, urlIdWS, userIds, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6761,6 +6891,7 @@ private APIgetUserPresenceStatusesRequest(@javax.annotation.Nonnull String tenan Status Code Description Response Headers 200 Ok - 422 Validation Failed - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -6769,7 +6900,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserPresenceStatuses request - * @return GetUserPresenceStatusesResponse1 + * @return GetUserPresenceStatusesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6777,16 +6908,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { +
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public GetUserPresenceStatusesResponse1 execute() throws ApiException { - ApiResponse localVarResp = getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds); + public GetUserPresenceStatusesResponse execute() throws ApiException { + ApiResponse localVarResp = getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds); return localVarResp.getData(); } /** * Execute getUserPresenceStatuses request with HTTP info returned - * @return ApiResponse<GetUserPresenceStatusesResponse1> + * @return ApiResponse<GetUserPresenceStatusesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6794,9 +6926,10 @@ public GetUserPresenceStatusesResponse1 execute() throws ApiException { +
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds); } @@ -6811,9 +6944,10 @@ public ApiResponse executeWithHttpInfo() throw Status Code Description Response Headers 200 Ok - 422 Validation Failed - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getUserPresenceStatusesAsync(tenantId, urlIdWS, userIds, _callback); } } @@ -6831,6 +6965,7 @@ public okhttp3.Call executeAsync(final ApiCallback 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) { @@ -6901,16 +7036,16 @@ private okhttp3.Call getUserReactsPublicValidateBeforeCall(@javax.annotation.Non } - private ApiResponse getUserReactsPublicWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso) throws ApiException { + 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(); + 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 getUserReactsPublicAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable List postIds, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserReactsPublicValidateBeforeCall(tenantId, postIds, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -6957,6 +7092,7 @@ 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 { @@ -6965,32 +7101,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUserReactsPublic request - * @return GetUserReactsPublicResponse + * @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 GetUserReactsPublicResponse execute() throws ApiException { - ApiResponse localVarResp = getUserReactsPublicWithHttpInfo(tenantId, postIds, sso); + public UserReactsResponse execute() throws ApiException { + ApiResponse localVarResp = getUserReactsPublicWithHttpInfo(tenantId, postIds, sso); return localVarResp.getData(); } /** * Execute getUserReactsPublic request with HTTP info returned - * @return ApiResponse<GetUserReactsPublicResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUserReactsPublicWithHttpInfo(tenantId, postIds, sso); } @@ -7004,9 +7142,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 getUserReactsPublicAsync(tenantId, postIds, sso, _callback); } } @@ -7021,6 +7160,7 @@ 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) { @@ -7092,16 +7232,16 @@ private okhttp3.Call getUsersInfoValidateBeforeCall(@javax.annotation.Nonnull St } - private ApiResponse getUsersInfoWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUsersInfoAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids, 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 = getUsersInfoValidateBeforeCall(tenantId, ids, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7128,6 +7268,7 @@ private APIgetUsersInfoRequest(@javax.annotation.Nonnull String tenantId, @javax Status Code Description Response Headers 200 Ok - 422 Validation Failed - + 0 Error - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -7136,7 +7277,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getUsersInfo request - * @return GetUsersInfoResponse + * @return PageUsersInfoResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7144,16 +7285,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { +
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public GetUsersInfoResponse execute() throws ApiException { - ApiResponse localVarResp = getUsersInfoWithHttpInfo(tenantId, ids); + public PageUsersInfoResponse execute() throws ApiException { + ApiResponse localVarResp = getUsersInfoWithHttpInfo(tenantId, ids); return localVarResp.getData(); } /** * Execute getUsersInfo request with HTTP info returned - * @return ApiResponse<GetUsersInfoResponse> + * @return ApiResponse<PageUsersInfoResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7161,9 +7303,10 @@ public GetUsersInfoResponse execute() throws ApiException { +
Status Code Description Response Headers
200 Ok -
422 Validation Failed -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getUsersInfoWithHttpInfo(tenantId, ids); } @@ -7178,9 +7321,10 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti Status Code Description Response Headers 200 Ok - 422 Validation Failed - + 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getUsersInfoAsync(tenantId, ids, _callback); } } @@ -7197,6 +7341,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Status Code Description Response Headers 200 Ok - 422 Validation Failed - + 0 Error - */ public APIgetUsersInfoRequest getUsersInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String ids) { @@ -7268,16 +7413,16 @@ private okhttp3.Call getV1PageLikesValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse getV1PageLikesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getV1PageLikesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, 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 = getV1PageLikesValidateBeforeCall(tenantId, urlId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7303,6 +7448,7 @@ private APIgetV1PageLikesRequest(@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 { @@ -7311,32 +7457,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getV1PageLikes request - * @return GetV1PageLikesResponse + * @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 GetV1PageLikesResponse execute() throws ApiException { - ApiResponse localVarResp = getV1PageLikesWithHttpInfo(tenantId, urlId); + public GetV1PageLikes execute() throws ApiException { + ApiResponse localVarResp = getV1PageLikesWithHttpInfo(tenantId, urlId); return localVarResp.getData(); } /** * Execute getV1PageLikes request with HTTP info returned - * @return ApiResponse<GetV1PageLikesResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getV1PageLikesWithHttpInfo(tenantId, urlId); } @@ -7350,9 +7498,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 getV1PageLikesAsync(tenantId, urlId, _callback); } } @@ -7368,6 +7517,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetV1PageLikesRequest getV1PageLikes(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -7448,16 +7598,16 @@ private okhttp3.Call getV2PageReactUsersValidateBeforeCall(@javax.annotation.Non } - private ApiResponse getV2PageReactUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getV2PageReactUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id, 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 = getV2PageReactUsersValidateBeforeCall(tenantId, urlId, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7486,6 +7636,7 @@ private APIgetV2PageReactUsersRequest(@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 { @@ -7494,32 +7645,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getV2PageReactUsers request - * @return GetV2PageReactUsersResponse1 + * @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 -
0 Error -
*/ - public GetV2PageReactUsersResponse1 execute() throws ApiException { - ApiResponse localVarResp = getV2PageReactUsersWithHttpInfo(tenantId, urlId, id); + public GetV2PageReactUsersResponse execute() throws ApiException { + ApiResponse localVarResp = getV2PageReactUsersWithHttpInfo(tenantId, urlId, id); return localVarResp.getData(); } /** * Execute getV2PageReactUsers request with HTTP info returned - * @return ApiResponse<GetV2PageReactUsersResponse1> + * @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 -
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return getV2PageReactUsersWithHttpInfo(tenantId, urlId, id); } @@ -7533,9 +7686,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 getV2PageReactUsersAsync(tenantId, urlId, id, _callback); } } @@ -7552,6 +7706,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetV2PageReactUsersRequest getV2PageReactUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nonnull String id) { @@ -7623,16 +7778,16 @@ private okhttp3.Call getV2PageReactsValidateBeforeCall(@javax.annotation.Nonnull } - private ApiResponse getV2PageReactsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getV2PageReactsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, 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 = getV2PageReactsValidateBeforeCall(tenantId, urlId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -7658,6 +7813,7 @@ private APIgetV2PageReactsRequest(@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 { @@ -7666,32 +7822,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute getV2PageReacts request - * @return GetV2PageReactsResponse + * @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 GetV2PageReactsResponse execute() throws ApiException { - ApiResponse localVarResp = getV2PageReactsWithHttpInfo(tenantId, urlId); + public GetV2PageReacts execute() throws ApiException { + ApiResponse localVarResp = getV2PageReactsWithHttpInfo(tenantId, urlId); return localVarResp.getData(); } /** * Execute getV2PageReacts request with HTTP info returned - * @return ApiResponse<GetV2PageReactsResponse> + * @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 { + public ApiResponse executeWithHttpInfo() throws ApiException { return getV2PageReactsWithHttpInfo(tenantId, urlId); } @@ -7705,9 +7863,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 getV2PageReactsAsync(tenantId, urlId, _callback); } } @@ -7723,6 +7882,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIgetV2PageReactsRequest getV2PageReacts(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -7804,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; } @@ -7854,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 { @@ -7862,32 +8023,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute lockComment request - * @return LockCommentResponse + * @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 LockCommentResponse 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<LockCommentResponse> + * @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); } @@ -7901,9 +8064,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 lockCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -7920,6 +8084,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac 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) { @@ -8149,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; } @@ -8199,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 { @@ -8207,32 +8373,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute pinComment request - * @return PinCommentResponse + * @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 PinCommentResponse 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<PinCommentResponse> + * @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); } @@ -8246,9 +8414,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 pinCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -8265,6 +8434,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback 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) { @@ -8351,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; } @@ -8425,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 { @@ -8433,32 +8604,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute reactFeedPostPublic request - * @return ReactFeedPostPublicResponse + * @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 ReactFeedPostPublicResponse 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<ReactFeedPostPublicResponse> + * @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); } @@ -8472,9 +8645,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 reactFeedPostPublicAsync(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso, _callback); } } @@ -8491,6 +8665,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response 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) { @@ -8560,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; } @@ -8604,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 { @@ -8612,32 +8788,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute resetUserNotificationCount request - * @return ResetUserNotificationCountResponse + * @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 ResetUserNotificationCountResponse 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<ResetUserNotificationCountResponse> + * @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); } @@ -8651,9 +8829,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 resetUserNotificationCountAsync(tenantId, sso, _callback); } } @@ -8668,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) { @@ -8757,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; } @@ -8861,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 { @@ -8869,32 +9050,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute resetUserNotifications request - * @return ResetUserNotificationsResponse1 + * @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 ResetUserNotificationsResponse1 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<ResetUserNotificationsResponse1> + * @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); } @@ -8908,9 +9091,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 resetUserNotificationsAsync(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso, _callback); } } @@ -8925,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) { @@ -9012,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; } @@ -9095,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 { @@ -9103,32 +9289,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute searchUsers request - * @return SearchUsersResponse1 + * @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 SearchUsersResponse1 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<SearchUsersResponse1> + * @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); } @@ -9142,9 +9330,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 searchUsersAsync(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection, _callback); } } @@ -9160,6 +9349,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public APIsearchUsersRequest searchUsers(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { @@ -9251,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; } @@ -9316,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 { @@ -9324,32 +9515,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute setCommentText request - * @return SetCommentTextResponse1 + * @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 SetCommentTextResponse1 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<SetCommentTextResponse1> + * @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); } @@ -9363,9 +9556,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 setCommentTextAsync(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso, _callback); } } @@ -9383,6 +9577,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal 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) { @@ -9464,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; } @@ -9514,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 { @@ -9522,32 +9718,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unBlockCommentPublic request - * @return UnBlockCommentPublicResponse + * @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 UnBlockCommentPublicResponse 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<UnBlockCommentPublicResponse> + * @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); } @@ -9561,9 +9759,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 unBlockCommentPublicAsync(tenantId, commentId, publicBlockFromCommentParams, sso, _callback); } } @@ -9580,6 +9779,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response 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) { @@ -9661,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; } @@ -9711,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 { @@ -9719,32 +9920,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unLockComment request - * @return UnLockCommentResponse + * @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 UnLockCommentResponse 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<UnLockCommentResponse> + * @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); } @@ -9758,9 +9961,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 unLockCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -9777,6 +9981,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb 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) { @@ -9858,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; } @@ -9908,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 { @@ -9916,32 +10122,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute unPinComment request - * @return UnPinCommentResponse + * @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 UnPinCommentResponse 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<UnPinCommentResponse> + * @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); } @@ -9955,9 +10163,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 unPinCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } @@ -9974,6 +10183,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba 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) { @@ -10056,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; } @@ -10118,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 { @@ -10126,32 +10337,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute updateFeedPostPublic request - * @return UpdateFeedPostPublicResponse + * @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 UpdateFeedPostPublicResponse 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<UpdateFeedPostPublicResponse> + * @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); } @@ -10165,9 +10378,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 updateFeedPostPublicAsync(tenantId, postId, updateFeedPostParams, broadcastId, sso, _callback); } } @@ -10184,6 +10398,7 @@ public okhttp3.Call executeAsync(final ApiCallback Response 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) { @@ -10327,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 { @@ -10342,6 +10558,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public UpdateUserNotificationCommentSubscriptionStatusResponse execute() throws ApiException { @@ -10358,6 +10575,7 @@ public UpdateUserNotificationCommentSubscriptionStatusResponse execute() throws Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -10374,6 +10592,7 @@ public ApiResponse exec Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { @@ -10394,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) { @@ -10552,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 { @@ -10567,6 +10788,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public UpdateUserNotificationPageSubscriptionStatusResponse execute() throws ApiException { @@ -10583,6 +10805,7 @@ public UpdateUserNotificationPageSubscriptionStatusResponse execute() throws Api Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -10599,6 +10822,7 @@ public ApiResponse execute Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { @@ -10620,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) { @@ -10751,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 { @@ -10766,6 +10992,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public UpdateUserNotificationStatusResponse execute() throws ApiException { @@ -10782,6 +11009,7 @@ public UpdateUserNotificationStatusResponse execute() throws ApiException { Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -10798,6 +11026,7 @@ public ApiResponse executeWithHttpInfo() t Response Details Status Code Description Response Headers 200 Ok - + 0 Error - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { @@ -10817,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) { @@ -11121,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; } @@ -11189,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 { @@ -11197,32 +11428,34 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { /** * Execute voteComment request - * @return VoteCommentResponse + * @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 VoteCommentResponse 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<VoteCommentResponse> + * @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); } @@ -11236,9 +11469,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 voteCommentAsync(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso, _callback); } } @@ -11257,6 +11491,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac 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/JSON.java b/client/src/main/java/com/fastcomments/invoker/JSON.java index e9eaaf35..efd3c5bf 100644 --- a/client/src/main/java/com/fastcomments/invoker/JSON.java +++ b/client/src/main/java/com/fastcomments/invoker/JSON.java @@ -130,14 +130,11 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddDomainConfigParams.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddDomainConfigResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddDomainConfigResponseAnyOf.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddHashTagResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddHashTagsBulkResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddPageAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.AddSSOUserAPIResponse.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.AggregateQuestionResultsResponse1.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()); @@ -154,15 +151,12 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.BlockFromCommentPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BlockSuccess.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BlockUserFromCommentResponse.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.BulkAggregateQuestionResultsRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkAggregateQuestionResultsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.BulkAggregateQuestionResultsResponse1.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()); @@ -172,10 +166,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeCommentPinStatusResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeTicketStateBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeTicketStateResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ChangeTicketStateResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CheckBlockedCommentsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CheckedCommentsForBlockedResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CombineCommentsWithQuestionResultsResponse.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()); @@ -189,74 +180,39 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.CreateCommentPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateEmailTemplateBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateEmailTemplateResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateEmailTemplateResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateFeedPostResponse1.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.CreateModeratorBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateModeratorResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateModeratorResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionConfigBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionConfigResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionConfigResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionResultBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionResultResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateQuestionResultResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateSubscriptionAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantPackageBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantPackageResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantPackageResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantUserBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTenantUserResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTicketBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTicketResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateTicketResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateUserBadgeParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateUserBadgeResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateV1PageReact.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateV1PageReactResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateV2PageReactResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CreateVoteResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CustomConfigParameters.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.CustomEmailTemplate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteCommentPublicResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteCommentResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteCommentVoteResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteDomainConfigResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteEmailTemplateRenderErrorResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteEmailTemplateResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteFeedPostPublicResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteFeedPostPublicResponseAnyOf.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteHashTagRequestBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteHashTagResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteModerationVoteResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteModeratorResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteNotificationCountResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeletePageAPIResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeletePendingWebhookEventResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteQuestionConfigResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteQuestionResultResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteSSOUserAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteSubscriptionAPIResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteTenantPackageResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteTenantResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteTenantUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteUserBadgeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteV1PageReactResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteV2PageReactResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeleteVoteResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.DeletedCommentResultComment.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.EmailTemplateDefinition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.EmailTemplateRenderErrorResponse.CustomTypeAdapterFactory()); @@ -271,154 +227,72 @@ 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.FlagCommentPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.FlagCommentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.FlagCommentResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetApiCommentsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetApiExportStatusResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetApiIdsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetAuditLogsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetAuditLogsResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetBanUsersFromCommentResponse.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.GetCachedNotificationCountResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentBanStatusResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentBanStatusResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentChildrenResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentTextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentTextResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentVoteUserNamesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentVoteUserNamesSuccessResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsForUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsForUserResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsPublicResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsResponsePublicComment.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCommentsResponseWithPresencePublicComment.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCountResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetCountsResponse.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.GetEmailTemplateDefinitionsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateRenderErrorsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateRenderErrorsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplateResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplatesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEmailTemplatesResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEventLogResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetEventLogResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPostsPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPostsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPostsResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetFeedPostsStatsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetGifLargeResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetGifsSearchResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetGifsTrendingResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetGlobalEventLogResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetHashTagsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetHashTagsResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetLogsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetManualBadgesForUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetManualBadgesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModerationCommentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModerationCommentTextResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModeratorResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModeratorResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModeratorsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetModeratorsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetMyNotificationsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotificationCountResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotificationCountResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotificationsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetNotificationsResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetOfflineUsersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetOnlineUsersResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPageByURLIdAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPagesAPIResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPagesPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEventCountResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEventCountResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEventsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPendingWebhookEventsResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPreBanSummaryResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPublicFeedPostsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetPublicPagesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfigResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfigResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfigsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionConfigsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResultResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResultResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResultsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetQuestionResultsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSSOUserByEmailAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSSOUserByIdAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSSOUsersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSearchCommentsSummaryResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSearchPagesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSearchSitesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSearchSuggestResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSearchUsersResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetSubscriptionsAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantDailyUsagesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantDailyUsagesResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantManualBadgesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackageResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackageResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackagesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantPackagesResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUserResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUsersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantUsersResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTenantsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTicketResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTicketResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTicketsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTicketsResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTranslationsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTranslationsResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetTrustFactorResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgeProgressByIdResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgeProgressByUserIdResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgeProgressListResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBadgesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserBanPreferenceResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserInternalProfileResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserInternalProfileResponse1.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.GetUserNotificationCountResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserNotificationsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserPresenceStatusesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserPresenceStatusesResponse1.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserReactsPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUserTrustFactorResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetUsersInfoResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV1PageLikes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV1PageLikesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV2PageReactUsersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV2PageReactUsersResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV2PageReacts.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetV2PageReactsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotesForUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotesForUserResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.GetVotesResponse1.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()); @@ -428,7 +302,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.LockCommentResponse.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()); @@ -458,26 +331,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PageUsersOnlineResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchDomainConfigParams.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchDomainConfigResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchHashTagResponse.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.PinCommentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostAdjustCommentVotesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostApiExportResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostBanUserFromCommentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostBanUserUndoResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostBulkPreBanSummaryResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostCommentsByIdsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostFlagCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostRemoveCommentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostRestoreDeletedCommentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostSetCommentApprovalStatusResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostSetCommentReviewStatusResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostSetCommentSpamStatusResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostSetCommentTextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostUnFlagCommentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostVoteResponse.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()); @@ -491,11 +348,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.PutAwardBadgeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PutCloseThreadResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PutDomainConfigResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PutRemoveBadgeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PutReopenThreadResponse.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()); @@ -505,81 +358,52 @@ 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.ReactFeedPostPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReactFeedPostResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RecordStringBeforeStringOrNullAfterStringOrNullValue.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.RenderEmailTemplateResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.RenderableUserNotification.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReplaceTenantPackageBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReplaceTenantPackageResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReplaceTenantUserBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ReplaceTenantUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ResetUserNotificationCountResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ResetUserNotificationsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.ResetUserNotificationsResponse1.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.SearchUsersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SearchUsersResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SearchUsersResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SearchUsersSectionedResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SendInviteResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SendLoginLinkResponse.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.SetCommentTextResponse1.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SetCommentTextResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.SetTrustFactorResponse.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.UnBlockCommentPublicResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnBlockFromCommentParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnBlockUserFromCommentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnFlagCommentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnLockCommentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnPinCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UnblockSuccess.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdatableCommentParams.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateAPIPageData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateAPISSOUserData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateAPIUserSubscriptionData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateCommentResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateDomainConfigParams.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateEmailTemplateBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateEmailTemplateResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateFeedPostParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateFeedPostPublicResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateFeedPostResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateHashTagBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateHashTagResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateModeratorBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateModeratorResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateNotificationBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateNotificationResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateQuestionConfigBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateQuestionConfigResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateQuestionResultBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateQuestionResultResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateSubscriptionAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantPackageBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantPackageResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantUserBody.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateTenantUserResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateUserBadgeParams.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.UpdateUserBadgeResponse.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()); @@ -596,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.VoteCommentResponse.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/model/AddHashTagResponse.java b/client/src/main/java/com/fastcomments/model/AddHashTagResponse.java deleted file mode 100644 index e68a2844..00000000 --- a/client/src/main/java/com/fastcomments/model/AddHashTagResponse.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.CreateHashTagResponse; -import com.fastcomments.model.CustomConfigParameters; -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.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 AddHashTagResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AddHashTagResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddHashTagResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddHashTagResponse' 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() { - @Override - public void write(JsonWriter out, AddHashTagResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateHashTagResponse` - if (value.getActualInstance() instanceof CreateHashTagResponse) { - JsonElement element = adapterCreateHashTagResponse.toJsonTree((CreateHashTagResponse)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, CreateHashTagResponse"); - } - - @Override - public AddHashTagResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateHashTagResponse - try { - // validate the JSON object to see if any exception is thrown - CreateHashTagResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCreateHashTagResponse; - AddHashTagResponse ret = new AddHashTagResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateHashTagResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateHashTagResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - AddHashTagResponse ret = new AddHashTagResponse(); - 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 AddHashTagResponse: 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 AddHashTagResponse() { - super("anyOf", Boolean.FALSE); - } - - public AddHashTagResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateHashTagResponse", CreateHashTagResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return AddHashTagResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateHashTagResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateHashTagResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateHashTagResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateHashTagResponse - * - * @return The actual instance (APIError, CreateHashTagResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateHashTagResponse`. If the actual instance is not `CreateHashTagResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateHashTagResponse` - * @throws ClassCastException if the instance is not `CreateHashTagResponse` - */ - public CreateHashTagResponse getCreateHashTagResponse() throws ClassCastException { - return (CreateHashTagResponse)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 AddHashTagResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateHashTagResponse - try { - CreateHashTagResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateHashTagResponse 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 AddHashTagResponse 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 AddHashTagResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of AddHashTagResponse - * @throws IOException if the JSON string is invalid with respect to AddHashTagResponse - */ - public static AddHashTagResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AddHashTagResponse.class); - } - - /** - * Convert an instance of AddHashTagResponse 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/AddHashTagsBulkResponse.java b/client/src/main/java/com/fastcomments/model/AddHashTagsBulkResponse.java deleted file mode 100644 index b41de5c7..00000000 --- a/client/src/main/java/com/fastcomments/model/AddHashTagsBulkResponse.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.BulkCreateHashTagsResponse; -import com.fastcomments.model.BulkCreateHashTagsResponseResultsInner; -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.23.0-SNAPSHOT") -public class AddHashTagsBulkResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AddHashTagsBulkResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddHashTagsBulkResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddHashTagsBulkResponse' 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, AddHashTagsBulkResponse 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 AddHashTagsBulkResponse 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; - AddHashTagsBulkResponse ret = new AddHashTagsBulkResponse(); - 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; - AddHashTagsBulkResponse ret = new AddHashTagsBulkResponse(); - 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 AddHashTagsBulkResponse: 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 AddHashTagsBulkResponse() { - super("anyOf", Boolean.FALSE); - } - - public AddHashTagsBulkResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BulkCreateHashTagsResponse", BulkCreateHashTagsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return AddHashTagsBulkResponse.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 AddHashTagsBulkResponse - */ - 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 AddHashTagsBulkResponse 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 AddHashTagsBulkResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of AddHashTagsBulkResponse - * @throws IOException if the JSON string is invalid with respect to AddHashTagsBulkResponse - */ - public static AddHashTagsBulkResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AddHashTagsBulkResponse.class); - } - - /** - * Convert an instance of AddHashTagsBulkResponse 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/AggregateQuestionResultsResponse1.java b/client/src/main/java/com/fastcomments/model/AggregateQuestionResultsResponse1.java deleted file mode 100644 index 737adc9e..00000000 --- a/client/src/main/java/com/fastcomments/model/AggregateQuestionResultsResponse1.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.23.0-SNAPSHOT") -public class AggregateQuestionResultsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AggregateQuestionResultsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AggregateQuestionResultsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AggregateQuestionResultsResponse1' 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, AggregateQuestionResultsResponse1 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 AggregateQuestionResultsResponse1 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; - AggregateQuestionResultsResponse1 ret = new AggregateQuestionResultsResponse1(); - 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; - AggregateQuestionResultsResponse1 ret = new AggregateQuestionResultsResponse1(); - 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 AggregateQuestionResultsResponse1: 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 AggregateQuestionResultsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public AggregateQuestionResultsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AggregateQuestionResultsResponse", AggregateQuestionResultsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return AggregateQuestionResultsResponse1.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 AggregateQuestionResultsResponse1 - */ - 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 AggregateQuestionResultsResponse1 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 AggregateQuestionResultsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of AggregateQuestionResultsResponse1 - * @throws IOException if the JSON string is invalid with respect to AggregateQuestionResultsResponse1 - */ - public static AggregateQuestionResultsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AggregateQuestionResultsResponse1.class); - } - - /** - * Convert an instance of AggregateQuestionResultsResponse1 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/BlockFromCommentPublicResponse.java b/client/src/main/java/com/fastcomments/model/BlockFromCommentPublicResponse.java deleted file mode 100644 index e6a95200..00000000 --- a/client/src/main/java/com/fastcomments/model/BlockFromCommentPublicResponse.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.23.0-SNAPSHOT") -public class BlockFromCommentPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(BlockFromCommentPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!BlockFromCommentPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'BlockFromCommentPublicResponse' 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, BlockFromCommentPublicResponse 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 BlockFromCommentPublicResponse 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; - BlockFromCommentPublicResponse ret = new BlockFromCommentPublicResponse(); - 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; - BlockFromCommentPublicResponse ret = new BlockFromCommentPublicResponse(); - 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 BlockFromCommentPublicResponse: 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 BlockFromCommentPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public BlockFromCommentPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BlockSuccess", BlockSuccess.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return BlockFromCommentPublicResponse.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 BlockFromCommentPublicResponse - */ - 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 BlockFromCommentPublicResponse 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 BlockFromCommentPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of BlockFromCommentPublicResponse - * @throws IOException if the JSON string is invalid with respect to BlockFromCommentPublicResponse - */ - public static BlockFromCommentPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, BlockFromCommentPublicResponse.class); - } - - /** - * Convert an instance of BlockFromCommentPublicResponse 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/BlockUserFromCommentResponse.java b/client/src/main/java/com/fastcomments/model/BlockUserFromCommentResponse.java deleted file mode 100644 index 2235d6f9..00000000 --- a/client/src/main/java/com/fastcomments/model/BlockUserFromCommentResponse.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.23.0-SNAPSHOT") -public class BlockUserFromCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(BlockUserFromCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!BlockUserFromCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'BlockUserFromCommentResponse' 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, BlockUserFromCommentResponse 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 BlockUserFromCommentResponse 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; - BlockUserFromCommentResponse ret = new BlockUserFromCommentResponse(); - 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; - BlockUserFromCommentResponse ret = new BlockUserFromCommentResponse(); - 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 BlockUserFromCommentResponse: 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 BlockUserFromCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public BlockUserFromCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BlockSuccess", BlockSuccess.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return BlockUserFromCommentResponse.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 BlockUserFromCommentResponse - */ - 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 BlockUserFromCommentResponse 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 BlockUserFromCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of BlockUserFromCommentResponse - * @throws IOException if the JSON string is invalid with respect to BlockUserFromCommentResponse - */ - public static BlockUserFromCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, BlockUserFromCommentResponse.class); - } - - /** - * Convert an instance of BlockUserFromCommentResponse 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/BulkAggregateQuestionResultsResponse1.java b/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1.java deleted file mode 100644 index 4b04a2fc..00000000 --- a/client/src/main/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1.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.23.0-SNAPSHOT") -public class BulkAggregateQuestionResultsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(BulkAggregateQuestionResultsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!BulkAggregateQuestionResultsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'BulkAggregateQuestionResultsResponse1' 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, BulkAggregateQuestionResultsResponse1 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 BulkAggregateQuestionResultsResponse1 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; - BulkAggregateQuestionResultsResponse1 ret = new BulkAggregateQuestionResultsResponse1(); - 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; - BulkAggregateQuestionResultsResponse1 ret = new BulkAggregateQuestionResultsResponse1(); - 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 BulkAggregateQuestionResultsResponse1: 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 BulkAggregateQuestionResultsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public BulkAggregateQuestionResultsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BulkAggregateQuestionResultsResponse", BulkAggregateQuestionResultsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return BulkAggregateQuestionResultsResponse1.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 BulkAggregateQuestionResultsResponse1 - */ - 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 BulkAggregateQuestionResultsResponse1 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 BulkAggregateQuestionResultsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of BulkAggregateQuestionResultsResponse1 - * @throws IOException if the JSON string is invalid with respect to BulkAggregateQuestionResultsResponse1 - */ - public static BulkAggregateQuestionResultsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, BulkAggregateQuestionResultsResponse1.class); - } - - /** - * Convert an instance of BulkAggregateQuestionResultsResponse1 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/ChangeTicketStateResponse1.java b/client/src/main/java/com/fastcomments/model/ChangeTicketStateResponse1.java deleted file mode 100644 index 2e1bfcb5..00000000 --- a/client/src/main/java/com/fastcomments/model/ChangeTicketStateResponse1.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.23.0-SNAPSHOT") -public class ChangeTicketStateResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ChangeTicketStateResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ChangeTicketStateResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ChangeTicketStateResponse1' 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, ChangeTicketStateResponse1 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 ChangeTicketStateResponse1 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; - ChangeTicketStateResponse1 ret = new ChangeTicketStateResponse1(); - 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; - ChangeTicketStateResponse1 ret = new ChangeTicketStateResponse1(); - 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 ChangeTicketStateResponse1: 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 ChangeTicketStateResponse1() { - super("anyOf", Boolean.FALSE); - } - - public ChangeTicketStateResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ChangeTicketStateResponse", ChangeTicketStateResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return ChangeTicketStateResponse1.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 ChangeTicketStateResponse1 - */ - 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 ChangeTicketStateResponse1 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 ChangeTicketStateResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of ChangeTicketStateResponse1 - * @throws IOException if the JSON string is invalid with respect to ChangeTicketStateResponse1 - */ - public static ChangeTicketStateResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ChangeTicketStateResponse1.class); - } - - /** - * Convert an instance of ChangeTicketStateResponse1 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/CheckedCommentsForBlockedResponse.java b/client/src/main/java/com/fastcomments/model/CheckedCommentsForBlockedResponse.java deleted file mode 100644 index 939bbc18..00000000 --- a/client/src/main/java/com/fastcomments/model/CheckedCommentsForBlockedResponse.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.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 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 CheckedCommentsForBlockedResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CheckedCommentsForBlockedResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CheckedCommentsForBlockedResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CheckedCommentsForBlockedResponse' 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)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CheckedCommentsForBlockedResponse 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()); - 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, CheckBlockedCommentsResponse"); - } - - @Override - public CheckedCommentsForBlockedResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CheckBlockedCommentsResponse - try { - // validate the JSON object to see if any exception is thrown - CheckBlockedCommentsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterCheckBlockedCommentsResponse; - CheckedCommentsForBlockedResponse ret = new CheckedCommentsForBlockedResponse(); - 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); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CheckedCommentsForBlockedResponse ret = new CheckedCommentsForBlockedResponse(); - 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 CheckedCommentsForBlockedResponse: 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 CheckedCommentsForBlockedResponse() { - super("anyOf", Boolean.FALSE); - } - - public CheckedCommentsForBlockedResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CheckBlockedCommentsResponse", CheckBlockedCommentsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CheckedCommentsForBlockedResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CheckBlockedCommentsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CheckBlockedCommentsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CheckBlockedCommentsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CheckBlockedCommentsResponse - * - * @return The actual instance (APIError, CheckBlockedCommentsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CheckBlockedCommentsResponse`. If the actual instance is not `CheckBlockedCommentsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CheckBlockedCommentsResponse` - * @throws ClassCastException if the instance is not `CheckBlockedCommentsResponse` - */ - public CheckBlockedCommentsResponse getCheckBlockedCommentsResponse() throws ClassCastException { - return (CheckBlockedCommentsResponse)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 CheckedCommentsForBlockedResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CheckBlockedCommentsResponse - try { - CheckBlockedCommentsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CheckBlockedCommentsResponse 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 CheckedCommentsForBlockedResponse 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())); - } - - /** - * Create an instance of CheckedCommentsForBlockedResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CheckedCommentsForBlockedResponse - * @throws IOException if the JSON string is invalid with respect to CheckedCommentsForBlockedResponse - */ - public static CheckedCommentsForBlockedResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CheckedCommentsForBlockedResponse.class); - } - - /** - * Convert an instance of CheckedCommentsForBlockedResponse 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/CombineCommentsWithQuestionResultsResponse.java b/client/src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponse.java deleted file mode 100644 index 45276e5e..00000000 --- a/client/src/main/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponse.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.23.0-SNAPSHOT") -public class CombineCommentsWithQuestionResultsResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CombineCommentsWithQuestionResultsResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CombineCommentsWithQuestionResultsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CombineCommentsWithQuestionResultsResponse' 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, CombineCommentsWithQuestionResultsResponse 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 CombineCommentsWithQuestionResultsResponse 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; - CombineCommentsWithQuestionResultsResponse ret = new CombineCommentsWithQuestionResultsResponse(); - 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; - CombineCommentsWithQuestionResultsResponse ret = new CombineCommentsWithQuestionResultsResponse(); - 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 CombineCommentsWithQuestionResultsResponse: 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 CombineCommentsWithQuestionResultsResponse() { - super("anyOf", Boolean.FALSE); - } - - public CombineCommentsWithQuestionResultsResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CombineQuestionResultsWithCommentsResponse", CombineQuestionResultsWithCommentsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CombineCommentsWithQuestionResultsResponse.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 CombineCommentsWithQuestionResultsResponse - */ - 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 CombineCommentsWithQuestionResultsResponse 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 CombineCommentsWithQuestionResultsResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CombineCommentsWithQuestionResultsResponse - * @throws IOException if the JSON string is invalid with respect to CombineCommentsWithQuestionResultsResponse - */ - public static CombineCommentsWithQuestionResultsResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CombineCommentsWithQuestionResultsResponse.class); - } - - /** - * Convert an instance of CombineCommentsWithQuestionResultsResponse 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/CreateCommentPublicResponse.java b/client/src/main/java/com/fastcomments/model/CreateCommentPublicResponse.java deleted file mode 100644 index 2099f11b..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateCommentPublicResponse.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.23.0-SNAPSHOT") -public class CreateCommentPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateCommentPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateCommentPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateCommentPublicResponse' 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, CreateCommentPublicResponse 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 CreateCommentPublicResponse 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; - CreateCommentPublicResponse ret = new CreateCommentPublicResponse(); - 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; - CreateCommentPublicResponse ret = new CreateCommentPublicResponse(); - 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 CreateCommentPublicResponse: 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 CreateCommentPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public CreateCommentPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("SaveCommentsResponseWithPresence", SaveCommentsResponseWithPresence.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateCommentPublicResponse.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 CreateCommentPublicResponse - */ - 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 CreateCommentPublicResponse 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 CreateCommentPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateCommentPublicResponse - * @throws IOException if the JSON string is invalid with respect to CreateCommentPublicResponse - */ - public static CreateCommentPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateCommentPublicResponse.class); - } - - /** - * Convert an instance of CreateCommentPublicResponse 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/CreateEmailTemplateResponse1.java b/client/src/main/java/com/fastcomments/model/CreateEmailTemplateResponse1.java deleted file mode 100644 index f1b5d70e..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateEmailTemplateResponse1.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.23.0-SNAPSHOT") -public class CreateEmailTemplateResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateEmailTemplateResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateEmailTemplateResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateEmailTemplateResponse1' 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, CreateEmailTemplateResponse1 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 CreateEmailTemplateResponse1 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; - CreateEmailTemplateResponse1 ret = new CreateEmailTemplateResponse1(); - 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; - CreateEmailTemplateResponse1 ret = new CreateEmailTemplateResponse1(); - 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 CreateEmailTemplateResponse1: 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 CreateEmailTemplateResponse1() { - super("anyOf", Boolean.FALSE); - } - - public CreateEmailTemplateResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateEmailTemplateResponse", CreateEmailTemplateResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateEmailTemplateResponse1.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 CreateEmailTemplateResponse1 - */ - 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 CreateEmailTemplateResponse1 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 CreateEmailTemplateResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateEmailTemplateResponse1 - * @throws IOException if the JSON string is invalid with respect to CreateEmailTemplateResponse1 - */ - public static CreateEmailTemplateResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateEmailTemplateResponse1.class); - } - - /** - * Convert an instance of CreateEmailTemplateResponse1 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/CreateFeedPostPublicResponse.java b/client/src/main/java/com/fastcomments/model/CreateFeedPostPublicResponse.java deleted file mode 100644 index 63d1e459..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateFeedPostPublicResponse.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.23.0-SNAPSHOT") -public class CreateFeedPostPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateFeedPostPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateFeedPostPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateFeedPostPublicResponse' 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, CreateFeedPostPublicResponse 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 CreateFeedPostPublicResponse 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; - CreateFeedPostPublicResponse ret = new CreateFeedPostPublicResponse(); - 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; - CreateFeedPostPublicResponse ret = new CreateFeedPostPublicResponse(); - 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 CreateFeedPostPublicResponse: 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 CreateFeedPostPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public CreateFeedPostPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateFeedPostResponse", CreateFeedPostResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateFeedPostPublicResponse.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 CreateFeedPostPublicResponse - */ - 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 CreateFeedPostPublicResponse 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 CreateFeedPostPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateFeedPostPublicResponse - * @throws IOException if the JSON string is invalid with respect to CreateFeedPostPublicResponse - */ - public static CreateFeedPostPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateFeedPostPublicResponse.class); - } - - /** - * Convert an instance of CreateFeedPostPublicResponse 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/CreateFeedPostResponse1.java b/client/src/main/java/com/fastcomments/model/CreateFeedPostResponse1.java deleted file mode 100644 index 307f2252..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateFeedPostResponse1.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.23.0-SNAPSHOT") -public class CreateFeedPostResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateFeedPostResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateFeedPostResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateFeedPostResponse1' 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, CreateFeedPostResponse1 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 CreateFeedPostResponse1 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; - CreateFeedPostResponse1 ret = new CreateFeedPostResponse1(); - 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; - CreateFeedPostResponse1 ret = new CreateFeedPostResponse1(); - 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 CreateFeedPostResponse1: 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 CreateFeedPostResponse1() { - super("anyOf", Boolean.FALSE); - } - - public CreateFeedPostResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateFeedPostsResponse", CreateFeedPostsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateFeedPostResponse1.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 CreateFeedPostResponse1 - */ - 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 CreateFeedPostResponse1 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 CreateFeedPostResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateFeedPostResponse1 - * @throws IOException if the JSON string is invalid with respect to CreateFeedPostResponse1 - */ - public static CreateFeedPostResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateFeedPostResponse1.class); - } - - /** - * Convert an instance of CreateFeedPostResponse1 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/CreateModeratorResponse1.java b/client/src/main/java/com/fastcomments/model/CreateModeratorResponse1.java deleted file mode 100644 index 50cba239..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateModeratorResponse1.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.23.0-SNAPSHOT") -public class CreateModeratorResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateModeratorResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateModeratorResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateModeratorResponse1' 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, CreateModeratorResponse1 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 CreateModeratorResponse1 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; - CreateModeratorResponse1 ret = new CreateModeratorResponse1(); - 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; - CreateModeratorResponse1 ret = new CreateModeratorResponse1(); - 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 CreateModeratorResponse1: 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 CreateModeratorResponse1() { - super("anyOf", Boolean.FALSE); - } - - public CreateModeratorResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateModeratorResponse", CreateModeratorResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateModeratorResponse1.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 CreateModeratorResponse1 - */ - 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 CreateModeratorResponse1 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 CreateModeratorResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateModeratorResponse1 - * @throws IOException if the JSON string is invalid with respect to CreateModeratorResponse1 - */ - public static CreateModeratorResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateModeratorResponse1.class); - } - - /** - * Convert an instance of CreateModeratorResponse1 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/CreateQuestionConfigResponse1.java b/client/src/main/java/com/fastcomments/model/CreateQuestionConfigResponse1.java deleted file mode 100644 index ddeb1197..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateQuestionConfigResponse1.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.23.0-SNAPSHOT") -public class CreateQuestionConfigResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateQuestionConfigResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateQuestionConfigResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateQuestionConfigResponse1' 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, CreateQuestionConfigResponse1 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 CreateQuestionConfigResponse1 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; - CreateQuestionConfigResponse1 ret = new CreateQuestionConfigResponse1(); - 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; - CreateQuestionConfigResponse1 ret = new CreateQuestionConfigResponse1(); - 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 CreateQuestionConfigResponse1: 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 CreateQuestionConfigResponse1() { - super("anyOf", Boolean.FALSE); - } - - public CreateQuestionConfigResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateQuestionConfigResponse", CreateQuestionConfigResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateQuestionConfigResponse1.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 CreateQuestionConfigResponse1 - */ - 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 CreateQuestionConfigResponse1 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 CreateQuestionConfigResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateQuestionConfigResponse1 - * @throws IOException if the JSON string is invalid with respect to CreateQuestionConfigResponse1 - */ - public static CreateQuestionConfigResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateQuestionConfigResponse1.class); - } - - /** - * Convert an instance of CreateQuestionConfigResponse1 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/CreateQuestionResultResponse1.java b/client/src/main/java/com/fastcomments/model/CreateQuestionResultResponse1.java deleted file mode 100644 index 748c1b0b..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateQuestionResultResponse1.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.23.0-SNAPSHOT") -public class CreateQuestionResultResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateQuestionResultResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateQuestionResultResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateQuestionResultResponse1' 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, CreateQuestionResultResponse1 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 CreateQuestionResultResponse1 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; - CreateQuestionResultResponse1 ret = new CreateQuestionResultResponse1(); - 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; - CreateQuestionResultResponse1 ret = new CreateQuestionResultResponse1(); - 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 CreateQuestionResultResponse1: 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 CreateQuestionResultResponse1() { - super("anyOf", Boolean.FALSE); - } - - public CreateQuestionResultResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateQuestionResultResponse", CreateQuestionResultResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateQuestionResultResponse1.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 CreateQuestionResultResponse1 - */ - 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 CreateQuestionResultResponse1 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 CreateQuestionResultResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateQuestionResultResponse1 - * @throws IOException if the JSON string is invalid with respect to CreateQuestionResultResponse1 - */ - public static CreateQuestionResultResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateQuestionResultResponse1.class); - } - - /** - * Convert an instance of CreateQuestionResultResponse1 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/CreateTenantPackageResponse1.java b/client/src/main/java/com/fastcomments/model/CreateTenantPackageResponse1.java deleted file mode 100644 index 1f152cb1..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateTenantPackageResponse1.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.23.0-SNAPSHOT") -public class CreateTenantPackageResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateTenantPackageResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateTenantPackageResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateTenantPackageResponse1' 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, CreateTenantPackageResponse1 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 CreateTenantPackageResponse1 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; - CreateTenantPackageResponse1 ret = new CreateTenantPackageResponse1(); - 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; - CreateTenantPackageResponse1 ret = new CreateTenantPackageResponse1(); - 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 CreateTenantPackageResponse1: 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 CreateTenantPackageResponse1() { - super("anyOf", Boolean.FALSE); - } - - public CreateTenantPackageResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateTenantPackageResponse", CreateTenantPackageResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateTenantPackageResponse1.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 CreateTenantPackageResponse1 - */ - 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 CreateTenantPackageResponse1 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 CreateTenantPackageResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateTenantPackageResponse1 - * @throws IOException if the JSON string is invalid with respect to CreateTenantPackageResponse1 - */ - public static CreateTenantPackageResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateTenantPackageResponse1.class); - } - - /** - * Convert an instance of CreateTenantPackageResponse1 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/CreateTenantResponse1.java b/client/src/main/java/com/fastcomments/model/CreateTenantResponse1.java deleted file mode 100644 index b115c5ae..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateTenantResponse1.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.23.0-SNAPSHOT") -public class CreateTenantResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateTenantResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateTenantResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateTenantResponse1' 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, CreateTenantResponse1 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 CreateTenantResponse1 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; - CreateTenantResponse1 ret = new CreateTenantResponse1(); - 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; - CreateTenantResponse1 ret = new CreateTenantResponse1(); - 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 CreateTenantResponse1: 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 CreateTenantResponse1() { - super("anyOf", Boolean.FALSE); - } - - public CreateTenantResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateTenantResponse", CreateTenantResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateTenantResponse1.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 CreateTenantResponse1 - */ - 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 CreateTenantResponse1 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 CreateTenantResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateTenantResponse1 - * @throws IOException if the JSON string is invalid with respect to CreateTenantResponse1 - */ - public static CreateTenantResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateTenantResponse1.class); - } - - /** - * Convert an instance of CreateTenantResponse1 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/CreateTenantUserResponse1.java b/client/src/main/java/com/fastcomments/model/CreateTenantUserResponse1.java deleted file mode 100644 index d2927105..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateTenantUserResponse1.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.23.0-SNAPSHOT") -public class CreateTenantUserResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateTenantUserResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateTenantUserResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateTenantUserResponse1' 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, CreateTenantUserResponse1 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 CreateTenantUserResponse1 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; - CreateTenantUserResponse1 ret = new CreateTenantUserResponse1(); - 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; - CreateTenantUserResponse1 ret = new CreateTenantUserResponse1(); - 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 CreateTenantUserResponse1: 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 CreateTenantUserResponse1() { - super("anyOf", Boolean.FALSE); - } - - public CreateTenantUserResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateTenantUserResponse", CreateTenantUserResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateTenantUserResponse1.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 CreateTenantUserResponse1 - */ - 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 CreateTenantUserResponse1 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 CreateTenantUserResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateTenantUserResponse1 - * @throws IOException if the JSON string is invalid with respect to CreateTenantUserResponse1 - */ - public static CreateTenantUserResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateTenantUserResponse1.class); - } - - /** - * Convert an instance of CreateTenantUserResponse1 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/CreateTicketResponse1.java b/client/src/main/java/com/fastcomments/model/CreateTicketResponse1.java deleted file mode 100644 index 4c5bc820..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateTicketResponse1.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.23.0-SNAPSHOT") -public class CreateTicketResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateTicketResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateTicketResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateTicketResponse1' 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, CreateTicketResponse1 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 CreateTicketResponse1 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; - CreateTicketResponse1 ret = new CreateTicketResponse1(); - 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; - CreateTicketResponse1 ret = new CreateTicketResponse1(); - 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 CreateTicketResponse1: 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 CreateTicketResponse1() { - super("anyOf", Boolean.FALSE); - } - - public CreateTicketResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateTicketResponse", CreateTicketResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateTicketResponse1.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 CreateTicketResponse1 - */ - 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 CreateTicketResponse1 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 CreateTicketResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateTicketResponse1 - * @throws IOException if the JSON string is invalid with respect to CreateTicketResponse1 - */ - public static CreateTicketResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateTicketResponse1.class); - } - - /** - * Convert an instance of CreateTicketResponse1 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/CreateUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/CreateUserBadgeResponse.java deleted file mode 100644 index b0f65eb4..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateUserBadgeResponse.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.23.0-SNAPSHOT") -public class CreateUserBadgeResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateUserBadgeResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateUserBadgeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateUserBadgeResponse' 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, CreateUserBadgeResponse 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 CreateUserBadgeResponse 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; - CreateUserBadgeResponse ret = new CreateUserBadgeResponse(); - 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; - CreateUserBadgeResponse ret = new CreateUserBadgeResponse(); - 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 CreateUserBadgeResponse: 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 CreateUserBadgeResponse() { - super("anyOf", Boolean.FALSE); - } - - public CreateUserBadgeResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APICreateUserBadgeResponse", APICreateUserBadgeResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateUserBadgeResponse.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 CreateUserBadgeResponse - */ - 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 CreateUserBadgeResponse 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 CreateUserBadgeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateUserBadgeResponse - * @throws IOException if the JSON string is invalid with respect to CreateUserBadgeResponse - */ - public static CreateUserBadgeResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateUserBadgeResponse.class); - } - - /** - * Convert an instance of CreateUserBadgeResponse 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/CreateV1PageReactResponse.java b/client/src/main/java/com/fastcomments/model/CreateV1PageReactResponse.java deleted file mode 100644 index 75fbf8cc..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateV1PageReactResponse.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.CreateV1PageReact; -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.23.0-SNAPSHOT") -public class CreateV1PageReactResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateV1PageReactResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateV1PageReactResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateV1PageReactResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateV1PageReact = gson.getDelegateAdapter(this, TypeToken.get(CreateV1PageReact.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateV1PageReactResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateV1PageReact` - if (value.getActualInstance() instanceof CreateV1PageReact) { - JsonElement element = adapterCreateV1PageReact.toJsonTree((CreateV1PageReact)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, CreateV1PageReact"); - } - - @Override - public CreateV1PageReactResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateV1PageReact - try { - // validate the JSON object to see if any exception is thrown - CreateV1PageReact.validateJsonElement(jsonElement); - actualAdapter = adapterCreateV1PageReact; - CreateV1PageReactResponse ret = new CreateV1PageReactResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateV1PageReact'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateV1PageReactResponse ret = new CreateV1PageReactResponse(); - 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 CreateV1PageReactResponse: 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 CreateV1PageReactResponse() { - super("anyOf", Boolean.FALSE); - } - - public CreateV1PageReactResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateV1PageReact", CreateV1PageReact.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateV1PageReactResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateV1PageReact - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateV1PageReact) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateV1PageReact"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateV1PageReact - * - * @return The actual instance (APIError, CreateV1PageReact) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateV1PageReact`. If the actual instance is not `CreateV1PageReact`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateV1PageReact` - * @throws ClassCastException if the instance is not `CreateV1PageReact` - */ - public CreateV1PageReact getCreateV1PageReact() throws ClassCastException { - return (CreateV1PageReact)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 CreateV1PageReactResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateV1PageReact - try { - CreateV1PageReact.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact 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 CreateV1PageReactResponse with anyOf schemas: APIError, CreateV1PageReact. 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 CreateV1PageReactResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateV1PageReactResponse - * @throws IOException if the JSON string is invalid with respect to CreateV1PageReactResponse - */ - public static CreateV1PageReactResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateV1PageReactResponse.class); - } - - /** - * Convert an instance of CreateV1PageReactResponse 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/CreateV2PageReactResponse.java b/client/src/main/java/com/fastcomments/model/CreateV2PageReactResponse.java deleted file mode 100644 index 1d3a2731..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateV2PageReactResponse.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.CreateV1PageReact; -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.23.0-SNAPSHOT") -public class CreateV2PageReactResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateV2PageReactResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateV2PageReactResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateV2PageReactResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateV1PageReact = gson.getDelegateAdapter(this, TypeToken.get(CreateV1PageReact.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateV2PageReactResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateV1PageReact` - if (value.getActualInstance() instanceof CreateV1PageReact) { - JsonElement element = adapterCreateV1PageReact.toJsonTree((CreateV1PageReact)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, CreateV1PageReact"); - } - - @Override - public CreateV2PageReactResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateV1PageReact - try { - // validate the JSON object to see if any exception is thrown - CreateV1PageReact.validateJsonElement(jsonElement); - actualAdapter = adapterCreateV1PageReact; - CreateV2PageReactResponse ret = new CreateV2PageReactResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateV1PageReact'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - CreateV2PageReactResponse ret = new CreateV2PageReactResponse(); - 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 CreateV2PageReactResponse: 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 CreateV2PageReactResponse() { - super("anyOf", Boolean.FALSE); - } - - public CreateV2PageReactResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateV1PageReact", CreateV1PageReact.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateV2PageReactResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateV1PageReact - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateV1PageReact) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateV1PageReact"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateV1PageReact - * - * @return The actual instance (APIError, CreateV1PageReact) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateV1PageReact`. If the actual instance is not `CreateV1PageReact`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateV1PageReact` - * @throws ClassCastException if the instance is not `CreateV1PageReact` - */ - public CreateV1PageReact getCreateV1PageReact() throws ClassCastException { - return (CreateV1PageReact)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 CreateV2PageReactResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateV1PageReact - try { - CreateV1PageReact.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact 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 CreateV2PageReactResponse with anyOf schemas: APIError, CreateV1PageReact. 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 CreateV2PageReactResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateV2PageReactResponse - * @throws IOException if the JSON string is invalid with respect to CreateV2PageReactResponse - */ - public static CreateV2PageReactResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateV2PageReactResponse.class); - } - - /** - * Convert an instance of CreateV2PageReactResponse 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/CreateVoteResponse.java b/client/src/main/java/com/fastcomments/model/CreateVoteResponse.java deleted file mode 100644 index 005d120e..00000000 --- a/client/src/main/java/com/fastcomments/model/CreateVoteResponse.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.23.0-SNAPSHOT") -public class CreateVoteResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateVoteResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateVoteResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateVoteResponse' 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, CreateVoteResponse 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 CreateVoteResponse 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; - CreateVoteResponse ret = new CreateVoteResponse(); - 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; - CreateVoteResponse ret = new CreateVoteResponse(); - 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 CreateVoteResponse: 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 CreateVoteResponse() { - super("anyOf", Boolean.FALSE); - } - - public CreateVoteResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("VoteResponse", VoteResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return CreateVoteResponse.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 CreateVoteResponse - */ - 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 CreateVoteResponse 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 CreateVoteResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateVoteResponse - * @throws IOException if the JSON string is invalid with respect to CreateVoteResponse - */ - public static CreateVoteResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateVoteResponse.class); - } - - /** - * Convert an instance of CreateVoteResponse 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/DeleteCommentPublicResponse.java b/client/src/main/java/com/fastcomments/model/DeleteCommentPublicResponse.java deleted file mode 100644 index b8ec8914..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteCommentPublicResponse.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.23.0-SNAPSHOT") -public class DeleteCommentPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteCommentPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCommentPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCommentPublicResponse' 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, DeleteCommentPublicResponse 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 DeleteCommentPublicResponse 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; - DeleteCommentPublicResponse ret = new DeleteCommentPublicResponse(); - 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; - DeleteCommentPublicResponse ret = new DeleteCommentPublicResponse(); - 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 DeleteCommentPublicResponse: 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 DeleteCommentPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteCommentPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("PublicAPIDeleteCommentResponse", PublicAPIDeleteCommentResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteCommentPublicResponse.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 DeleteCommentPublicResponse - */ - 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 DeleteCommentPublicResponse 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 DeleteCommentPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteCommentPublicResponse - * @throws IOException if the JSON string is invalid with respect to DeleteCommentPublicResponse - */ - public static DeleteCommentPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteCommentPublicResponse.class); - } - - /** - * Convert an instance of DeleteCommentPublicResponse 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/DeleteCommentResponse.java b/client/src/main/java/com/fastcomments/model/DeleteCommentResponse.java deleted file mode 100644 index 843c4308..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteCommentResponse.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.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 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 DeleteCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCommentResponse' 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)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCommentResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `DeleteCommentResult` - if (value.getActualInstance() instanceof DeleteCommentResult) { - JsonElement element = adapterDeleteCommentResult.toJsonTree((DeleteCommentResult)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, DeleteCommentResult"); - } - - @Override - public DeleteCommentResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize DeleteCommentResult - try { - // validate the JSON object to see if any exception is thrown - DeleteCommentResult.validateJsonElement(jsonElement); - actualAdapter = adapterDeleteCommentResult; - DeleteCommentResponse ret = new DeleteCommentResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - 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 - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - DeleteCommentResponse ret = new DeleteCommentResponse(); - 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 DeleteCommentResponse: 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 DeleteCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("DeleteCommentResult", DeleteCommentResult.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteCommentResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, DeleteCommentResult - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof DeleteCommentResult) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, DeleteCommentResult"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, DeleteCommentResult - * - * @return The actual instance (APIError, DeleteCommentResult) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `DeleteCommentResult`. If the actual instance is not `DeleteCommentResult`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `DeleteCommentResult` - * @throws ClassCastException if the instance is not `DeleteCommentResult` - */ - public DeleteCommentResult getDeleteCommentResult() throws ClassCastException { - return (DeleteCommentResult)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 DeleteCommentResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with DeleteCommentResult - try { - DeleteCommentResult.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - 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 - 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 DeleteCommentResponse 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())); - } - - /** - * Create an instance of DeleteCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteCommentResponse - * @throws IOException if the JSON string is invalid with respect to DeleteCommentResponse - */ - public static DeleteCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteCommentResponse.class); - } - - /** - * Convert an instance of DeleteCommentResponse 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/DeleteCommentVoteResponse.java b/client/src/main/java/com/fastcomments/model/DeleteCommentVoteResponse.java deleted file mode 100644 index 98c4eb38..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteCommentVoteResponse.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.23.0-SNAPSHOT") -public class DeleteCommentVoteResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteCommentVoteResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCommentVoteResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCommentVoteResponse' 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, DeleteCommentVoteResponse 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 DeleteCommentVoteResponse 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; - DeleteCommentVoteResponse ret = new DeleteCommentVoteResponse(); - 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; - DeleteCommentVoteResponse ret = new DeleteCommentVoteResponse(); - 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 DeleteCommentVoteResponse: 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 DeleteCommentVoteResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteCommentVoteResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("VoteDeleteResponse", VoteDeleteResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteCommentVoteResponse.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 DeleteCommentVoteResponse - */ - 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 DeleteCommentVoteResponse 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 DeleteCommentVoteResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteCommentVoteResponse - * @throws IOException if the JSON string is invalid with respect to DeleteCommentVoteResponse - */ - public static DeleteCommentVoteResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteCommentVoteResponse.class); - } - - /** - * Convert an instance of DeleteCommentVoteResponse 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/DeleteEmailTemplateRenderErrorResponse.java b/client/src/main/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponse.java deleted file mode 100644 index 35fa5bd9..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponse.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.23.0-SNAPSHOT") -public class DeleteEmailTemplateRenderErrorResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteEmailTemplateRenderErrorResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteEmailTemplateRenderErrorResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteEmailTemplateRenderErrorResponse' 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, DeleteEmailTemplateRenderErrorResponse 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 DeleteEmailTemplateRenderErrorResponse 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; - DeleteEmailTemplateRenderErrorResponse ret = new DeleteEmailTemplateRenderErrorResponse(); - 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; - DeleteEmailTemplateRenderErrorResponse ret = new DeleteEmailTemplateRenderErrorResponse(); - 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 DeleteEmailTemplateRenderErrorResponse: 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 DeleteEmailTemplateRenderErrorResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteEmailTemplateRenderErrorResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteEmailTemplateRenderErrorResponse.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 DeleteEmailTemplateRenderErrorResponse - */ - 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 DeleteEmailTemplateRenderErrorResponse 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 DeleteEmailTemplateRenderErrorResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteEmailTemplateRenderErrorResponse - * @throws IOException if the JSON string is invalid with respect to DeleteEmailTemplateRenderErrorResponse - */ - public static DeleteEmailTemplateRenderErrorResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteEmailTemplateRenderErrorResponse.class); - } - - /** - * Convert an instance of DeleteEmailTemplateRenderErrorResponse 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/DeleteEmailTemplateResponse.java b/client/src/main/java/com/fastcomments/model/DeleteEmailTemplateResponse.java deleted file mode 100644 index 9891a8fe..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteEmailTemplateResponse.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.23.0-SNAPSHOT") -public class DeleteEmailTemplateResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteEmailTemplateResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteEmailTemplateResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteEmailTemplateResponse' 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, DeleteEmailTemplateResponse 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 DeleteEmailTemplateResponse 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; - DeleteEmailTemplateResponse ret = new DeleteEmailTemplateResponse(); - 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; - DeleteEmailTemplateResponse ret = new DeleteEmailTemplateResponse(); - 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 DeleteEmailTemplateResponse: 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 DeleteEmailTemplateResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteEmailTemplateResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteEmailTemplateResponse.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 DeleteEmailTemplateResponse - */ - 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 DeleteEmailTemplateResponse 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 DeleteEmailTemplateResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteEmailTemplateResponse - * @throws IOException if the JSON string is invalid with respect to DeleteEmailTemplateResponse - */ - public static DeleteEmailTemplateResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteEmailTemplateResponse.class); - } - - /** - * Convert an instance of DeleteEmailTemplateResponse 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/DeleteFeedPostPublicResponse.java b/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java index 677dbf81..320d9a6f 100644 --- a/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java +++ b/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponse.java @@ -14,10 +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.DeleteFeedPostPublicResponseAnyOf; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,244 +23,268 @@ 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.JsonArray; 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.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; +/** + * DeleteFeedPostPublicResponse + */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") -public class DeleteFeedPostPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteFeedPostPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - 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 adapterDeleteFeedPostPublicResponseAnyOf = gson.getDelegateAdapter(this, TypeToken.get(DeleteFeedPostPublicResponseAnyOf.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteFeedPostPublicResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `DeleteFeedPostPublicResponseAnyOf` - if (value.getActualInstance() instanceof DeleteFeedPostPublicResponseAnyOf) { - JsonElement element = adapterDeleteFeedPostPublicResponseAnyOf.toJsonTree((DeleteFeedPostPublicResponseAnyOf)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, DeleteFeedPostPublicResponseAnyOf"); - } - - @Override - public DeleteFeedPostPublicResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize DeleteFeedPostPublicResponseAnyOf - try { - // validate the JSON object to see if any exception is thrown - DeleteFeedPostPublicResponseAnyOf.validateJsonElement(jsonElement); - actualAdapter = adapterDeleteFeedPostPublicResponseAnyOf; - DeleteFeedPostPublicResponse ret = new DeleteFeedPostPublicResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for DeleteFeedPostPublicResponseAnyOf failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'DeleteFeedPostPublicResponseAnyOf'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - DeleteFeedPostPublicResponse ret = new DeleteFeedPostPublicResponse(); - 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 DeleteFeedPostPublicResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } +public class DeleteFeedPostPublicResponse { + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nonnull + private APIStatus status; - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); + public DeleteFeedPostPublicResponse() { + } - public DeleteFeedPostPublicResponse() { - super("anyOf", Boolean.FALSE); - } + public DeleteFeedPostPublicResponse 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; - public DeleteFeedPostPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); + /** + * 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 DeleteFeedPostPublicResponse instance itself + */ + public DeleteFeedPostPublicResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); } + this.additionalProperties.put(key, value); + return this; + } - static { - schemas.put("DeleteFeedPostPublicResponseAnyOf", DeleteFeedPostPublicResponseAnyOf.class); - schemas.put("APIError", APIError.class); + /** + * 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 Map> getSchemas() { - return DeleteFeedPostPublicResponse.schemas; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; } + DeleteFeedPostPublicResponse deleteFeedPostPublicResponse = (DeleteFeedPostPublicResponse) o; + return Objects.equals(this.status, deleteFeedPostPublicResponse.status)&& + Objects.equals(this.additionalProperties, deleteFeedPostPublicResponse.additionalProperties); + } - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, DeleteFeedPostPublicResponseAnyOf - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof DeleteFeedPostPublicResponseAnyOf) { - super.setActualInstance(instance); - return; - } + @Override + public int hashCode() { + return Objects.hash(status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteFeedPostPublicResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; + /** + * 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")); + + // 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 DeleteFeedPostPublicResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + 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())); } + } - throw new RuntimeException("Invalid instance type. Must be APIError, DeleteFeedPostPublicResponseAnyOf"); - } + // check to make sure all required properties/fields are present in the JSON string + 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())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `status` + APIStatus.validateJsonElement(jsonObj.get("status")); + } - /** - * Get the actual instance, which can be the following: - * APIError, DeleteFeedPostPublicResponseAnyOf - * - * @return The actual instance (APIError, DeleteFeedPostPublicResponseAnyOf) - */ + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override - public Object getActualInstance() { - return super.getActualInstance(); - } + public TypeAdapter create(Gson gson, TypeToken type) { + 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(DeleteFeedPostPublicResponse.class)); - /** - * Get the actual instance of `DeleteFeedPostPublicResponseAnyOf`. If the actual instance is not `DeleteFeedPostPublicResponseAnyOf`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `DeleteFeedPostPublicResponseAnyOf` - * @throws ClassCastException if the instance is not `DeleteFeedPostPublicResponseAnyOf` - */ - public DeleteFeedPostPublicResponseAnyOf getDeleteFeedPostPublicResponseAnyOf() throws ClassCastException { - return (DeleteFeedPostPublicResponseAnyOf)super.getActualInstance(); - } + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteFeedPostPublicResponse 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); + } - /** - * 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(); - } + @Override + 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 + DeleteFeedPostPublicResponse 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; + } - /** - * 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 DeleteFeedPostPublicResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with DeleteFeedPostPublicResponseAnyOf - try { - DeleteFeedPostPublicResponseAnyOf.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for DeleteFeedPostPublicResponseAnyOf 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 DeleteFeedPostPublicResponse with anyOf schemas: APIError, DeleteFeedPostPublicResponseAnyOf. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + }.nullSafe(); } + } - /** - * Create an instance of DeleteFeedPostPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteFeedPostPublicResponse - * @throws IOException if the JSON string is invalid with respect to DeleteFeedPostPublicResponse - */ - public static DeleteFeedPostPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteFeedPostPublicResponse.class); - } + /** + * Create an instance of DeleteFeedPostPublicResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeleteFeedPostPublicResponse + * @throws IOException if the JSON string is invalid with respect to DeleteFeedPostPublicResponse + */ + public static DeleteFeedPostPublicResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DeleteFeedPostPublicResponse.class); + } - /** - * Convert an instance of DeleteFeedPostPublicResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } + /** + * Convert an instance of DeleteFeedPostPublicResponse 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/DeleteFeedPostPublicResponseAnyOf.java b/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOf.java deleted file mode 100644 index 74d1c2ce..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOf.java +++ /dev/null @@ -1,290 +0,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.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; - -/** - * DeleteFeedPostPublicResponseAnyOf - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") -public class DeleteFeedPostPublicResponseAnyOf { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nonnull - private APIStatus status; - - public DeleteFeedPostPublicResponseAnyOf() { - } - - public DeleteFeedPostPublicResponseAnyOf 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 DeleteFeedPostPublicResponseAnyOf instance itself - */ - public DeleteFeedPostPublicResponseAnyOf 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; - } - DeleteFeedPostPublicResponseAnyOf deleteFeedPostPublicResponseAnyOf = (DeleteFeedPostPublicResponseAnyOf) o; - return Objects.equals(this.status, deleteFeedPostPublicResponseAnyOf.status)&& - Objects.equals(this.additionalProperties, deleteFeedPostPublicResponseAnyOf.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(status, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DeleteFeedPostPublicResponseAnyOf {\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("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 DeleteFeedPostPublicResponseAnyOf - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteFeedPostPublicResponseAnyOf.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 DeleteFeedPostPublicResponseAnyOf is not found in the empty JSON string", DeleteFeedPostPublicResponseAnyOf.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DeleteFeedPostPublicResponseAnyOf.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 (!DeleteFeedPostPublicResponseAnyOf.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteFeedPostPublicResponseAnyOf' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteFeedPostPublicResponseAnyOf.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteFeedPostPublicResponseAnyOf 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 DeleteFeedPostPublicResponseAnyOf read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // store additional fields in the deserialized instance - DeleteFeedPostPublicResponseAnyOf 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 DeleteFeedPostPublicResponseAnyOf given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteFeedPostPublicResponseAnyOf - * @throws IOException if the JSON string is invalid with respect to DeleteFeedPostPublicResponseAnyOf - */ - public static DeleteFeedPostPublicResponseAnyOf fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteFeedPostPublicResponseAnyOf.class); - } - - /** - * Convert an instance of DeleteFeedPostPublicResponseAnyOf 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/DeleteHashTagResponse.java b/client/src/main/java/com/fastcomments/model/DeleteHashTagResponse.java deleted file mode 100644 index a45d9eb7..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteHashTagResponse.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.23.0-SNAPSHOT") -public class DeleteHashTagResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteHashTagResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteHashTagResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteHashTagResponse' 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, DeleteHashTagResponse 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 DeleteHashTagResponse 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; - DeleteHashTagResponse ret = new DeleteHashTagResponse(); - 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; - DeleteHashTagResponse ret = new DeleteHashTagResponse(); - 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 DeleteHashTagResponse: 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 DeleteHashTagResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteHashTagResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteHashTagResponse.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 DeleteHashTagResponse - */ - 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 DeleteHashTagResponse 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 DeleteHashTagResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteHashTagResponse - * @throws IOException if the JSON string is invalid with respect to DeleteHashTagResponse - */ - public static DeleteHashTagResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteHashTagResponse.class); - } - - /** - * Convert an instance of DeleteHashTagResponse 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/DeleteModerationVoteResponse.java b/client/src/main/java/com/fastcomments/model/DeleteModerationVoteResponse.java deleted file mode 100644 index 914244aa..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteModerationVoteResponse.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.23.0-SNAPSHOT") -public class DeleteModerationVoteResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteModerationVoteResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteModerationVoteResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteModerationVoteResponse' 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, DeleteModerationVoteResponse 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 DeleteModerationVoteResponse 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; - DeleteModerationVoteResponse ret = new DeleteModerationVoteResponse(); - 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; - DeleteModerationVoteResponse ret = new DeleteModerationVoteResponse(); - 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 DeleteModerationVoteResponse: 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 DeleteModerationVoteResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteModerationVoteResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("VoteDeleteResponse", VoteDeleteResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteModerationVoteResponse.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 DeleteModerationVoteResponse - */ - 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 DeleteModerationVoteResponse 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 DeleteModerationVoteResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteModerationVoteResponse - * @throws IOException if the JSON string is invalid with respect to DeleteModerationVoteResponse - */ - public static DeleteModerationVoteResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteModerationVoteResponse.class); - } - - /** - * Convert an instance of DeleteModerationVoteResponse 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/DeleteModeratorResponse.java b/client/src/main/java/com/fastcomments/model/DeleteModeratorResponse.java deleted file mode 100644 index 3e1b1e01..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteModeratorResponse.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.23.0-SNAPSHOT") -public class DeleteModeratorResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteModeratorResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteModeratorResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteModeratorResponse' 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, DeleteModeratorResponse 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 DeleteModeratorResponse 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; - DeleteModeratorResponse ret = new DeleteModeratorResponse(); - 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; - DeleteModeratorResponse ret = new DeleteModeratorResponse(); - 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 DeleteModeratorResponse: 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 DeleteModeratorResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteModeratorResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteModeratorResponse.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 DeleteModeratorResponse - */ - 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 DeleteModeratorResponse 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 DeleteModeratorResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteModeratorResponse - * @throws IOException if the JSON string is invalid with respect to DeleteModeratorResponse - */ - public static DeleteModeratorResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteModeratorResponse.class); - } - - /** - * Convert an instance of DeleteModeratorResponse 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/DeleteNotificationCountResponse.java b/client/src/main/java/com/fastcomments/model/DeleteNotificationCountResponse.java deleted file mode 100644 index 9a5d48d8..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteNotificationCountResponse.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.23.0-SNAPSHOT") -public class DeleteNotificationCountResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteNotificationCountResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteNotificationCountResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteNotificationCountResponse' 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, DeleteNotificationCountResponse 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 DeleteNotificationCountResponse 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; - DeleteNotificationCountResponse ret = new DeleteNotificationCountResponse(); - 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; - DeleteNotificationCountResponse ret = new DeleteNotificationCountResponse(); - 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 DeleteNotificationCountResponse: 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 DeleteNotificationCountResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteNotificationCountResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteNotificationCountResponse.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 DeleteNotificationCountResponse - */ - 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 DeleteNotificationCountResponse 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 DeleteNotificationCountResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteNotificationCountResponse - * @throws IOException if the JSON string is invalid with respect to DeleteNotificationCountResponse - */ - public static DeleteNotificationCountResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteNotificationCountResponse.class); - } - - /** - * Convert an instance of DeleteNotificationCountResponse 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/DeletePendingWebhookEventResponse.java b/client/src/main/java/com/fastcomments/model/DeletePendingWebhookEventResponse.java deleted file mode 100644 index ba08fc92..00000000 --- a/client/src/main/java/com/fastcomments/model/DeletePendingWebhookEventResponse.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.23.0-SNAPSHOT") -public class DeletePendingWebhookEventResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeletePendingWebhookEventResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeletePendingWebhookEventResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeletePendingWebhookEventResponse' 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, DeletePendingWebhookEventResponse 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 DeletePendingWebhookEventResponse 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; - DeletePendingWebhookEventResponse ret = new DeletePendingWebhookEventResponse(); - 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; - DeletePendingWebhookEventResponse ret = new DeletePendingWebhookEventResponse(); - 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 DeletePendingWebhookEventResponse: 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 DeletePendingWebhookEventResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeletePendingWebhookEventResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeletePendingWebhookEventResponse.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 DeletePendingWebhookEventResponse - */ - 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 DeletePendingWebhookEventResponse 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 DeletePendingWebhookEventResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeletePendingWebhookEventResponse - * @throws IOException if the JSON string is invalid with respect to DeletePendingWebhookEventResponse - */ - public static DeletePendingWebhookEventResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeletePendingWebhookEventResponse.class); - } - - /** - * Convert an instance of DeletePendingWebhookEventResponse 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/DeleteQuestionConfigResponse.java b/client/src/main/java/com/fastcomments/model/DeleteQuestionConfigResponse.java deleted file mode 100644 index d239e937..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteQuestionConfigResponse.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.23.0-SNAPSHOT") -public class DeleteQuestionConfigResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteQuestionConfigResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteQuestionConfigResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteQuestionConfigResponse' 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, DeleteQuestionConfigResponse 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 DeleteQuestionConfigResponse 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; - DeleteQuestionConfigResponse ret = new DeleteQuestionConfigResponse(); - 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; - DeleteQuestionConfigResponse ret = new DeleteQuestionConfigResponse(); - 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 DeleteQuestionConfigResponse: 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 DeleteQuestionConfigResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteQuestionConfigResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteQuestionConfigResponse.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 DeleteQuestionConfigResponse - */ - 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 DeleteQuestionConfigResponse 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 DeleteQuestionConfigResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteQuestionConfigResponse - * @throws IOException if the JSON string is invalid with respect to DeleteQuestionConfigResponse - */ - public static DeleteQuestionConfigResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteQuestionConfigResponse.class); - } - - /** - * Convert an instance of DeleteQuestionConfigResponse 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/DeleteQuestionResultResponse.java b/client/src/main/java/com/fastcomments/model/DeleteQuestionResultResponse.java deleted file mode 100644 index c30a3052..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteQuestionResultResponse.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.23.0-SNAPSHOT") -public class DeleteQuestionResultResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteQuestionResultResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteQuestionResultResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteQuestionResultResponse' 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, DeleteQuestionResultResponse 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 DeleteQuestionResultResponse 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; - DeleteQuestionResultResponse ret = new DeleteQuestionResultResponse(); - 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; - DeleteQuestionResultResponse ret = new DeleteQuestionResultResponse(); - 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 DeleteQuestionResultResponse: 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 DeleteQuestionResultResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteQuestionResultResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteQuestionResultResponse.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 DeleteQuestionResultResponse - */ - 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 DeleteQuestionResultResponse 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 DeleteQuestionResultResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteQuestionResultResponse - * @throws IOException if the JSON string is invalid with respect to DeleteQuestionResultResponse - */ - public static DeleteQuestionResultResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteQuestionResultResponse.class); - } - - /** - * Convert an instance of DeleteQuestionResultResponse 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/DeleteTenantPackageResponse.java b/client/src/main/java/com/fastcomments/model/DeleteTenantPackageResponse.java deleted file mode 100644 index 8d1e8ac5..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteTenantPackageResponse.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.23.0-SNAPSHOT") -public class DeleteTenantPackageResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteTenantPackageResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteTenantPackageResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteTenantPackageResponse' 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, DeleteTenantPackageResponse 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 DeleteTenantPackageResponse 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; - DeleteTenantPackageResponse ret = new DeleteTenantPackageResponse(); - 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; - DeleteTenantPackageResponse ret = new DeleteTenantPackageResponse(); - 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 DeleteTenantPackageResponse: 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 DeleteTenantPackageResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteTenantPackageResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteTenantPackageResponse.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 DeleteTenantPackageResponse - */ - 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 DeleteTenantPackageResponse 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 DeleteTenantPackageResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteTenantPackageResponse - * @throws IOException if the JSON string is invalid with respect to DeleteTenantPackageResponse - */ - public static DeleteTenantPackageResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteTenantPackageResponse.class); - } - - /** - * Convert an instance of DeleteTenantPackageResponse 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/DeleteTenantResponse.java b/client/src/main/java/com/fastcomments/model/DeleteTenantResponse.java deleted file mode 100644 index 81227a2c..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteTenantResponse.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.23.0-SNAPSHOT") -public class DeleteTenantResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteTenantResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteTenantResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteTenantResponse' 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, DeleteTenantResponse 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 DeleteTenantResponse 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; - DeleteTenantResponse ret = new DeleteTenantResponse(); - 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; - DeleteTenantResponse ret = new DeleteTenantResponse(); - 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 DeleteTenantResponse: 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 DeleteTenantResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteTenantResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteTenantResponse.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 DeleteTenantResponse - */ - 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 DeleteTenantResponse 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 DeleteTenantResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteTenantResponse - * @throws IOException if the JSON string is invalid with respect to DeleteTenantResponse - */ - public static DeleteTenantResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteTenantResponse.class); - } - - /** - * Convert an instance of DeleteTenantResponse 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/DeleteTenantUserResponse.java b/client/src/main/java/com/fastcomments/model/DeleteTenantUserResponse.java deleted file mode 100644 index e5c8f501..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteTenantUserResponse.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.23.0-SNAPSHOT") -public class DeleteTenantUserResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteTenantUserResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteTenantUserResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteTenantUserResponse' 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, DeleteTenantUserResponse 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 DeleteTenantUserResponse 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; - DeleteTenantUserResponse ret = new DeleteTenantUserResponse(); - 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; - DeleteTenantUserResponse ret = new DeleteTenantUserResponse(); - 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 DeleteTenantUserResponse: 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 DeleteTenantUserResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteTenantUserResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteTenantUserResponse.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 DeleteTenantUserResponse - */ - 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 DeleteTenantUserResponse 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 DeleteTenantUserResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteTenantUserResponse - * @throws IOException if the JSON string is invalid with respect to DeleteTenantUserResponse - */ - public static DeleteTenantUserResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteTenantUserResponse.class); - } - - /** - * Convert an instance of DeleteTenantUserResponse 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/DeleteUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/DeleteUserBadgeResponse.java deleted file mode 100644 index b651b771..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteUserBadgeResponse.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.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 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 DeleteUserBadgeResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteUserBadgeResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteUserBadgeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteUserBadgeResponse' 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)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteUserBadgeResponse 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()); - 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: APIEmptySuccessResponse, APIError"); - } - - @Override - public DeleteUserBadgeResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APIEmptySuccessResponse - try { - // validate the JSON object to see if any exception is thrown - APIEmptySuccessResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIEmptySuccessResponse; - DeleteUserBadgeResponse ret = new DeleteUserBadgeResponse(); - 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); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - DeleteUserBadgeResponse ret = new DeleteUserBadgeResponse(); - 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 DeleteUserBadgeResponse: 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 DeleteUserBadgeResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteUserBadgeResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptySuccessResponse", APIEmptySuccessResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteUserBadgeResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIEmptySuccessResponse, APIError - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APIEmptySuccessResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIEmptySuccessResponse, APIError"); - } - - /** - * Get the actual instance, which can be the following: - * APIEmptySuccessResponse, APIError - * - * @return The actual instance (APIEmptySuccessResponse, APIError) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APIEmptySuccessResponse`. If the actual instance is not `APIEmptySuccessResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIEmptySuccessResponse` - * @throws ClassCastException if the instance is not `APIEmptySuccessResponse` - */ - public APIEmptySuccessResponse getAPIEmptySuccessResponse() throws ClassCastException { - return (APIEmptySuccessResponse)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 DeleteUserBadgeResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIEmptySuccessResponse - try { - APIEmptySuccessResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIEmptySuccessResponse 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 DeleteUserBadgeResponse 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())); - } - - /** - * Create an instance of DeleteUserBadgeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteUserBadgeResponse - * @throws IOException if the JSON string is invalid with respect to DeleteUserBadgeResponse - */ - public static DeleteUserBadgeResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteUserBadgeResponse.class); - } - - /** - * Convert an instance of DeleteUserBadgeResponse 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/DeleteV1PageReactResponse.java b/client/src/main/java/com/fastcomments/model/DeleteV1PageReactResponse.java deleted file mode 100644 index 55de369d..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteV1PageReactResponse.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.CreateV1PageReact; -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.23.0-SNAPSHOT") -public class DeleteV1PageReactResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteV1PageReactResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteV1PageReactResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteV1PageReactResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateV1PageReact = gson.getDelegateAdapter(this, TypeToken.get(CreateV1PageReact.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteV1PageReactResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateV1PageReact` - if (value.getActualInstance() instanceof CreateV1PageReact) { - JsonElement element = adapterCreateV1PageReact.toJsonTree((CreateV1PageReact)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, CreateV1PageReact"); - } - - @Override - public DeleteV1PageReactResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateV1PageReact - try { - // validate the JSON object to see if any exception is thrown - CreateV1PageReact.validateJsonElement(jsonElement); - actualAdapter = adapterCreateV1PageReact; - DeleteV1PageReactResponse ret = new DeleteV1PageReactResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateV1PageReact'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - DeleteV1PageReactResponse ret = new DeleteV1PageReactResponse(); - 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 DeleteV1PageReactResponse: 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 DeleteV1PageReactResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteV1PageReactResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateV1PageReact", CreateV1PageReact.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteV1PageReactResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateV1PageReact - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateV1PageReact) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateV1PageReact"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateV1PageReact - * - * @return The actual instance (APIError, CreateV1PageReact) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateV1PageReact`. If the actual instance is not `CreateV1PageReact`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateV1PageReact` - * @throws ClassCastException if the instance is not `CreateV1PageReact` - */ - public CreateV1PageReact getCreateV1PageReact() throws ClassCastException { - return (CreateV1PageReact)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 DeleteV1PageReactResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateV1PageReact - try { - CreateV1PageReact.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact 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 DeleteV1PageReactResponse with anyOf schemas: APIError, CreateV1PageReact. 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 DeleteV1PageReactResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteV1PageReactResponse - * @throws IOException if the JSON string is invalid with respect to DeleteV1PageReactResponse - */ - public static DeleteV1PageReactResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteV1PageReactResponse.class); - } - - /** - * Convert an instance of DeleteV1PageReactResponse 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/DeleteV2PageReactResponse.java b/client/src/main/java/com/fastcomments/model/DeleteV2PageReactResponse.java deleted file mode 100644 index 7c53e06e..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteV2PageReactResponse.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.CreateV1PageReact; -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.23.0-SNAPSHOT") -public class DeleteV2PageReactResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteV2PageReactResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteV2PageReactResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteV2PageReactResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterCreateV1PageReact = gson.getDelegateAdapter(this, TypeToken.get(CreateV1PageReact.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteV2PageReactResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `CreateV1PageReact` - if (value.getActualInstance() instanceof CreateV1PageReact) { - JsonElement element = adapterCreateV1PageReact.toJsonTree((CreateV1PageReact)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, CreateV1PageReact"); - } - - @Override - public DeleteV2PageReactResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize CreateV1PageReact - try { - // validate the JSON object to see if any exception is thrown - CreateV1PageReact.validateJsonElement(jsonElement); - actualAdapter = adapterCreateV1PageReact; - DeleteV2PageReactResponse ret = new DeleteV2PageReactResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'CreateV1PageReact'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - DeleteV2PageReactResponse ret = new DeleteV2PageReactResponse(); - 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 DeleteV2PageReactResponse: 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 DeleteV2PageReactResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteV2PageReactResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateV1PageReact", CreateV1PageReact.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteV2PageReactResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, CreateV1PageReact - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof CreateV1PageReact) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, CreateV1PageReact"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, CreateV1PageReact - * - * @return The actual instance (APIError, CreateV1PageReact) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `CreateV1PageReact`. If the actual instance is not `CreateV1PageReact`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `CreateV1PageReact` - * @throws ClassCastException if the instance is not `CreateV1PageReact` - */ - public CreateV1PageReact getCreateV1PageReact() throws ClassCastException { - return (CreateV1PageReact)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 DeleteV2PageReactResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with CreateV1PageReact - try { - CreateV1PageReact.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for CreateV1PageReact 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 DeleteV2PageReactResponse with anyOf schemas: APIError, CreateV1PageReact. 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 DeleteV2PageReactResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteV2PageReactResponse - * @throws IOException if the JSON string is invalid with respect to DeleteV2PageReactResponse - */ - public static DeleteV2PageReactResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteV2PageReactResponse.class); - } - - /** - * Convert an instance of DeleteV2PageReactResponse 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/DeleteVoteResponse.java b/client/src/main/java/com/fastcomments/model/DeleteVoteResponse.java deleted file mode 100644 index 62eb4a32..00000000 --- a/client/src/main/java/com/fastcomments/model/DeleteVoteResponse.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.23.0-SNAPSHOT") -public class DeleteVoteResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(DeleteVoteResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteVoteResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteVoteResponse' 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, DeleteVoteResponse 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 DeleteVoteResponse 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; - DeleteVoteResponse ret = new DeleteVoteResponse(); - 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; - DeleteVoteResponse ret = new DeleteVoteResponse(); - 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 DeleteVoteResponse: 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 DeleteVoteResponse() { - super("anyOf", Boolean.FALSE); - } - - public DeleteVoteResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("VoteDeleteResponse", VoteDeleteResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return DeleteVoteResponse.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 DeleteVoteResponse - */ - 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 DeleteVoteResponse 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 DeleteVoteResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeleteVoteResponse - * @throws IOException if the JSON string is invalid with respect to DeleteVoteResponse - */ - public static DeleteVoteResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DeleteVoteResponse.class); - } - - /** - * Convert an instance of DeleteVoteResponse 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/FlagCommentPublicResponse.java b/client/src/main/java/com/fastcomments/model/FlagCommentPublicResponse.java deleted file mode 100644 index 184843bd..00000000 --- a/client/src/main/java/com/fastcomments/model/FlagCommentPublicResponse.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.23.0-SNAPSHOT") -public class FlagCommentPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(FlagCommentPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FlagCommentPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FlagCommentPublicResponse' 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, FlagCommentPublicResponse 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 FlagCommentPublicResponse 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; - FlagCommentPublicResponse ret = new FlagCommentPublicResponse(); - 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; - FlagCommentPublicResponse ret = new FlagCommentPublicResponse(); - 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 FlagCommentPublicResponse: 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 FlagCommentPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public FlagCommentPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return FlagCommentPublicResponse.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 FlagCommentPublicResponse - */ - 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 FlagCommentPublicResponse 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 FlagCommentPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of FlagCommentPublicResponse - * @throws IOException if the JSON string is invalid with respect to FlagCommentPublicResponse - */ - public static FlagCommentPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FlagCommentPublicResponse.class); - } - - /** - * Convert an instance of FlagCommentPublicResponse 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/FlagCommentResponse1.java b/client/src/main/java/com/fastcomments/model/FlagCommentResponse1.java deleted file mode 100644 index f80197ee..00000000 --- a/client/src/main/java/com/fastcomments/model/FlagCommentResponse1.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.23.0-SNAPSHOT") -public class FlagCommentResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(FlagCommentResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FlagCommentResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FlagCommentResponse1' 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, FlagCommentResponse1 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 FlagCommentResponse1 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; - FlagCommentResponse1 ret = new FlagCommentResponse1(); - 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; - FlagCommentResponse1 ret = new FlagCommentResponse1(); - 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 FlagCommentResponse1: 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 FlagCommentResponse1() { - super("anyOf", Boolean.FALSE); - } - - public FlagCommentResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("FlagCommentResponse", FlagCommentResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return FlagCommentResponse1.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 FlagCommentResponse1 - */ - 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 FlagCommentResponse1 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 FlagCommentResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of FlagCommentResponse1 - * @throws IOException if the JSON string is invalid with respect to FlagCommentResponse1 - */ - public static FlagCommentResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FlagCommentResponse1.class); - } - - /** - * Convert an instance of FlagCommentResponse1 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/GetApiCommentsResponse.java b/client/src/main/java/com/fastcomments/model/GetApiCommentsResponse.java deleted file mode 100644 index ffd7b7e9..00000000 --- a/client/src/main/java/com/fastcomments/model/GetApiCommentsResponse.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.ModerationAPIComment; -import com.fastcomments.model.ModerationAPIGetCommentsResponse; -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 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 GetApiCommentsResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetApiCommentsResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetApiCommentsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetApiCommentsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationAPIGetCommentsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIGetCommentsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetApiCommentsResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationAPIGetCommentsResponse` - if (value.getActualInstance() instanceof ModerationAPIGetCommentsResponse) { - JsonElement element = adapterModerationAPIGetCommentsResponse.toJsonTree((ModerationAPIGetCommentsResponse)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, ModerationAPIGetCommentsResponse"); - } - - @Override - public GetApiCommentsResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationAPIGetCommentsResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationAPIGetCommentsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationAPIGetCommentsResponse; - GetApiCommentsResponse ret = new GetApiCommentsResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetCommentsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationAPIGetCommentsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetApiCommentsResponse ret = new GetApiCommentsResponse(); - 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 GetApiCommentsResponse: 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 GetApiCommentsResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetApiCommentsResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationAPIGetCommentsResponse", ModerationAPIGetCommentsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetApiCommentsResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationAPIGetCommentsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationAPIGetCommentsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPIGetCommentsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationAPIGetCommentsResponse - * - * @return The actual instance (APIError, ModerationAPIGetCommentsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationAPIGetCommentsResponse`. If the actual instance is not `ModerationAPIGetCommentsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationAPIGetCommentsResponse` - * @throws ClassCastException if the instance is not `ModerationAPIGetCommentsResponse` - */ - public ModerationAPIGetCommentsResponse getModerationAPIGetCommentsResponse() throws ClassCastException { - return (ModerationAPIGetCommentsResponse)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 GetApiCommentsResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationAPIGetCommentsResponse - try { - ModerationAPIGetCommentsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetCommentsResponse 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 GetApiCommentsResponse with anyOf schemas: APIError, ModerationAPIGetCommentsResponse. 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 GetApiCommentsResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetApiCommentsResponse - * @throws IOException if the JSON string is invalid with respect to GetApiCommentsResponse - */ - public static GetApiCommentsResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetApiCommentsResponse.class); - } - - /** - * Convert an instance of GetApiCommentsResponse 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/GetApiExportStatusResponse.java b/client/src/main/java/com/fastcomments/model/GetApiExportStatusResponse.java deleted file mode 100644 index 68cfaee5..00000000 --- a/client/src/main/java/com/fastcomments/model/GetApiExportStatusResponse.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.ModerationExportStatusResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetApiExportStatusResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetApiExportStatusResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetApiExportStatusResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetApiExportStatusResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationExportStatusResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationExportStatusResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetApiExportStatusResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationExportStatusResponse` - if (value.getActualInstance() instanceof ModerationExportStatusResponse) { - JsonElement element = adapterModerationExportStatusResponse.toJsonTree((ModerationExportStatusResponse)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, ModerationExportStatusResponse"); - } - - @Override - public GetApiExportStatusResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationExportStatusResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationExportStatusResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationExportStatusResponse; - GetApiExportStatusResponse ret = new GetApiExportStatusResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationExportStatusResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationExportStatusResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetApiExportStatusResponse ret = new GetApiExportStatusResponse(); - 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 GetApiExportStatusResponse: 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 GetApiExportStatusResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetApiExportStatusResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationExportStatusResponse", ModerationExportStatusResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetApiExportStatusResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationExportStatusResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationExportStatusResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationExportStatusResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationExportStatusResponse - * - * @return The actual instance (APIError, ModerationExportStatusResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationExportStatusResponse`. If the actual instance is not `ModerationExportStatusResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationExportStatusResponse` - * @throws ClassCastException if the instance is not `ModerationExportStatusResponse` - */ - public ModerationExportStatusResponse getModerationExportStatusResponse() throws ClassCastException { - return (ModerationExportStatusResponse)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 GetApiExportStatusResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationExportStatusResponse - try { - ModerationExportStatusResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationExportStatusResponse 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 GetApiExportStatusResponse with anyOf schemas: APIError, ModerationExportStatusResponse. 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 GetApiExportStatusResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetApiExportStatusResponse - * @throws IOException if the JSON string is invalid with respect to GetApiExportStatusResponse - */ - public static GetApiExportStatusResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetApiExportStatusResponse.class); - } - - /** - * Convert an instance of GetApiExportStatusResponse 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/GetApiIdsResponse.java b/client/src/main/java/com/fastcomments/model/GetApiIdsResponse.java deleted file mode 100644 index b3ddb018..00000000 --- a/client/src/main/java/com/fastcomments/model/GetApiIdsResponse.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.ModerationAPIGetCommentIdsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetApiIdsResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetApiIdsResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetApiIdsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetApiIdsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationAPIGetCommentIdsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIGetCommentIdsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetApiIdsResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationAPIGetCommentIdsResponse` - if (value.getActualInstance() instanceof ModerationAPIGetCommentIdsResponse) { - JsonElement element = adapterModerationAPIGetCommentIdsResponse.toJsonTree((ModerationAPIGetCommentIdsResponse)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, ModerationAPIGetCommentIdsResponse"); - } - - @Override - public GetApiIdsResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationAPIGetCommentIdsResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationAPIGetCommentIdsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationAPIGetCommentIdsResponse; - GetApiIdsResponse ret = new GetApiIdsResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetCommentIdsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationAPIGetCommentIdsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetApiIdsResponse ret = new GetApiIdsResponse(); - 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 GetApiIdsResponse: 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 GetApiIdsResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetApiIdsResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationAPIGetCommentIdsResponse", ModerationAPIGetCommentIdsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetApiIdsResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationAPIGetCommentIdsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationAPIGetCommentIdsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPIGetCommentIdsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationAPIGetCommentIdsResponse - * - * @return The actual instance (APIError, ModerationAPIGetCommentIdsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationAPIGetCommentIdsResponse`. If the actual instance is not `ModerationAPIGetCommentIdsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationAPIGetCommentIdsResponse` - * @throws ClassCastException if the instance is not `ModerationAPIGetCommentIdsResponse` - */ - public ModerationAPIGetCommentIdsResponse getModerationAPIGetCommentIdsResponse() throws ClassCastException { - return (ModerationAPIGetCommentIdsResponse)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 GetApiIdsResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationAPIGetCommentIdsResponse - try { - ModerationAPIGetCommentIdsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetCommentIdsResponse 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 GetApiIdsResponse with anyOf schemas: APIError, ModerationAPIGetCommentIdsResponse. 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 GetApiIdsResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetApiIdsResponse - * @throws IOException if the JSON string is invalid with respect to GetApiIdsResponse - */ - public static GetApiIdsResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetApiIdsResponse.class); - } - - /** - * Convert an instance of GetApiIdsResponse 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/GetAuditLogsResponse1.java b/client/src/main/java/com/fastcomments/model/GetAuditLogsResponse1.java deleted file mode 100644 index ec80223d..00000000 --- a/client/src/main/java/com/fastcomments/model/GetAuditLogsResponse1.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.23.0-SNAPSHOT") -public class GetAuditLogsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetAuditLogsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetAuditLogsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetAuditLogsResponse1' 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, GetAuditLogsResponse1 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 GetAuditLogsResponse1 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; - GetAuditLogsResponse1 ret = new GetAuditLogsResponse1(); - 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; - GetAuditLogsResponse1 ret = new GetAuditLogsResponse1(); - 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 GetAuditLogsResponse1: 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 GetAuditLogsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetAuditLogsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetAuditLogsResponse", GetAuditLogsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetAuditLogsResponse1.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 GetAuditLogsResponse1 - */ - 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 GetAuditLogsResponse1 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 GetAuditLogsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetAuditLogsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetAuditLogsResponse1 - */ - public static GetAuditLogsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetAuditLogsResponse1.class); - } - - /** - * Convert an instance of GetAuditLogsResponse1 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/GetBanUsersFromCommentResponse.java b/client/src/main/java/com/fastcomments/model/GetBanUsersFromCommentResponse.java deleted file mode 100644 index 7911fbd2..00000000 --- a/client/src/main/java/com/fastcomments/model/GetBanUsersFromCommentResponse.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.APIBannedUserWithMultiMatchInfo; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetBannedUsersFromCommentResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetBanUsersFromCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetBanUsersFromCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetBanUsersFromCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetBanUsersFromCommentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetBannedUsersFromCommentResponse = gson.getDelegateAdapter(this, TypeToken.get(GetBannedUsersFromCommentResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetBanUsersFromCommentResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetBannedUsersFromCommentResponse` - if (value.getActualInstance() instanceof GetBannedUsersFromCommentResponse) { - JsonElement element = adapterGetBannedUsersFromCommentResponse.toJsonTree((GetBannedUsersFromCommentResponse)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, GetBannedUsersFromCommentResponse"); - } - - @Override - public GetBanUsersFromCommentResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetBannedUsersFromCommentResponse - try { - // validate the JSON object to see if any exception is thrown - GetBannedUsersFromCommentResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetBannedUsersFromCommentResponse; - GetBanUsersFromCommentResponse ret = new GetBanUsersFromCommentResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetBannedUsersFromCommentResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetBannedUsersFromCommentResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetBanUsersFromCommentResponse ret = new GetBanUsersFromCommentResponse(); - 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 GetBanUsersFromCommentResponse: 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 GetBanUsersFromCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetBanUsersFromCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetBannedUsersFromCommentResponse", GetBannedUsersFromCommentResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetBanUsersFromCommentResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetBannedUsersFromCommentResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetBannedUsersFromCommentResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetBannedUsersFromCommentResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetBannedUsersFromCommentResponse - * - * @return The actual instance (APIError, GetBannedUsersFromCommentResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetBannedUsersFromCommentResponse`. If the actual instance is not `GetBannedUsersFromCommentResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetBannedUsersFromCommentResponse` - * @throws ClassCastException if the instance is not `GetBannedUsersFromCommentResponse` - */ - public GetBannedUsersFromCommentResponse getGetBannedUsersFromCommentResponse() throws ClassCastException { - return (GetBannedUsersFromCommentResponse)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 GetBanUsersFromCommentResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetBannedUsersFromCommentResponse - try { - GetBannedUsersFromCommentResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetBannedUsersFromCommentResponse 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 GetBanUsersFromCommentResponse with anyOf schemas: APIError, GetBannedUsersFromCommentResponse. 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 GetBanUsersFromCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetBanUsersFromCommentResponse - * @throws IOException if the JSON string is invalid with respect to GetBanUsersFromCommentResponse - */ - public static GetBanUsersFromCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetBanUsersFromCommentResponse.class); - } - - /** - * Convert an instance of GetBanUsersFromCommentResponse 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/GetCachedNotificationCountResponse1.java b/client/src/main/java/com/fastcomments/model/GetCachedNotificationCountResponse1.java deleted file mode 100644 index 37a50395..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCachedNotificationCountResponse1.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.23.0-SNAPSHOT") -public class GetCachedNotificationCountResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCachedNotificationCountResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCachedNotificationCountResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCachedNotificationCountResponse1' 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, GetCachedNotificationCountResponse1 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 GetCachedNotificationCountResponse1 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; - GetCachedNotificationCountResponse1 ret = new GetCachedNotificationCountResponse1(); - 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; - GetCachedNotificationCountResponse1 ret = new GetCachedNotificationCountResponse1(); - 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 GetCachedNotificationCountResponse1: 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 GetCachedNotificationCountResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetCachedNotificationCountResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetCachedNotificationCountResponse", GetCachedNotificationCountResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCachedNotificationCountResponse1.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 GetCachedNotificationCountResponse1 - */ - 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 GetCachedNotificationCountResponse1 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 GetCachedNotificationCountResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCachedNotificationCountResponse1 - * @throws IOException if the JSON string is invalid with respect to GetCachedNotificationCountResponse1 - */ - public static GetCachedNotificationCountResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCachedNotificationCountResponse1.class); - } - - /** - * Convert an instance of GetCachedNotificationCountResponse1 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/GetCommentBanStatusResponse1.java b/client/src/main/java/com/fastcomments/model/GetCommentBanStatusResponse1.java deleted file mode 100644 index 90b0b318..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCommentBanStatusResponse1.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.GetCommentBanStatusResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetCommentBanStatusResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCommentBanStatusResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCommentBanStatusResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCommentBanStatusResponse1' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetCommentBanStatusResponse = gson.getDelegateAdapter(this, TypeToken.get(GetCommentBanStatusResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCommentBanStatusResponse1 value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetCommentBanStatusResponse` - if (value.getActualInstance() instanceof GetCommentBanStatusResponse) { - JsonElement element = adapterGetCommentBanStatusResponse.toJsonTree((GetCommentBanStatusResponse)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, GetCommentBanStatusResponse"); - } - - @Override - public GetCommentBanStatusResponse1 read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetCommentBanStatusResponse - try { - // validate the JSON object to see if any exception is thrown - GetCommentBanStatusResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetCommentBanStatusResponse; - GetCommentBanStatusResponse1 ret = new GetCommentBanStatusResponse1(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentBanStatusResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetCommentBanStatusResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetCommentBanStatusResponse1 ret = new GetCommentBanStatusResponse1(); - 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 GetCommentBanStatusResponse1: 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 GetCommentBanStatusResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetCommentBanStatusResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetCommentBanStatusResponse", GetCommentBanStatusResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCommentBanStatusResponse1.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetCommentBanStatusResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetCommentBanStatusResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetCommentBanStatusResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetCommentBanStatusResponse - * - * @return The actual instance (APIError, GetCommentBanStatusResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetCommentBanStatusResponse`. If the actual instance is not `GetCommentBanStatusResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetCommentBanStatusResponse` - * @throws ClassCastException if the instance is not `GetCommentBanStatusResponse` - */ - public GetCommentBanStatusResponse getGetCommentBanStatusResponse() throws ClassCastException { - return (GetCommentBanStatusResponse)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 GetCommentBanStatusResponse1 - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetCommentBanStatusResponse - try { - GetCommentBanStatusResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentBanStatusResponse 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 GetCommentBanStatusResponse1 with anyOf schemas: APIError, GetCommentBanStatusResponse. 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 GetCommentBanStatusResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCommentBanStatusResponse1 - * @throws IOException if the JSON string is invalid with respect to GetCommentBanStatusResponse1 - */ - public static GetCommentBanStatusResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCommentBanStatusResponse1.class); - } - - /** - * Convert an instance of GetCommentBanStatusResponse1 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/GetCommentChildrenResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentChildrenResponse.java deleted file mode 100644 index 1c9a4d72..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCommentChildrenResponse.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.ModerationAPIChildCommentsResponse; -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 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 GetCommentChildrenResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCommentChildrenResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCommentChildrenResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCommentChildrenResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationAPIChildCommentsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIChildCommentsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCommentChildrenResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationAPIChildCommentsResponse` - if (value.getActualInstance() instanceof ModerationAPIChildCommentsResponse) { - JsonElement element = adapterModerationAPIChildCommentsResponse.toJsonTree((ModerationAPIChildCommentsResponse)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, ModerationAPIChildCommentsResponse"); - } - - @Override - public GetCommentChildrenResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationAPIChildCommentsResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationAPIChildCommentsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationAPIChildCommentsResponse; - GetCommentChildrenResponse ret = new GetCommentChildrenResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIChildCommentsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationAPIChildCommentsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetCommentChildrenResponse ret = new GetCommentChildrenResponse(); - 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 GetCommentChildrenResponse: 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 GetCommentChildrenResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetCommentChildrenResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationAPIChildCommentsResponse", ModerationAPIChildCommentsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCommentChildrenResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationAPIChildCommentsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationAPIChildCommentsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPIChildCommentsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationAPIChildCommentsResponse - * - * @return The actual instance (APIError, ModerationAPIChildCommentsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationAPIChildCommentsResponse`. If the actual instance is not `ModerationAPIChildCommentsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationAPIChildCommentsResponse` - * @throws ClassCastException if the instance is not `ModerationAPIChildCommentsResponse` - */ - public ModerationAPIChildCommentsResponse getModerationAPIChildCommentsResponse() throws ClassCastException { - return (ModerationAPIChildCommentsResponse)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 GetCommentChildrenResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationAPIChildCommentsResponse - try { - ModerationAPIChildCommentsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIChildCommentsResponse 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 GetCommentChildrenResponse with anyOf schemas: APIError, ModerationAPIChildCommentsResponse. 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 GetCommentChildrenResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCommentChildrenResponse - * @throws IOException if the JSON string is invalid with respect to GetCommentChildrenResponse - */ - public static GetCommentChildrenResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCommentChildrenResponse.class); - } - - /** - * Convert an instance of GetCommentChildrenResponse 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/GetCommentResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentResponse.java deleted file mode 100644 index b53efa84..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCommentResponse.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.23.0-SNAPSHOT") -public class GetCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCommentResponse' 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, GetCommentResponse 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 GetCommentResponse 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; - GetCommentResponse ret = new GetCommentResponse(); - 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; - GetCommentResponse ret = new GetCommentResponse(); - 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 GetCommentResponse: 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 GetCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetCommentResponse", APIGetCommentResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCommentResponse.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 GetCommentResponse - */ - 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 GetCommentResponse 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 GetCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCommentResponse - * @throws IOException if the JSON string is invalid with respect to GetCommentResponse - */ - public static GetCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCommentResponse.class); - } - - /** - * Convert an instance of GetCommentResponse 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/GetCommentTextResponse1.java b/client/src/main/java/com/fastcomments/model/GetCommentTextResponse1.java deleted file mode 100644 index fc1db913..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCommentTextResponse1.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.23.0-SNAPSHOT") -public class GetCommentTextResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCommentTextResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCommentTextResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCommentTextResponse1' 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, GetCommentTextResponse1 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 GetCommentTextResponse1 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; - GetCommentTextResponse1 ret = new GetCommentTextResponse1(); - 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; - GetCommentTextResponse1 ret = new GetCommentTextResponse1(); - 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 GetCommentTextResponse1: 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 GetCommentTextResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetCommentTextResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("PublicAPIGetCommentTextResponse", PublicAPIGetCommentTextResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCommentTextResponse1.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 GetCommentTextResponse1 - */ - 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 GetCommentTextResponse1 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 GetCommentTextResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCommentTextResponse1 - * @throws IOException if the JSON string is invalid with respect to GetCommentTextResponse1 - */ - public static GetCommentTextResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCommentTextResponse1.class); - } - - /** - * Convert an instance of GetCommentTextResponse1 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/GetCommentVoteUserNamesResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentVoteUserNamesResponse.java deleted file mode 100644 index 5322f52f..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCommentVoteUserNamesResponse.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.23.0-SNAPSHOT") -public class GetCommentVoteUserNamesResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCommentVoteUserNamesResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCommentVoteUserNamesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCommentVoteUserNamesResponse' 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, GetCommentVoteUserNamesResponse 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 GetCommentVoteUserNamesResponse 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; - GetCommentVoteUserNamesResponse ret = new GetCommentVoteUserNamesResponse(); - 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; - GetCommentVoteUserNamesResponse ret = new GetCommentVoteUserNamesResponse(); - 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 GetCommentVoteUserNamesResponse: 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 GetCommentVoteUserNamesResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetCommentVoteUserNamesResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetCommentVoteUserNamesSuccessResponse", GetCommentVoteUserNamesSuccessResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCommentVoteUserNamesResponse.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 GetCommentVoteUserNamesResponse - */ - 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 GetCommentVoteUserNamesResponse 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 GetCommentVoteUserNamesResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCommentVoteUserNamesResponse - * @throws IOException if the JSON string is invalid with respect to GetCommentVoteUserNamesResponse - */ - public static GetCommentVoteUserNamesResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCommentVoteUserNamesResponse.class); - } - - /** - * Convert an instance of GetCommentVoteUserNamesResponse 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/GetCommentsForUserResponse1.java b/client/src/main/java/com/fastcomments/model/GetCommentsForUserResponse1.java deleted file mode 100644 index d59093ce..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCommentsForUserResponse1.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.GetCommentsForUserResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetCommentsForUserResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCommentsForUserResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCommentsForUserResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCommentsForUserResponse1' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetCommentsForUserResponse = gson.getDelegateAdapter(this, TypeToken.get(GetCommentsForUserResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCommentsForUserResponse1 value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetCommentsForUserResponse` - if (value.getActualInstance() instanceof GetCommentsForUserResponse) { - JsonElement element = adapterGetCommentsForUserResponse.toJsonTree((GetCommentsForUserResponse)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, GetCommentsForUserResponse"); - } - - @Override - public GetCommentsForUserResponse1 read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetCommentsForUserResponse - try { - // validate the JSON object to see if any exception is thrown - GetCommentsForUserResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetCommentsForUserResponse; - GetCommentsForUserResponse1 ret = new GetCommentsForUserResponse1(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentsForUserResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetCommentsForUserResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetCommentsForUserResponse1 ret = new GetCommentsForUserResponse1(); - 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 GetCommentsForUserResponse1: 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 GetCommentsForUserResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetCommentsForUserResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetCommentsForUserResponse", GetCommentsForUserResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCommentsForUserResponse1.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetCommentsForUserResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetCommentsForUserResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetCommentsForUserResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetCommentsForUserResponse - * - * @return The actual instance (APIError, GetCommentsForUserResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetCommentsForUserResponse`. If the actual instance is not `GetCommentsForUserResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetCommentsForUserResponse` - * @throws ClassCastException if the instance is not `GetCommentsForUserResponse` - */ - public GetCommentsForUserResponse getGetCommentsForUserResponse() throws ClassCastException { - return (GetCommentsForUserResponse)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 GetCommentsForUserResponse1 - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetCommentsForUserResponse - try { - GetCommentsForUserResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentsForUserResponse 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 GetCommentsForUserResponse1 with anyOf schemas: APIError, GetCommentsForUserResponse. 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 GetCommentsForUserResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCommentsForUserResponse1 - * @throws IOException if the JSON string is invalid with respect to GetCommentsForUserResponse1 - */ - public static GetCommentsForUserResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCommentsForUserResponse1.class); - } - - /** - * Convert an instance of GetCommentsForUserResponse1 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/GetCommentsPublicResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentsPublicResponse.java deleted file mode 100644 index 0a7d2532..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCommentsPublicResponse.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.23.0-SNAPSHOT") -public class GetCommentsPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCommentsPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCommentsPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCommentsPublicResponse' 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, GetCommentsPublicResponse 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 GetCommentsPublicResponse 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; - GetCommentsPublicResponse ret = new GetCommentsPublicResponse(); - 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; - GetCommentsPublicResponse ret = new GetCommentsPublicResponse(); - 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 GetCommentsPublicResponse: 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 GetCommentsPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetCommentsPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetCommentsResponseWithPresencePublicComment", GetCommentsResponseWithPresencePublicComment.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCommentsPublicResponse.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 GetCommentsPublicResponse - */ - 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 GetCommentsPublicResponse 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 GetCommentsPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCommentsPublicResponse - * @throws IOException if the JSON string is invalid with respect to GetCommentsPublicResponse - */ - public static GetCommentsPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCommentsPublicResponse.class); - } - - /** - * Convert an instance of GetCommentsPublicResponse 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/GetCommentsResponse.java b/client/src/main/java/com/fastcomments/model/GetCommentsResponse.java deleted file mode 100644 index 05db1826..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCommentsResponse.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.23.0-SNAPSHOT") -public class GetCommentsResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCommentsResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCommentsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCommentsResponse' 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, GetCommentsResponse 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 GetCommentsResponse 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; - GetCommentsResponse ret = new GetCommentsResponse(); - 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; - GetCommentsResponse ret = new GetCommentsResponse(); - 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 GetCommentsResponse: 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 GetCommentsResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetCommentsResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetCommentsResponse", APIGetCommentsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCommentsResponse.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 GetCommentsResponse - */ - 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 GetCommentsResponse 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 GetCommentsResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCommentsResponse - * @throws IOException if the JSON string is invalid with respect to GetCommentsResponse - */ - public static GetCommentsResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCommentsResponse.class); - } - - /** - * Convert an instance of GetCommentsResponse 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/GetCountResponse.java b/client/src/main/java/com/fastcomments/model/GetCountResponse.java deleted file mode 100644 index 227266f1..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCountResponse.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.ModerationAPICountCommentsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetCountResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCountResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCountResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCountResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationAPICountCommentsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPICountCommentsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCountResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationAPICountCommentsResponse` - if (value.getActualInstance() instanceof ModerationAPICountCommentsResponse) { - JsonElement element = adapterModerationAPICountCommentsResponse.toJsonTree((ModerationAPICountCommentsResponse)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, ModerationAPICountCommentsResponse"); - } - - @Override - public GetCountResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationAPICountCommentsResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationAPICountCommentsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationAPICountCommentsResponse; - GetCountResponse ret = new GetCountResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPICountCommentsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationAPICountCommentsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetCountResponse ret = new GetCountResponse(); - 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 GetCountResponse: 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 GetCountResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetCountResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationAPICountCommentsResponse", ModerationAPICountCommentsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCountResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationAPICountCommentsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationAPICountCommentsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPICountCommentsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationAPICountCommentsResponse - * - * @return The actual instance (APIError, ModerationAPICountCommentsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationAPICountCommentsResponse`. If the actual instance is not `ModerationAPICountCommentsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationAPICountCommentsResponse` - * @throws ClassCastException if the instance is not `ModerationAPICountCommentsResponse` - */ - public ModerationAPICountCommentsResponse getModerationAPICountCommentsResponse() throws ClassCastException { - return (ModerationAPICountCommentsResponse)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 GetCountResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationAPICountCommentsResponse - try { - ModerationAPICountCommentsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPICountCommentsResponse 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 GetCountResponse with anyOf schemas: APIError, ModerationAPICountCommentsResponse. 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 GetCountResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCountResponse - * @throws IOException if the JSON string is invalid with respect to GetCountResponse - */ - public static GetCountResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCountResponse.class); - } - - /** - * Convert an instance of GetCountResponse 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/GetCountsResponse.java b/client/src/main/java/com/fastcomments/model/GetCountsResponse.java deleted file mode 100644 index bf02e984..00000000 --- a/client/src/main/java/com/fastcomments/model/GetCountsResponse.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.GetBannedUsersCountResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetCountsResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetCountsResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCountsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCountsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetBannedUsersCountResponse = gson.getDelegateAdapter(this, TypeToken.get(GetBannedUsersCountResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCountsResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetBannedUsersCountResponse` - if (value.getActualInstance() instanceof GetBannedUsersCountResponse) { - JsonElement element = adapterGetBannedUsersCountResponse.toJsonTree((GetBannedUsersCountResponse)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, GetBannedUsersCountResponse"); - } - - @Override - public GetCountsResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetBannedUsersCountResponse - try { - // validate the JSON object to see if any exception is thrown - GetBannedUsersCountResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetBannedUsersCountResponse; - GetCountsResponse ret = new GetCountsResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetBannedUsersCountResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetBannedUsersCountResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetCountsResponse ret = new GetCountsResponse(); - 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 GetCountsResponse: 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 GetCountsResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetCountsResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetBannedUsersCountResponse", GetBannedUsersCountResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetCountsResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetBannedUsersCountResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetBannedUsersCountResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetBannedUsersCountResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetBannedUsersCountResponse - * - * @return The actual instance (APIError, GetBannedUsersCountResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetBannedUsersCountResponse`. If the actual instance is not `GetBannedUsersCountResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetBannedUsersCountResponse` - * @throws ClassCastException if the instance is not `GetBannedUsersCountResponse` - */ - public GetBannedUsersCountResponse getGetBannedUsersCountResponse() throws ClassCastException { - return (GetBannedUsersCountResponse)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 GetCountsResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetBannedUsersCountResponse - try { - GetBannedUsersCountResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetBannedUsersCountResponse 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 GetCountsResponse with anyOf schemas: APIError, GetBannedUsersCountResponse. 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 GetCountsResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetCountsResponse - * @throws IOException if the JSON string is invalid with respect to GetCountsResponse - */ - public static GetCountsResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetCountsResponse.class); - } - - /** - * Convert an instance of GetCountsResponse 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/GetEmailTemplateDefinitionsResponse1.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1.java deleted file mode 100644 index 5713ff49..00000000 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1.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.23.0-SNAPSHOT") -public class GetEmailTemplateDefinitionsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetEmailTemplateDefinitionsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEmailTemplateDefinitionsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEmailTemplateDefinitionsResponse1' 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, GetEmailTemplateDefinitionsResponse1 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 GetEmailTemplateDefinitionsResponse1 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; - GetEmailTemplateDefinitionsResponse1 ret = new GetEmailTemplateDefinitionsResponse1(); - 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; - GetEmailTemplateDefinitionsResponse1 ret = new GetEmailTemplateDefinitionsResponse1(); - 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 GetEmailTemplateDefinitionsResponse1: 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 GetEmailTemplateDefinitionsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetEmailTemplateDefinitionsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetEmailTemplateDefinitionsResponse", GetEmailTemplateDefinitionsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetEmailTemplateDefinitionsResponse1.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 GetEmailTemplateDefinitionsResponse1 - */ - 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 GetEmailTemplateDefinitionsResponse1 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 GetEmailTemplateDefinitionsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetEmailTemplateDefinitionsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetEmailTemplateDefinitionsResponse1 - */ - public static GetEmailTemplateDefinitionsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetEmailTemplateDefinitionsResponse1.class); - } - - /** - * Convert an instance of GetEmailTemplateDefinitionsResponse1 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/GetEmailTemplateRenderErrorsResponse1.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1.java deleted file mode 100644 index 5ee1c716..00000000 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1.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.23.0-SNAPSHOT") -public class GetEmailTemplateRenderErrorsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetEmailTemplateRenderErrorsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEmailTemplateRenderErrorsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEmailTemplateRenderErrorsResponse1' 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, GetEmailTemplateRenderErrorsResponse1 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 GetEmailTemplateRenderErrorsResponse1 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; - GetEmailTemplateRenderErrorsResponse1 ret = new GetEmailTemplateRenderErrorsResponse1(); - 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; - GetEmailTemplateRenderErrorsResponse1 ret = new GetEmailTemplateRenderErrorsResponse1(); - 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 GetEmailTemplateRenderErrorsResponse1: 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 GetEmailTemplateRenderErrorsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetEmailTemplateRenderErrorsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetEmailTemplateRenderErrorsResponse", GetEmailTemplateRenderErrorsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetEmailTemplateRenderErrorsResponse1.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 GetEmailTemplateRenderErrorsResponse1 - */ - 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 GetEmailTemplateRenderErrorsResponse1 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 GetEmailTemplateRenderErrorsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetEmailTemplateRenderErrorsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetEmailTemplateRenderErrorsResponse1 - */ - public static GetEmailTemplateRenderErrorsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetEmailTemplateRenderErrorsResponse1.class); - } - - /** - * Convert an instance of GetEmailTemplateRenderErrorsResponse1 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/GetEmailTemplateResponse1.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplateResponse1.java deleted file mode 100644 index edd128eb..00000000 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplateResponse1.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.23.0-SNAPSHOT") -public class GetEmailTemplateResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetEmailTemplateResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEmailTemplateResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEmailTemplateResponse1' 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, GetEmailTemplateResponse1 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 GetEmailTemplateResponse1 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; - GetEmailTemplateResponse1 ret = new GetEmailTemplateResponse1(); - 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; - GetEmailTemplateResponse1 ret = new GetEmailTemplateResponse1(); - 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 GetEmailTemplateResponse1: 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 GetEmailTemplateResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetEmailTemplateResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetEmailTemplateResponse", GetEmailTemplateResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetEmailTemplateResponse1.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 GetEmailTemplateResponse1 - */ - 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 GetEmailTemplateResponse1 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 GetEmailTemplateResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetEmailTemplateResponse1 - * @throws IOException if the JSON string is invalid with respect to GetEmailTemplateResponse1 - */ - public static GetEmailTemplateResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetEmailTemplateResponse1.class); - } - - /** - * Convert an instance of GetEmailTemplateResponse1 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/GetEmailTemplatesResponse1.java b/client/src/main/java/com/fastcomments/model/GetEmailTemplatesResponse1.java deleted file mode 100644 index d7ac9dff..00000000 --- a/client/src/main/java/com/fastcomments/model/GetEmailTemplatesResponse1.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.23.0-SNAPSHOT") -public class GetEmailTemplatesResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetEmailTemplatesResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEmailTemplatesResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEmailTemplatesResponse1' 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, GetEmailTemplatesResponse1 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 GetEmailTemplatesResponse1 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; - GetEmailTemplatesResponse1 ret = new GetEmailTemplatesResponse1(); - 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; - GetEmailTemplatesResponse1 ret = new GetEmailTemplatesResponse1(); - 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 GetEmailTemplatesResponse1: 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 GetEmailTemplatesResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetEmailTemplatesResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetEmailTemplatesResponse", GetEmailTemplatesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetEmailTemplatesResponse1.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 GetEmailTemplatesResponse1 - */ - 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 GetEmailTemplatesResponse1 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 GetEmailTemplatesResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetEmailTemplatesResponse1 - * @throws IOException if the JSON string is invalid with respect to GetEmailTemplatesResponse1 - */ - public static GetEmailTemplatesResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetEmailTemplatesResponse1.class); - } - - /** - * Convert an instance of GetEmailTemplatesResponse1 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/GetEventLogResponse1.java b/client/src/main/java/com/fastcomments/model/GetEventLogResponse1.java deleted file mode 100644 index ae30bc8e..00000000 --- a/client/src/main/java/com/fastcomments/model/GetEventLogResponse1.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.23.0-SNAPSHOT") -public class GetEventLogResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetEventLogResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEventLogResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEventLogResponse1' 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, GetEventLogResponse1 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 GetEventLogResponse1 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; - GetEventLogResponse1 ret = new GetEventLogResponse1(); - 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; - GetEventLogResponse1 ret = new GetEventLogResponse1(); - 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 GetEventLogResponse1: 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 GetEventLogResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetEventLogResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetEventLogResponse", GetEventLogResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetEventLogResponse1.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 GetEventLogResponse1 - */ - 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 GetEventLogResponse1 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 GetEventLogResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetEventLogResponse1 - * @throws IOException if the JSON string is invalid with respect to GetEventLogResponse1 - */ - public static GetEventLogResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetEventLogResponse1.class); - } - - /** - * Convert an instance of GetEventLogResponse1 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/GetFeedPostsPublicResponse.java b/client/src/main/java/com/fastcomments/model/GetFeedPostsPublicResponse.java deleted file mode 100644 index 58678cfc..00000000 --- a/client/src/main/java/com/fastcomments/model/GetFeedPostsPublicResponse.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.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 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 GetFeedPostsPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetFeedPostsPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetFeedPostsPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetFeedPostsPublicResponse' 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)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetFeedPostsPublicResponse 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); - 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, PublicFeedPostsResponse"); - } - - @Override - public GetFeedPostsPublicResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize PublicFeedPostsResponse - try { - // validate the JSON object to see if any exception is thrown - PublicFeedPostsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterPublicFeedPostsResponse; - GetFeedPostsPublicResponse ret = new GetFeedPostsPublicResponse(); - 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); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetFeedPostsPublicResponse ret = new GetFeedPostsPublicResponse(); - 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 GetFeedPostsPublicResponse: 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 GetFeedPostsPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetFeedPostsPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("PublicFeedPostsResponse", PublicFeedPostsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetFeedPostsPublicResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, PublicFeedPostsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof PublicFeedPostsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, PublicFeedPostsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, PublicFeedPostsResponse - * - * @return The actual instance (APIError, PublicFeedPostsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `PublicFeedPostsResponse`. If the actual instance is not `PublicFeedPostsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PublicFeedPostsResponse` - * @throws ClassCastException if the instance is not `PublicFeedPostsResponse` - */ - public PublicFeedPostsResponse getPublicFeedPostsResponse() throws ClassCastException { - return (PublicFeedPostsResponse)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 GetFeedPostsPublicResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with PublicFeedPostsResponse - try { - PublicFeedPostsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PublicFeedPostsResponse 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 GetFeedPostsPublicResponse 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())); - } - - /** - * Create an instance of GetFeedPostsPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetFeedPostsPublicResponse - * @throws IOException if the JSON string is invalid with respect to GetFeedPostsPublicResponse - */ - public static GetFeedPostsPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetFeedPostsPublicResponse.class); - } - - /** - * Convert an instance of GetFeedPostsPublicResponse 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/GetFeedPostsResponse1.java b/client/src/main/java/com/fastcomments/model/GetFeedPostsResponse1.java deleted file mode 100644 index d0fa8d05..00000000 --- a/client/src/main/java/com/fastcomments/model/GetFeedPostsResponse1.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.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 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 GetFeedPostsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetFeedPostsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetFeedPostsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetFeedPostsResponse1' 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)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetFeedPostsResponse1 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()); - 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, GetFeedPostsResponse"); - } - - @Override - public GetFeedPostsResponse1 read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetFeedPostsResponse - try { - // validate the JSON object to see if any exception is thrown - GetFeedPostsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetFeedPostsResponse; - GetFeedPostsResponse1 ret = new GetFeedPostsResponse1(); - 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); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetFeedPostsResponse1 ret = new GetFeedPostsResponse1(); - 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 GetFeedPostsResponse1: 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 GetFeedPostsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetFeedPostsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetFeedPostsResponse", GetFeedPostsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetFeedPostsResponse1.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetFeedPostsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetFeedPostsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetFeedPostsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetFeedPostsResponse - * - * @return The actual instance (APIError, GetFeedPostsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetFeedPostsResponse`. If the actual instance is not `GetFeedPostsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetFeedPostsResponse` - * @throws ClassCastException if the instance is not `GetFeedPostsResponse` - */ - public GetFeedPostsResponse getGetFeedPostsResponse() throws ClassCastException { - return (GetFeedPostsResponse)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 GetFeedPostsResponse1 - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetFeedPostsResponse - try { - GetFeedPostsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetFeedPostsResponse 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 GetFeedPostsResponse1 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())); - } - - /** - * Create an instance of GetFeedPostsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetFeedPostsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetFeedPostsResponse1 - */ - public static GetFeedPostsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetFeedPostsResponse1.class); - } - - /** - * Convert an instance of GetFeedPostsResponse1 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/GetFeedPostsStatsResponse.java b/client/src/main/java/com/fastcomments/model/GetFeedPostsStatsResponse.java deleted file mode 100644 index 5aff0bc7..00000000 --- a/client/src/main/java/com/fastcomments/model/GetFeedPostsStatsResponse.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.23.0-SNAPSHOT") -public class GetFeedPostsStatsResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetFeedPostsStatsResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetFeedPostsStatsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetFeedPostsStatsResponse' 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, GetFeedPostsStatsResponse 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 GetFeedPostsStatsResponse 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; - GetFeedPostsStatsResponse ret = new GetFeedPostsStatsResponse(); - 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; - GetFeedPostsStatsResponse ret = new GetFeedPostsStatsResponse(); - 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 GetFeedPostsStatsResponse: 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 GetFeedPostsStatsResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetFeedPostsStatsResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("FeedPostsStatsResponse", FeedPostsStatsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetFeedPostsStatsResponse.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 GetFeedPostsStatsResponse - */ - 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 GetFeedPostsStatsResponse 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 GetFeedPostsStatsResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetFeedPostsStatsResponse - * @throws IOException if the JSON string is invalid with respect to GetFeedPostsStatsResponse - */ - public static GetFeedPostsStatsResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetFeedPostsStatsResponse.class); - } - - /** - * Convert an instance of GetFeedPostsStatsResponse 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/GetGifLargeResponse.java b/client/src/main/java/com/fastcomments/model/GetGifLargeResponse.java deleted file mode 100644 index 8a35ba77..00000000 --- a/client/src/main/java/com/fastcomments/model/GetGifLargeResponse.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.GifGetLargeResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetGifLargeResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetGifLargeResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetGifLargeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetGifLargeResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGifGetLargeResponse = gson.getDelegateAdapter(this, TypeToken.get(GifGetLargeResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetGifLargeResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GifGetLargeResponse` - if (value.getActualInstance() instanceof GifGetLargeResponse) { - JsonElement element = adapterGifGetLargeResponse.toJsonTree((GifGetLargeResponse)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, GifGetLargeResponse"); - } - - @Override - public GetGifLargeResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GifGetLargeResponse - try { - // validate the JSON object to see if any exception is thrown - GifGetLargeResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGifGetLargeResponse; - GetGifLargeResponse ret = new GetGifLargeResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifGetLargeResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GifGetLargeResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetGifLargeResponse ret = new GetGifLargeResponse(); - 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 GetGifLargeResponse: 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 GetGifLargeResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetGifLargeResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GifGetLargeResponse", GifGetLargeResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetGifLargeResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GifGetLargeResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GifGetLargeResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GifGetLargeResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GifGetLargeResponse - * - * @return The actual instance (APIError, GifGetLargeResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GifGetLargeResponse`. If the actual instance is not `GifGetLargeResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GifGetLargeResponse` - * @throws ClassCastException if the instance is not `GifGetLargeResponse` - */ - public GifGetLargeResponse getGifGetLargeResponse() throws ClassCastException { - return (GifGetLargeResponse)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 GetGifLargeResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GifGetLargeResponse - try { - GifGetLargeResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifGetLargeResponse 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 GetGifLargeResponse with anyOf schemas: APIError, GifGetLargeResponse. 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 GetGifLargeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetGifLargeResponse - * @throws IOException if the JSON string is invalid with respect to GetGifLargeResponse - */ - public static GetGifLargeResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetGifLargeResponse.class); - } - - /** - * Convert an instance of GetGifLargeResponse 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/GetGifsSearchResponse.java b/client/src/main/java/com/fastcomments/model/GetGifsSearchResponse.java index f03b2cd0..4588a285 100644 --- a/client/src/main/java/com/fastcomments/model/GetGifsSearchResponse.java +++ b/client/src/main/java/com/fastcomments/model/GetGifsSearchResponse.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.GifSearchInternalError; import com.fastcomments.model.GifSearchResponse; import com.fastcomments.model.GifSearchResponseImagesInnerInner; @@ -79,7 +77,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); final TypeAdapter adapterGifSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(GifSearchResponse.class)); final TypeAdapter adapterGifSearchInternalError = gson.getDelegateAdapter(this, TypeToken.get(GifSearchInternalError.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); return (TypeAdapter) new TypeAdapter() { @Override @@ -101,13 +98,7 @@ public void write(JsonWriter out, GetGifsSearchResponse value) throws IOExceptio 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, GifSearchInternalError, GifSearchResponse"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: GifSearchInternalError, GifSearchResponse"); } @Override @@ -144,19 +135,6 @@ public GetGifsSearchResponse read(JsonReader in) throws IOException { 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); } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - 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); - } 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())); } @@ -179,7 +157,6 @@ public GetGifsSearchResponse(Object o) { static { schemas.put("GifSearchResponse", GifSearchResponse.class); schemas.put("GifSearchInternalError", GifSearchInternalError.class); - schemas.put("APIError", APIError.class); } @Override @@ -190,7 +167,7 @@ public Map> getSchemas() { /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, GifSearchInternalError, GifSearchResponse + * GifSearchInternalError, GifSearchResponse * * It could be an instance of the 'anyOf' schemas. */ @@ -206,19 +183,14 @@ public void setActualInstance(Object instance) { return; } - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GifSearchInternalError, GifSearchResponse"); + throw new RuntimeException("Invalid instance type. Must be GifSearchInternalError, GifSearchResponse"); } /** * Get the actual instance, which can be the following: - * APIError, GifSearchInternalError, GifSearchResponse + * GifSearchInternalError, GifSearchResponse * - * @return The actual instance (APIError, GifSearchInternalError, GifSearchResponse) + * @return The actual instance (GifSearchInternalError, GifSearchResponse) */ @SuppressWarnings("unchecked") @Override @@ -248,17 +220,6 @@ public GifSearchInternalError getGifSearchInternalError() throws ClassCastExcept return (GifSearchInternalError)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 * @@ -284,15 +245,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GifSearchInternalError 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 GetGifsSearchResponse with anyOf schemas: APIError, GifSearchInternalError, GifSearchResponse. 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())); } /** diff --git a/client/src/main/java/com/fastcomments/model/GetGlobalEventLogResponse.java b/client/src/main/java/com/fastcomments/model/GetGlobalEventLogResponse.java deleted file mode 100644 index 29e1edc2..00000000 --- a/client/src/main/java/com/fastcomments/model/GetGlobalEventLogResponse.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.23.0-SNAPSHOT") -public class GetGlobalEventLogResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetGlobalEventLogResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetGlobalEventLogResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetGlobalEventLogResponse' 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, GetGlobalEventLogResponse 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 GetGlobalEventLogResponse 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; - GetGlobalEventLogResponse ret = new GetGlobalEventLogResponse(); - 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; - GetGlobalEventLogResponse ret = new GetGlobalEventLogResponse(); - 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 GetGlobalEventLogResponse: 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 GetGlobalEventLogResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetGlobalEventLogResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetEventLogResponse", GetEventLogResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetGlobalEventLogResponse.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 GetGlobalEventLogResponse - */ - 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 GetGlobalEventLogResponse 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 GetGlobalEventLogResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetGlobalEventLogResponse - * @throws IOException if the JSON string is invalid with respect to GetGlobalEventLogResponse - */ - public static GetGlobalEventLogResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetGlobalEventLogResponse.class); - } - - /** - * Convert an instance of GetGlobalEventLogResponse 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/GetHashTagsResponse1.java b/client/src/main/java/com/fastcomments/model/GetHashTagsResponse1.java deleted file mode 100644 index d9ab10a7..00000000 --- a/client/src/main/java/com/fastcomments/model/GetHashTagsResponse1.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.23.0-SNAPSHOT") -public class GetHashTagsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetHashTagsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetHashTagsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetHashTagsResponse1' 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, GetHashTagsResponse1 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 GetHashTagsResponse1 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; - GetHashTagsResponse1 ret = new GetHashTagsResponse1(); - 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; - GetHashTagsResponse1 ret = new GetHashTagsResponse1(); - 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 GetHashTagsResponse1: 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 GetHashTagsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetHashTagsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetHashTagsResponse", GetHashTagsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetHashTagsResponse1.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 GetHashTagsResponse1 - */ - 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 GetHashTagsResponse1 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 GetHashTagsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetHashTagsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetHashTagsResponse1 - */ - public static GetHashTagsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetHashTagsResponse1.class); - } - - /** - * Convert an instance of GetHashTagsResponse1 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/GetLogsResponse.java b/client/src/main/java/com/fastcomments/model/GetLogsResponse.java deleted file mode 100644 index 912f3301..00000000 --- a/client/src/main/java/com/fastcomments/model/GetLogsResponse.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.ModerationAPICommentLog; -import com.fastcomments.model.ModerationAPIGetLogsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetLogsResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetLogsResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetLogsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetLogsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationAPIGetLogsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIGetLogsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetLogsResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationAPIGetLogsResponse` - if (value.getActualInstance() instanceof ModerationAPIGetLogsResponse) { - JsonElement element = adapterModerationAPIGetLogsResponse.toJsonTree((ModerationAPIGetLogsResponse)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, ModerationAPIGetLogsResponse"); - } - - @Override - public GetLogsResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationAPIGetLogsResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationAPIGetLogsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationAPIGetLogsResponse; - GetLogsResponse ret = new GetLogsResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetLogsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationAPIGetLogsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetLogsResponse ret = new GetLogsResponse(); - 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 GetLogsResponse: 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 GetLogsResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetLogsResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationAPIGetLogsResponse", ModerationAPIGetLogsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetLogsResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationAPIGetLogsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationAPIGetLogsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPIGetLogsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationAPIGetLogsResponse - * - * @return The actual instance (APIError, ModerationAPIGetLogsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationAPIGetLogsResponse`. If the actual instance is not `ModerationAPIGetLogsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationAPIGetLogsResponse` - * @throws ClassCastException if the instance is not `ModerationAPIGetLogsResponse` - */ - public ModerationAPIGetLogsResponse getModerationAPIGetLogsResponse() throws ClassCastException { - return (ModerationAPIGetLogsResponse)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 GetLogsResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationAPIGetLogsResponse - try { - ModerationAPIGetLogsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIGetLogsResponse 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 GetLogsResponse with anyOf schemas: APIError, ModerationAPIGetLogsResponse. 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 GetLogsResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetLogsResponse - * @throws IOException if the JSON string is invalid with respect to GetLogsResponse - */ - public static GetLogsResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetLogsResponse.class); - } - - /** - * Convert an instance of GetLogsResponse 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/GetManualBadgesForUserResponse.java b/client/src/main/java/com/fastcomments/model/GetManualBadgesForUserResponse.java deleted file mode 100644 index 7b2f9359..00000000 --- a/client/src/main/java/com/fastcomments/model/GetManualBadgesForUserResponse.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.GetUserManualBadgesResponse; -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.23.0-SNAPSHOT") -public class GetManualBadgesForUserResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetManualBadgesForUserResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetManualBadgesForUserResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetManualBadgesForUserResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetUserManualBadgesResponse = gson.getDelegateAdapter(this, TypeToken.get(GetUserManualBadgesResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetManualBadgesForUserResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetUserManualBadgesResponse` - if (value.getActualInstance() instanceof GetUserManualBadgesResponse) { - JsonElement element = adapterGetUserManualBadgesResponse.toJsonTree((GetUserManualBadgesResponse)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, GetUserManualBadgesResponse"); - } - - @Override - public GetManualBadgesForUserResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetUserManualBadgesResponse - try { - // validate the JSON object to see if any exception is thrown - GetUserManualBadgesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetUserManualBadgesResponse; - GetManualBadgesForUserResponse ret = new GetManualBadgesForUserResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserManualBadgesResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetUserManualBadgesResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetManualBadgesForUserResponse ret = new GetManualBadgesForUserResponse(); - 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 GetManualBadgesForUserResponse: 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 GetManualBadgesForUserResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetManualBadgesForUserResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetUserManualBadgesResponse", GetUserManualBadgesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetManualBadgesForUserResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetUserManualBadgesResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetUserManualBadgesResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetUserManualBadgesResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetUserManualBadgesResponse - * - * @return The actual instance (APIError, GetUserManualBadgesResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetUserManualBadgesResponse`. If the actual instance is not `GetUserManualBadgesResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetUserManualBadgesResponse` - * @throws ClassCastException if the instance is not `GetUserManualBadgesResponse` - */ - public GetUserManualBadgesResponse getGetUserManualBadgesResponse() throws ClassCastException { - return (GetUserManualBadgesResponse)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 GetManualBadgesForUserResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetUserManualBadgesResponse - try { - GetUserManualBadgesResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserManualBadgesResponse 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 GetManualBadgesForUserResponse with anyOf schemas: APIError, GetUserManualBadgesResponse. 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 GetManualBadgesForUserResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetManualBadgesForUserResponse - * @throws IOException if the JSON string is invalid with respect to GetManualBadgesForUserResponse - */ - public static GetManualBadgesForUserResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetManualBadgesForUserResponse.class); - } - - /** - * Convert an instance of GetManualBadgesForUserResponse 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/GetManualBadgesResponse.java b/client/src/main/java/com/fastcomments/model/GetManualBadgesResponse.java deleted file mode 100644 index 0ebeea95..00000000 --- a/client/src/main/java/com/fastcomments/model/GetManualBadgesResponse.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.GetTenantManualBadgesResponse; -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 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 GetManualBadgesResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetManualBadgesResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetManualBadgesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetManualBadgesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetTenantManualBadgesResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTenantManualBadgesResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetManualBadgesResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetTenantManualBadgesResponse` - if (value.getActualInstance() instanceof GetTenantManualBadgesResponse) { - JsonElement element = adapterGetTenantManualBadgesResponse.toJsonTree((GetTenantManualBadgesResponse)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, GetTenantManualBadgesResponse"); - } - - @Override - public GetManualBadgesResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetTenantManualBadgesResponse - try { - // validate the JSON object to see if any exception is thrown - GetTenantManualBadgesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTenantManualBadgesResponse; - GetManualBadgesResponse ret = new GetManualBadgesResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantManualBadgesResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetTenantManualBadgesResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetManualBadgesResponse ret = new GetManualBadgesResponse(); - 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 GetManualBadgesResponse: 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 GetManualBadgesResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetManualBadgesResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantManualBadgesResponse", GetTenantManualBadgesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetManualBadgesResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTenantManualBadgesResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetTenantManualBadgesResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetTenantManualBadgesResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetTenantManualBadgesResponse - * - * @return The actual instance (APIError, GetTenantManualBadgesResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetTenantManualBadgesResponse`. If the actual instance is not `GetTenantManualBadgesResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetTenantManualBadgesResponse` - * @throws ClassCastException if the instance is not `GetTenantManualBadgesResponse` - */ - public GetTenantManualBadgesResponse getGetTenantManualBadgesResponse() throws ClassCastException { - return (GetTenantManualBadgesResponse)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 GetManualBadgesResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTenantManualBadgesResponse - try { - GetTenantManualBadgesResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantManualBadgesResponse 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 GetManualBadgesResponse with anyOf schemas: APIError, GetTenantManualBadgesResponse. 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 GetManualBadgesResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetManualBadgesResponse - * @throws IOException if the JSON string is invalid with respect to GetManualBadgesResponse - */ - public static GetManualBadgesResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetManualBadgesResponse.class); - } - - /** - * Convert an instance of GetManualBadgesResponse 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/GetModerationCommentResponse.java b/client/src/main/java/com/fastcomments/model/GetModerationCommentResponse.java deleted file mode 100644 index 9c85a880..00000000 --- a/client/src/main/java/com/fastcomments/model/GetModerationCommentResponse.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.ModerationAPIComment; -import com.fastcomments.model.ModerationAPICommentResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetModerationCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetModerationCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetModerationCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetModerationCommentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationAPICommentResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPICommentResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetModerationCommentResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationAPICommentResponse` - if (value.getActualInstance() instanceof ModerationAPICommentResponse) { - JsonElement element = adapterModerationAPICommentResponse.toJsonTree((ModerationAPICommentResponse)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, ModerationAPICommentResponse"); - } - - @Override - public GetModerationCommentResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationAPICommentResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationAPICommentResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationAPICommentResponse; - GetModerationCommentResponse ret = new GetModerationCommentResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPICommentResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationAPICommentResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetModerationCommentResponse ret = new GetModerationCommentResponse(); - 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 GetModerationCommentResponse: 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 GetModerationCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetModerationCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationAPICommentResponse", ModerationAPICommentResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetModerationCommentResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationAPICommentResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationAPICommentResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPICommentResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationAPICommentResponse - * - * @return The actual instance (APIError, ModerationAPICommentResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationAPICommentResponse`. If the actual instance is not `ModerationAPICommentResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationAPICommentResponse` - * @throws ClassCastException if the instance is not `ModerationAPICommentResponse` - */ - public ModerationAPICommentResponse getModerationAPICommentResponse() throws ClassCastException { - return (ModerationAPICommentResponse)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 GetModerationCommentResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationAPICommentResponse - try { - ModerationAPICommentResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPICommentResponse 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 GetModerationCommentResponse with anyOf schemas: APIError, ModerationAPICommentResponse. 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 GetModerationCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetModerationCommentResponse - * @throws IOException if the JSON string is invalid with respect to GetModerationCommentResponse - */ - public static GetModerationCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetModerationCommentResponse.class); - } - - /** - * Convert an instance of GetModerationCommentResponse 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/GetModerationCommentTextResponse.java b/client/src/main/java/com/fastcomments/model/GetModerationCommentTextResponse.java deleted file mode 100644 index 6d176733..00000000 --- a/client/src/main/java/com/fastcomments/model/GetModerationCommentTextResponse.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.GetCommentTextResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetModerationCommentTextResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetModerationCommentTextResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetModerationCommentTextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetModerationCommentTextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetCommentTextResponse = gson.getDelegateAdapter(this, TypeToken.get(GetCommentTextResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetModerationCommentTextResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetCommentTextResponse` - if (value.getActualInstance() instanceof GetCommentTextResponse) { - JsonElement element = adapterGetCommentTextResponse.toJsonTree((GetCommentTextResponse)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, GetCommentTextResponse"); - } - - @Override - public GetModerationCommentTextResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetCommentTextResponse - try { - // validate the JSON object to see if any exception is thrown - GetCommentTextResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetCommentTextResponse; - GetModerationCommentTextResponse ret = new GetModerationCommentTextResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentTextResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetCommentTextResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetModerationCommentTextResponse ret = new GetModerationCommentTextResponse(); - 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 GetModerationCommentTextResponse: 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 GetModerationCommentTextResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetModerationCommentTextResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetCommentTextResponse", GetCommentTextResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetModerationCommentTextResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetCommentTextResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetCommentTextResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetCommentTextResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetCommentTextResponse - * - * @return The actual instance (APIError, GetCommentTextResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetCommentTextResponse`. If the actual instance is not `GetCommentTextResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetCommentTextResponse` - * @throws ClassCastException if the instance is not `GetCommentTextResponse` - */ - public GetCommentTextResponse getGetCommentTextResponse() throws ClassCastException { - return (GetCommentTextResponse)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 GetModerationCommentTextResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetCommentTextResponse - try { - GetCommentTextResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetCommentTextResponse 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 GetModerationCommentTextResponse with anyOf schemas: APIError, GetCommentTextResponse. 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 GetModerationCommentTextResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetModerationCommentTextResponse - * @throws IOException if the JSON string is invalid with respect to GetModerationCommentTextResponse - */ - public static GetModerationCommentTextResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetModerationCommentTextResponse.class); - } - - /** - * Convert an instance of GetModerationCommentTextResponse 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/GetModeratorResponse1.java b/client/src/main/java/com/fastcomments/model/GetModeratorResponse1.java deleted file mode 100644 index 990e1e63..00000000 --- a/client/src/main/java/com/fastcomments/model/GetModeratorResponse1.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.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 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 GetModeratorResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetModeratorResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetModeratorResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetModeratorResponse1' 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)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetModeratorResponse1 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()); - 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, GetModeratorResponse"); - } - - @Override - public GetModeratorResponse1 read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetModeratorResponse - try { - // validate the JSON object to see if any exception is thrown - GetModeratorResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetModeratorResponse; - GetModeratorResponse1 ret = new GetModeratorResponse1(); - 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); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetModeratorResponse1 ret = new GetModeratorResponse1(); - 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 GetModeratorResponse1: 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 GetModeratorResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetModeratorResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetModeratorResponse", GetModeratorResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetModeratorResponse1.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetModeratorResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetModeratorResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetModeratorResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetModeratorResponse - * - * @return The actual instance (APIError, GetModeratorResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetModeratorResponse`. If the actual instance is not `GetModeratorResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetModeratorResponse` - * @throws ClassCastException if the instance is not `GetModeratorResponse` - */ - public GetModeratorResponse getGetModeratorResponse() throws ClassCastException { - return (GetModeratorResponse)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 GetModeratorResponse1 - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetModeratorResponse - try { - GetModeratorResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetModeratorResponse 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 GetModeratorResponse1 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())); - } - - /** - * Create an instance of GetModeratorResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetModeratorResponse1 - * @throws IOException if the JSON string is invalid with respect to GetModeratorResponse1 - */ - public static GetModeratorResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetModeratorResponse1.class); - } - - /** - * Convert an instance of GetModeratorResponse1 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/GetModeratorsResponse1.java b/client/src/main/java/com/fastcomments/model/GetModeratorsResponse1.java deleted file mode 100644 index 7935bd6b..00000000 --- a/client/src/main/java/com/fastcomments/model/GetModeratorsResponse1.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.23.0-SNAPSHOT") -public class GetModeratorsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetModeratorsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetModeratorsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetModeratorsResponse1' 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, GetModeratorsResponse1 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 GetModeratorsResponse1 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; - GetModeratorsResponse1 ret = new GetModeratorsResponse1(); - 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; - GetModeratorsResponse1 ret = new GetModeratorsResponse1(); - 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 GetModeratorsResponse1: 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 GetModeratorsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetModeratorsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetModeratorsResponse", GetModeratorsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetModeratorsResponse1.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 GetModeratorsResponse1 - */ - 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 GetModeratorsResponse1 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 GetModeratorsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetModeratorsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetModeratorsResponse1 - */ - public static GetModeratorsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetModeratorsResponse1.class); - } - - /** - * Convert an instance of GetModeratorsResponse1 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/GetNotificationCountResponse1.java b/client/src/main/java/com/fastcomments/model/GetNotificationCountResponse1.java deleted file mode 100644 index d3a49a28..00000000 --- a/client/src/main/java/com/fastcomments/model/GetNotificationCountResponse1.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.23.0-SNAPSHOT") -public class GetNotificationCountResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetNotificationCountResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetNotificationCountResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetNotificationCountResponse1' 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, GetNotificationCountResponse1 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 GetNotificationCountResponse1 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; - GetNotificationCountResponse1 ret = new GetNotificationCountResponse1(); - 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; - GetNotificationCountResponse1 ret = new GetNotificationCountResponse1(); - 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 GetNotificationCountResponse1: 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 GetNotificationCountResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetNotificationCountResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetNotificationCountResponse", GetNotificationCountResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetNotificationCountResponse1.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 GetNotificationCountResponse1 - */ - 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 GetNotificationCountResponse1 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 GetNotificationCountResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetNotificationCountResponse1 - * @throws IOException if the JSON string is invalid with respect to GetNotificationCountResponse1 - */ - public static GetNotificationCountResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetNotificationCountResponse1.class); - } - - /** - * Convert an instance of GetNotificationCountResponse1 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/GetNotificationsResponse1.java b/client/src/main/java/com/fastcomments/model/GetNotificationsResponse1.java deleted file mode 100644 index 3fe0c895..00000000 --- a/client/src/main/java/com/fastcomments/model/GetNotificationsResponse1.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.23.0-SNAPSHOT") -public class GetNotificationsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetNotificationsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetNotificationsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetNotificationsResponse1' 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, GetNotificationsResponse1 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 GetNotificationsResponse1 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; - GetNotificationsResponse1 ret = new GetNotificationsResponse1(); - 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; - GetNotificationsResponse1 ret = new GetNotificationsResponse1(); - 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 GetNotificationsResponse1: 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 GetNotificationsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetNotificationsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetNotificationsResponse", GetNotificationsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetNotificationsResponse1.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 GetNotificationsResponse1 - */ - 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 GetNotificationsResponse1 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 GetNotificationsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetNotificationsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetNotificationsResponse1 - */ - public static GetNotificationsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetNotificationsResponse1.class); - } - - /** - * Convert an instance of GetNotificationsResponse1 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/GetOfflineUsersResponse.java b/client/src/main/java/com/fastcomments/model/GetOfflineUsersResponse.java deleted file mode 100644 index dd84ba54..00000000 --- a/client/src/main/java/com/fastcomments/model/GetOfflineUsersResponse.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.PageUserEntry; -import com.fastcomments.model.PageUsersOfflineResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetOfflineUsersResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetOfflineUsersResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOfflineUsersResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOfflineUsersResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterPageUsersOfflineResponse = gson.getDelegateAdapter(this, TypeToken.get(PageUsersOfflineResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOfflineUsersResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `PageUsersOfflineResponse` - if (value.getActualInstance() instanceof PageUsersOfflineResponse) { - JsonElement element = adapterPageUsersOfflineResponse.toJsonTree((PageUsersOfflineResponse)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, PageUsersOfflineResponse"); - } - - @Override - public GetOfflineUsersResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize PageUsersOfflineResponse - try { - // validate the JSON object to see if any exception is thrown - PageUsersOfflineResponse.validateJsonElement(jsonElement); - actualAdapter = adapterPageUsersOfflineResponse; - GetOfflineUsersResponse ret = new GetOfflineUsersResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersOfflineResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'PageUsersOfflineResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetOfflineUsersResponse ret = new GetOfflineUsersResponse(); - 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 GetOfflineUsersResponse: 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 GetOfflineUsersResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetOfflineUsersResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("PageUsersOfflineResponse", PageUsersOfflineResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetOfflineUsersResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, PageUsersOfflineResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof PageUsersOfflineResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, PageUsersOfflineResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, PageUsersOfflineResponse - * - * @return The actual instance (APIError, PageUsersOfflineResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `PageUsersOfflineResponse`. If the actual instance is not `PageUsersOfflineResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PageUsersOfflineResponse` - * @throws ClassCastException if the instance is not `PageUsersOfflineResponse` - */ - public PageUsersOfflineResponse getPageUsersOfflineResponse() throws ClassCastException { - return (PageUsersOfflineResponse)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 GetOfflineUsersResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with PageUsersOfflineResponse - try { - PageUsersOfflineResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersOfflineResponse 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 GetOfflineUsersResponse with anyOf schemas: APIError, PageUsersOfflineResponse. 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 GetOfflineUsersResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetOfflineUsersResponse - * @throws IOException if the JSON string is invalid with respect to GetOfflineUsersResponse - */ - public static GetOfflineUsersResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetOfflineUsersResponse.class); - } - - /** - * Convert an instance of GetOfflineUsersResponse 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/GetOnlineUsersResponse.java b/client/src/main/java/com/fastcomments/model/GetOnlineUsersResponse.java deleted file mode 100644 index 0272dad3..00000000 --- a/client/src/main/java/com/fastcomments/model/GetOnlineUsersResponse.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.PageUserEntry; -import com.fastcomments.model.PageUsersOnlineResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetOnlineUsersResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetOnlineUsersResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOnlineUsersResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOnlineUsersResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterPageUsersOnlineResponse = gson.getDelegateAdapter(this, TypeToken.get(PageUsersOnlineResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOnlineUsersResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `PageUsersOnlineResponse` - if (value.getActualInstance() instanceof PageUsersOnlineResponse) { - JsonElement element = adapterPageUsersOnlineResponse.toJsonTree((PageUsersOnlineResponse)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, PageUsersOnlineResponse"); - } - - @Override - public GetOnlineUsersResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize PageUsersOnlineResponse - try { - // validate the JSON object to see if any exception is thrown - PageUsersOnlineResponse.validateJsonElement(jsonElement); - actualAdapter = adapterPageUsersOnlineResponse; - GetOnlineUsersResponse ret = new GetOnlineUsersResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersOnlineResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'PageUsersOnlineResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetOnlineUsersResponse ret = new GetOnlineUsersResponse(); - 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 GetOnlineUsersResponse: 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 GetOnlineUsersResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetOnlineUsersResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("PageUsersOnlineResponse", PageUsersOnlineResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetOnlineUsersResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, PageUsersOnlineResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof PageUsersOnlineResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, PageUsersOnlineResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, PageUsersOnlineResponse - * - * @return The actual instance (APIError, PageUsersOnlineResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `PageUsersOnlineResponse`. If the actual instance is not `PageUsersOnlineResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PageUsersOnlineResponse` - * @throws ClassCastException if the instance is not `PageUsersOnlineResponse` - */ - public PageUsersOnlineResponse getPageUsersOnlineResponse() throws ClassCastException { - return (PageUsersOnlineResponse)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 GetOnlineUsersResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with PageUsersOnlineResponse - try { - PageUsersOnlineResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersOnlineResponse 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 GetOnlineUsersResponse with anyOf schemas: APIError, PageUsersOnlineResponse. 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 GetOnlineUsersResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetOnlineUsersResponse - * @throws IOException if the JSON string is invalid with respect to GetOnlineUsersResponse - */ - public static GetOnlineUsersResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetOnlineUsersResponse.class); - } - - /** - * Convert an instance of GetOnlineUsersResponse 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/GetPagesPublicResponse.java b/client/src/main/java/com/fastcomments/model/GetPagesPublicResponse.java deleted file mode 100644 index fe081329..00000000 --- a/client/src/main/java/com/fastcomments/model/GetPagesPublicResponse.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.GetPublicPagesResponse; -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 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 GetPagesPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetPagesPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetPagesPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetPagesPublicResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetPublicPagesResponse = gson.getDelegateAdapter(this, TypeToken.get(GetPublicPagesResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetPagesPublicResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetPublicPagesResponse` - if (value.getActualInstance() instanceof GetPublicPagesResponse) { - JsonElement element = adapterGetPublicPagesResponse.toJsonTree((GetPublicPagesResponse)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, GetPublicPagesResponse"); - } - - @Override - public GetPagesPublicResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetPublicPagesResponse - try { - // validate the JSON object to see if any exception is thrown - GetPublicPagesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetPublicPagesResponse; - GetPagesPublicResponse ret = new GetPagesPublicResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetPublicPagesResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetPublicPagesResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetPagesPublicResponse ret = new GetPagesPublicResponse(); - 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 GetPagesPublicResponse: 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 GetPagesPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetPagesPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetPublicPagesResponse", GetPublicPagesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetPagesPublicResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetPublicPagesResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetPublicPagesResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetPublicPagesResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetPublicPagesResponse - * - * @return The actual instance (APIError, GetPublicPagesResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetPublicPagesResponse`. If the actual instance is not `GetPublicPagesResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetPublicPagesResponse` - * @throws ClassCastException if the instance is not `GetPublicPagesResponse` - */ - public GetPublicPagesResponse getGetPublicPagesResponse() throws ClassCastException { - return (GetPublicPagesResponse)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 GetPagesPublicResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetPublicPagesResponse - try { - GetPublicPagesResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetPublicPagesResponse 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 GetPagesPublicResponse with anyOf schemas: APIError, GetPublicPagesResponse. 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 GetPagesPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetPagesPublicResponse - * @throws IOException if the JSON string is invalid with respect to GetPagesPublicResponse - */ - public static GetPagesPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetPagesPublicResponse.class); - } - - /** - * Convert an instance of GetPagesPublicResponse 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/GetPendingWebhookEventCountResponse1.java b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1.java deleted file mode 100644 index 2f0238ef..00000000 --- a/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1.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.23.0-SNAPSHOT") -public class GetPendingWebhookEventCountResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetPendingWebhookEventCountResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetPendingWebhookEventCountResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetPendingWebhookEventCountResponse1' 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, GetPendingWebhookEventCountResponse1 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 GetPendingWebhookEventCountResponse1 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; - GetPendingWebhookEventCountResponse1 ret = new GetPendingWebhookEventCountResponse1(); - 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; - GetPendingWebhookEventCountResponse1 ret = new GetPendingWebhookEventCountResponse1(); - 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 GetPendingWebhookEventCountResponse1: 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 GetPendingWebhookEventCountResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetPendingWebhookEventCountResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetPendingWebhookEventCountResponse", GetPendingWebhookEventCountResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetPendingWebhookEventCountResponse1.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 GetPendingWebhookEventCountResponse1 - */ - 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 GetPendingWebhookEventCountResponse1 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 GetPendingWebhookEventCountResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetPendingWebhookEventCountResponse1 - * @throws IOException if the JSON string is invalid with respect to GetPendingWebhookEventCountResponse1 - */ - public static GetPendingWebhookEventCountResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetPendingWebhookEventCountResponse1.class); - } - - /** - * Convert an instance of GetPendingWebhookEventCountResponse1 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/GetPendingWebhookEventsResponse1.java b/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse1.java deleted file mode 100644 index d49b7b23..00000000 --- a/client/src/main/java/com/fastcomments/model/GetPendingWebhookEventsResponse1.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.23.0-SNAPSHOT") -public class GetPendingWebhookEventsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetPendingWebhookEventsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetPendingWebhookEventsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetPendingWebhookEventsResponse1' 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, GetPendingWebhookEventsResponse1 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 GetPendingWebhookEventsResponse1 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; - GetPendingWebhookEventsResponse1 ret = new GetPendingWebhookEventsResponse1(); - 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; - GetPendingWebhookEventsResponse1 ret = new GetPendingWebhookEventsResponse1(); - 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 GetPendingWebhookEventsResponse1: 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 GetPendingWebhookEventsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetPendingWebhookEventsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetPendingWebhookEventsResponse", GetPendingWebhookEventsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetPendingWebhookEventsResponse1.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 GetPendingWebhookEventsResponse1 - */ - 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 GetPendingWebhookEventsResponse1 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 GetPendingWebhookEventsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetPendingWebhookEventsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetPendingWebhookEventsResponse1 - */ - public static GetPendingWebhookEventsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetPendingWebhookEventsResponse1.class); - } - - /** - * Convert an instance of GetPendingWebhookEventsResponse1 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/GetPreBanSummaryResponse.java b/client/src/main/java/com/fastcomments/model/GetPreBanSummaryResponse.java deleted file mode 100644 index e9fa2b7f..00000000 --- a/client/src/main/java/com/fastcomments/model/GetPreBanSummaryResponse.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.PreBanSummary; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetPreBanSummaryResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetPreBanSummaryResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetPreBanSummaryResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetPreBanSummaryResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterPreBanSummary = gson.getDelegateAdapter(this, TypeToken.get(PreBanSummary.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetPreBanSummaryResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `PreBanSummary` - if (value.getActualInstance() instanceof PreBanSummary) { - JsonElement element = adapterPreBanSummary.toJsonTree((PreBanSummary)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, PreBanSummary"); - } - - @Override - public GetPreBanSummaryResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize PreBanSummary - try { - // validate the JSON object to see if any exception is thrown - PreBanSummary.validateJsonElement(jsonElement); - actualAdapter = adapterPreBanSummary; - GetPreBanSummaryResponse ret = new GetPreBanSummaryResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PreBanSummary failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'PreBanSummary'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetPreBanSummaryResponse ret = new GetPreBanSummaryResponse(); - 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 GetPreBanSummaryResponse: 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 GetPreBanSummaryResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetPreBanSummaryResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("PreBanSummary", PreBanSummary.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetPreBanSummaryResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, PreBanSummary - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof PreBanSummary) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, PreBanSummary"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, PreBanSummary - * - * @return The actual instance (APIError, PreBanSummary) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `PreBanSummary`. If the actual instance is not `PreBanSummary`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PreBanSummary` - * @throws ClassCastException if the instance is not `PreBanSummary` - */ - public PreBanSummary getPreBanSummary() throws ClassCastException { - return (PreBanSummary)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 GetPreBanSummaryResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with PreBanSummary - try { - PreBanSummary.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PreBanSummary 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 GetPreBanSummaryResponse with anyOf schemas: APIError, PreBanSummary. 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 GetPreBanSummaryResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetPreBanSummaryResponse - * @throws IOException if the JSON string is invalid with respect to GetPreBanSummaryResponse - */ - public static GetPreBanSummaryResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetPreBanSummaryResponse.class); - } - - /** - * Convert an instance of GetPreBanSummaryResponse 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/GetQuestionConfigResponse1.java b/client/src/main/java/com/fastcomments/model/GetQuestionConfigResponse1.java deleted file mode 100644 index 80915676..00000000 --- a/client/src/main/java/com/fastcomments/model/GetQuestionConfigResponse1.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.23.0-SNAPSHOT") -public class GetQuestionConfigResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetQuestionConfigResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQuestionConfigResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQuestionConfigResponse1' 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, GetQuestionConfigResponse1 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 GetQuestionConfigResponse1 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; - GetQuestionConfigResponse1 ret = new GetQuestionConfigResponse1(); - 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; - GetQuestionConfigResponse1 ret = new GetQuestionConfigResponse1(); - 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 GetQuestionConfigResponse1: 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 GetQuestionConfigResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetQuestionConfigResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetQuestionConfigResponse", GetQuestionConfigResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetQuestionConfigResponse1.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 GetQuestionConfigResponse1 - */ - 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 GetQuestionConfigResponse1 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 GetQuestionConfigResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetQuestionConfigResponse1 - * @throws IOException if the JSON string is invalid with respect to GetQuestionConfigResponse1 - */ - public static GetQuestionConfigResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetQuestionConfigResponse1.class); - } - - /** - * Convert an instance of GetQuestionConfigResponse1 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/GetQuestionConfigsResponse1.java b/client/src/main/java/com/fastcomments/model/GetQuestionConfigsResponse1.java deleted file mode 100644 index 9b3eea8d..00000000 --- a/client/src/main/java/com/fastcomments/model/GetQuestionConfigsResponse1.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.23.0-SNAPSHOT") -public class GetQuestionConfigsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetQuestionConfigsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQuestionConfigsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQuestionConfigsResponse1' 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, GetQuestionConfigsResponse1 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 GetQuestionConfigsResponse1 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; - GetQuestionConfigsResponse1 ret = new GetQuestionConfigsResponse1(); - 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; - GetQuestionConfigsResponse1 ret = new GetQuestionConfigsResponse1(); - 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 GetQuestionConfigsResponse1: 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 GetQuestionConfigsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetQuestionConfigsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetQuestionConfigsResponse", GetQuestionConfigsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetQuestionConfigsResponse1.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 GetQuestionConfigsResponse1 - */ - 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 GetQuestionConfigsResponse1 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 GetQuestionConfigsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetQuestionConfigsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetQuestionConfigsResponse1 - */ - public static GetQuestionConfigsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetQuestionConfigsResponse1.class); - } - - /** - * Convert an instance of GetQuestionConfigsResponse1 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/GetQuestionResultResponse1.java b/client/src/main/java/com/fastcomments/model/GetQuestionResultResponse1.java deleted file mode 100644 index 7e4060bc..00000000 --- a/client/src/main/java/com/fastcomments/model/GetQuestionResultResponse1.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.23.0-SNAPSHOT") -public class GetQuestionResultResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetQuestionResultResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQuestionResultResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQuestionResultResponse1' 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, GetQuestionResultResponse1 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 GetQuestionResultResponse1 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; - GetQuestionResultResponse1 ret = new GetQuestionResultResponse1(); - 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; - GetQuestionResultResponse1 ret = new GetQuestionResultResponse1(); - 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 GetQuestionResultResponse1: 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 GetQuestionResultResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetQuestionResultResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetQuestionResultResponse", GetQuestionResultResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetQuestionResultResponse1.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 GetQuestionResultResponse1 - */ - 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 GetQuestionResultResponse1 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 GetQuestionResultResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetQuestionResultResponse1 - * @throws IOException if the JSON string is invalid with respect to GetQuestionResultResponse1 - */ - public static GetQuestionResultResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetQuestionResultResponse1.class); - } - - /** - * Convert an instance of GetQuestionResultResponse1 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/GetQuestionResultsResponse1.java b/client/src/main/java/com/fastcomments/model/GetQuestionResultsResponse1.java deleted file mode 100644 index 2b65079f..00000000 --- a/client/src/main/java/com/fastcomments/model/GetQuestionResultsResponse1.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.23.0-SNAPSHOT") -public class GetQuestionResultsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetQuestionResultsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQuestionResultsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQuestionResultsResponse1' 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, GetQuestionResultsResponse1 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 GetQuestionResultsResponse1 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; - GetQuestionResultsResponse1 ret = new GetQuestionResultsResponse1(); - 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; - GetQuestionResultsResponse1 ret = new GetQuestionResultsResponse1(); - 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 GetQuestionResultsResponse1: 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 GetQuestionResultsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetQuestionResultsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetQuestionResultsResponse", GetQuestionResultsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetQuestionResultsResponse1.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 GetQuestionResultsResponse1 - */ - 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 GetQuestionResultsResponse1 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 GetQuestionResultsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetQuestionResultsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetQuestionResultsResponse1 - */ - public static GetQuestionResultsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetQuestionResultsResponse1.class); - } - - /** - * Convert an instance of GetQuestionResultsResponse1 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/GetSearchCommentsSummaryResponse.java b/client/src/main/java/com/fastcomments/model/GetSearchCommentsSummaryResponse.java deleted file mode 100644 index d4a9b965..00000000 --- a/client/src/main/java/com/fastcomments/model/GetSearchCommentsSummaryResponse.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.ModerationCommentSearchResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetSearchCommentsSummaryResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetSearchCommentsSummaryResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSearchCommentsSummaryResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSearchCommentsSummaryResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationCommentSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationCommentSearchResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSearchCommentsSummaryResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationCommentSearchResponse` - if (value.getActualInstance() instanceof ModerationCommentSearchResponse) { - JsonElement element = adapterModerationCommentSearchResponse.toJsonTree((ModerationCommentSearchResponse)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, ModerationCommentSearchResponse"); - } - - @Override - public GetSearchCommentsSummaryResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationCommentSearchResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationCommentSearchResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationCommentSearchResponse; - GetSearchCommentsSummaryResponse ret = new GetSearchCommentsSummaryResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationCommentSearchResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationCommentSearchResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetSearchCommentsSummaryResponse ret = new GetSearchCommentsSummaryResponse(); - 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 GetSearchCommentsSummaryResponse: 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 GetSearchCommentsSummaryResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetSearchCommentsSummaryResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationCommentSearchResponse", ModerationCommentSearchResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetSearchCommentsSummaryResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationCommentSearchResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationCommentSearchResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationCommentSearchResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationCommentSearchResponse - * - * @return The actual instance (APIError, ModerationCommentSearchResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationCommentSearchResponse`. If the actual instance is not `ModerationCommentSearchResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationCommentSearchResponse` - * @throws ClassCastException if the instance is not `ModerationCommentSearchResponse` - */ - public ModerationCommentSearchResponse getModerationCommentSearchResponse() throws ClassCastException { - return (ModerationCommentSearchResponse)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 GetSearchCommentsSummaryResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationCommentSearchResponse - try { - ModerationCommentSearchResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationCommentSearchResponse 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 GetSearchCommentsSummaryResponse with anyOf schemas: APIError, ModerationCommentSearchResponse. 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 GetSearchCommentsSummaryResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetSearchCommentsSummaryResponse - * @throws IOException if the JSON string is invalid with respect to GetSearchCommentsSummaryResponse - */ - public static GetSearchCommentsSummaryResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetSearchCommentsSummaryResponse.class); - } - - /** - * Convert an instance of GetSearchCommentsSummaryResponse 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/GetSearchPagesResponse.java b/client/src/main/java/com/fastcomments/model/GetSearchPagesResponse.java deleted file mode 100644 index 6f88b22e..00000000 --- a/client/src/main/java/com/fastcomments/model/GetSearchPagesResponse.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.ModerationPageSearchProjected; -import com.fastcomments.model.ModerationPageSearchResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetSearchPagesResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetSearchPagesResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSearchPagesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSearchPagesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationPageSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationPageSearchResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSearchPagesResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationPageSearchResponse` - if (value.getActualInstance() instanceof ModerationPageSearchResponse) { - JsonElement element = adapterModerationPageSearchResponse.toJsonTree((ModerationPageSearchResponse)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, ModerationPageSearchResponse"); - } - - @Override - public GetSearchPagesResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationPageSearchResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationPageSearchResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationPageSearchResponse; - GetSearchPagesResponse ret = new GetSearchPagesResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationPageSearchResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationPageSearchResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetSearchPagesResponse ret = new GetSearchPagesResponse(); - 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 GetSearchPagesResponse: 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 GetSearchPagesResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetSearchPagesResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationPageSearchResponse", ModerationPageSearchResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetSearchPagesResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationPageSearchResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationPageSearchResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationPageSearchResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationPageSearchResponse - * - * @return The actual instance (APIError, ModerationPageSearchResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationPageSearchResponse`. If the actual instance is not `ModerationPageSearchResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationPageSearchResponse` - * @throws ClassCastException if the instance is not `ModerationPageSearchResponse` - */ - public ModerationPageSearchResponse getModerationPageSearchResponse() throws ClassCastException { - return (ModerationPageSearchResponse)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 GetSearchPagesResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationPageSearchResponse - try { - ModerationPageSearchResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationPageSearchResponse 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 GetSearchPagesResponse with anyOf schemas: APIError, ModerationPageSearchResponse. 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 GetSearchPagesResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetSearchPagesResponse - * @throws IOException if the JSON string is invalid with respect to GetSearchPagesResponse - */ - public static GetSearchPagesResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetSearchPagesResponse.class); - } - - /** - * Convert an instance of GetSearchPagesResponse 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/GetSearchSitesResponse.java b/client/src/main/java/com/fastcomments/model/GetSearchSitesResponse.java deleted file mode 100644 index f9563281..00000000 --- a/client/src/main/java/com/fastcomments/model/GetSearchSitesResponse.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.ModerationSiteSearchProjected; -import com.fastcomments.model.ModerationSiteSearchResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetSearchSitesResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetSearchSitesResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSearchSitesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSearchSitesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationSiteSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationSiteSearchResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSearchSitesResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationSiteSearchResponse` - if (value.getActualInstance() instanceof ModerationSiteSearchResponse) { - JsonElement element = adapterModerationSiteSearchResponse.toJsonTree((ModerationSiteSearchResponse)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, ModerationSiteSearchResponse"); - } - - @Override - public GetSearchSitesResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationSiteSearchResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationSiteSearchResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationSiteSearchResponse; - GetSearchSitesResponse ret = new GetSearchSitesResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationSiteSearchResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationSiteSearchResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetSearchSitesResponse ret = new GetSearchSitesResponse(); - 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 GetSearchSitesResponse: 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 GetSearchSitesResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetSearchSitesResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationSiteSearchResponse", ModerationSiteSearchResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetSearchSitesResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationSiteSearchResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationSiteSearchResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationSiteSearchResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationSiteSearchResponse - * - * @return The actual instance (APIError, ModerationSiteSearchResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationSiteSearchResponse`. If the actual instance is not `ModerationSiteSearchResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationSiteSearchResponse` - * @throws ClassCastException if the instance is not `ModerationSiteSearchResponse` - */ - public ModerationSiteSearchResponse getModerationSiteSearchResponse() throws ClassCastException { - return (ModerationSiteSearchResponse)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 GetSearchSitesResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationSiteSearchResponse - try { - ModerationSiteSearchResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationSiteSearchResponse 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 GetSearchSitesResponse with anyOf schemas: APIError, ModerationSiteSearchResponse. 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 GetSearchSitesResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetSearchSitesResponse - * @throws IOException if the JSON string is invalid with respect to GetSearchSitesResponse - */ - public static GetSearchSitesResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetSearchSitesResponse.class); - } - - /** - * Convert an instance of GetSearchSitesResponse 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/GetSearchSuggestResponse.java b/client/src/main/java/com/fastcomments/model/GetSearchSuggestResponse.java deleted file mode 100644 index 73b1f52e..00000000 --- a/client/src/main/java/com/fastcomments/model/GetSearchSuggestResponse.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.ModerationPageSearchProjected; -import com.fastcomments.model.ModerationSuggestResponse; -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 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 GetSearchSuggestResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetSearchSuggestResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSearchSuggestResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSearchSuggestResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationSuggestResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationSuggestResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSearchSuggestResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationSuggestResponse` - if (value.getActualInstance() instanceof ModerationSuggestResponse) { - JsonElement element = adapterModerationSuggestResponse.toJsonTree((ModerationSuggestResponse)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, ModerationSuggestResponse"); - } - - @Override - public GetSearchSuggestResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationSuggestResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationSuggestResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationSuggestResponse; - GetSearchSuggestResponse ret = new GetSearchSuggestResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationSuggestResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationSuggestResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetSearchSuggestResponse ret = new GetSearchSuggestResponse(); - 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 GetSearchSuggestResponse: 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 GetSearchSuggestResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetSearchSuggestResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationSuggestResponse", ModerationSuggestResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetSearchSuggestResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationSuggestResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationSuggestResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationSuggestResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationSuggestResponse - * - * @return The actual instance (APIError, ModerationSuggestResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationSuggestResponse`. If the actual instance is not `ModerationSuggestResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationSuggestResponse` - * @throws ClassCastException if the instance is not `ModerationSuggestResponse` - */ - public ModerationSuggestResponse getModerationSuggestResponse() throws ClassCastException { - return (ModerationSuggestResponse)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 GetSearchSuggestResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationSuggestResponse - try { - ModerationSuggestResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationSuggestResponse 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 GetSearchSuggestResponse with anyOf schemas: APIError, ModerationSuggestResponse. 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 GetSearchSuggestResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetSearchSuggestResponse - * @throws IOException if the JSON string is invalid with respect to GetSearchSuggestResponse - */ - public static GetSearchSuggestResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetSearchSuggestResponse.class); - } - - /** - * Convert an instance of GetSearchSuggestResponse 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/GetSearchUsersResponse.java b/client/src/main/java/com/fastcomments/model/GetSearchUsersResponse.java deleted file mode 100644 index 118972f8..00000000 --- a/client/src/main/java/com/fastcomments/model/GetSearchUsersResponse.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.ModerationUserSearchProjected; -import com.fastcomments.model.ModerationUserSearchResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetSearchUsersResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetSearchUsersResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSearchUsersResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSearchUsersResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationUserSearchResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationUserSearchResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSearchUsersResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationUserSearchResponse` - if (value.getActualInstance() instanceof ModerationUserSearchResponse) { - JsonElement element = adapterModerationUserSearchResponse.toJsonTree((ModerationUserSearchResponse)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, ModerationUserSearchResponse"); - } - - @Override - public GetSearchUsersResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationUserSearchResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationUserSearchResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationUserSearchResponse; - GetSearchUsersResponse ret = new GetSearchUsersResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationUserSearchResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationUserSearchResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetSearchUsersResponse ret = new GetSearchUsersResponse(); - 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 GetSearchUsersResponse: 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 GetSearchUsersResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetSearchUsersResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationUserSearchResponse", ModerationUserSearchResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetSearchUsersResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationUserSearchResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationUserSearchResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationUserSearchResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationUserSearchResponse - * - * @return The actual instance (APIError, ModerationUserSearchResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationUserSearchResponse`. If the actual instance is not `ModerationUserSearchResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationUserSearchResponse` - * @throws ClassCastException if the instance is not `ModerationUserSearchResponse` - */ - public ModerationUserSearchResponse getModerationUserSearchResponse() throws ClassCastException { - return (ModerationUserSearchResponse)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 GetSearchUsersResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationUserSearchResponse - try { - ModerationUserSearchResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationUserSearchResponse 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 GetSearchUsersResponse with anyOf schemas: APIError, ModerationUserSearchResponse. 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 GetSearchUsersResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetSearchUsersResponse - * @throws IOException if the JSON string is invalid with respect to GetSearchUsersResponse - */ - public static GetSearchUsersResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetSearchUsersResponse.class); - } - - /** - * Convert an instance of GetSearchUsersResponse 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/GetTenantDailyUsagesResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse1.java deleted file mode 100644 index 15b25216..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenantDailyUsagesResponse1.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.23.0-SNAPSHOT") -public class GetTenantDailyUsagesResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantDailyUsagesResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantDailyUsagesResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantDailyUsagesResponse1' 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, GetTenantDailyUsagesResponse1 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 GetTenantDailyUsagesResponse1 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; - GetTenantDailyUsagesResponse1 ret = new GetTenantDailyUsagesResponse1(); - 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; - GetTenantDailyUsagesResponse1 ret = new GetTenantDailyUsagesResponse1(); - 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 GetTenantDailyUsagesResponse1: 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 GetTenantDailyUsagesResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetTenantDailyUsagesResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantDailyUsagesResponse", GetTenantDailyUsagesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenantDailyUsagesResponse1.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 GetTenantDailyUsagesResponse1 - */ - 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 GetTenantDailyUsagesResponse1 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 GetTenantDailyUsagesResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenantDailyUsagesResponse1 - * @throws IOException if the JSON string is invalid with respect to GetTenantDailyUsagesResponse1 - */ - public static GetTenantDailyUsagesResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantDailyUsagesResponse1.class); - } - - /** - * Convert an instance of GetTenantDailyUsagesResponse1 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/GetTenantPackageResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantPackageResponse1.java deleted file mode 100644 index 963f511e..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenantPackageResponse1.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.23.0-SNAPSHOT") -public class GetTenantPackageResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantPackageResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantPackageResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantPackageResponse1' 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, GetTenantPackageResponse1 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 GetTenantPackageResponse1 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; - GetTenantPackageResponse1 ret = new GetTenantPackageResponse1(); - 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; - GetTenantPackageResponse1 ret = new GetTenantPackageResponse1(); - 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 GetTenantPackageResponse1: 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 GetTenantPackageResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetTenantPackageResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantPackageResponse", GetTenantPackageResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenantPackageResponse1.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 GetTenantPackageResponse1 - */ - 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 GetTenantPackageResponse1 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 GetTenantPackageResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenantPackageResponse1 - * @throws IOException if the JSON string is invalid with respect to GetTenantPackageResponse1 - */ - public static GetTenantPackageResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantPackageResponse1.class); - } - - /** - * Convert an instance of GetTenantPackageResponse1 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/GetTenantPackagesResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantPackagesResponse1.java deleted file mode 100644 index dfcaa8dc..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenantPackagesResponse1.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.23.0-SNAPSHOT") -public class GetTenantPackagesResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantPackagesResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantPackagesResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantPackagesResponse1' 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, GetTenantPackagesResponse1 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 GetTenantPackagesResponse1 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; - GetTenantPackagesResponse1 ret = new GetTenantPackagesResponse1(); - 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; - GetTenantPackagesResponse1 ret = new GetTenantPackagesResponse1(); - 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 GetTenantPackagesResponse1: 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 GetTenantPackagesResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetTenantPackagesResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantPackagesResponse", GetTenantPackagesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenantPackagesResponse1.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 GetTenantPackagesResponse1 - */ - 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 GetTenantPackagesResponse1 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 GetTenantPackagesResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenantPackagesResponse1 - * @throws IOException if the JSON string is invalid with respect to GetTenantPackagesResponse1 - */ - public static GetTenantPackagesResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantPackagesResponse1.class); - } - - /** - * Convert an instance of GetTenantPackagesResponse1 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/GetTenantResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantResponse1.java deleted file mode 100644 index 8c22595c..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenantResponse1.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.23.0-SNAPSHOT") -public class GetTenantResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantResponse1' 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, GetTenantResponse1 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 GetTenantResponse1 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; - GetTenantResponse1 ret = new GetTenantResponse1(); - 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; - GetTenantResponse1 ret = new GetTenantResponse1(); - 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 GetTenantResponse1: 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 GetTenantResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetTenantResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantResponse", GetTenantResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenantResponse1.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 GetTenantResponse1 - */ - 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 GetTenantResponse1 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 GetTenantResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenantResponse1 - * @throws IOException if the JSON string is invalid with respect to GetTenantResponse1 - */ - public static GetTenantResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantResponse1.class); - } - - /** - * Convert an instance of GetTenantResponse1 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/GetTenantUserResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantUserResponse1.java deleted file mode 100644 index 9cdf8c29..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenantUserResponse1.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.23.0-SNAPSHOT") -public class GetTenantUserResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantUserResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantUserResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantUserResponse1' 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, GetTenantUserResponse1 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 GetTenantUserResponse1 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; - GetTenantUserResponse1 ret = new GetTenantUserResponse1(); - 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; - GetTenantUserResponse1 ret = new GetTenantUserResponse1(); - 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 GetTenantUserResponse1: 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 GetTenantUserResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetTenantUserResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantUserResponse", GetTenantUserResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenantUserResponse1.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 GetTenantUserResponse1 - */ - 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 GetTenantUserResponse1 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 GetTenantUserResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenantUserResponse1 - * @throws IOException if the JSON string is invalid with respect to GetTenantUserResponse1 - */ - public static GetTenantUserResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantUserResponse1.class); - } - - /** - * Convert an instance of GetTenantUserResponse1 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/GetTenantUsersResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantUsersResponse1.java deleted file mode 100644 index f515d581..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenantUsersResponse1.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.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 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 GetTenantUsersResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantUsersResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantUsersResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantUsersResponse1' 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)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetTenantUsersResponse1 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()); - 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, GetTenantUsersResponse"); - } - - @Override - public GetTenantUsersResponse1 read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetTenantUsersResponse - try { - // validate the JSON object to see if any exception is thrown - GetTenantUsersResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTenantUsersResponse; - GetTenantUsersResponse1 ret = new GetTenantUsersResponse1(); - 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); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTenantUsersResponse1 ret = new GetTenantUsersResponse1(); - 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 GetTenantUsersResponse1: 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 GetTenantUsersResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetTenantUsersResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantUsersResponse", GetTenantUsersResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenantUsersResponse1.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTenantUsersResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetTenantUsersResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetTenantUsersResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetTenantUsersResponse - * - * @return The actual instance (APIError, GetTenantUsersResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetTenantUsersResponse`. If the actual instance is not `GetTenantUsersResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetTenantUsersResponse` - * @throws ClassCastException if the instance is not `GetTenantUsersResponse` - */ - public GetTenantUsersResponse getGetTenantUsersResponse() throws ClassCastException { - return (GetTenantUsersResponse)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 GetTenantUsersResponse1 - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTenantUsersResponse - try { - GetTenantUsersResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTenantUsersResponse 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 GetTenantUsersResponse1 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())); - } - - /** - * Create an instance of GetTenantUsersResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenantUsersResponse1 - * @throws IOException if the JSON string is invalid with respect to GetTenantUsersResponse1 - */ - public static GetTenantUsersResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantUsersResponse1.class); - } - - /** - * Convert an instance of GetTenantUsersResponse1 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/GetTenantsResponse1.java b/client/src/main/java/com/fastcomments/model/GetTenantsResponse1.java deleted file mode 100644 index c20c5208..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTenantsResponse1.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.23.0-SNAPSHOT") -public class GetTenantsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTenantsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTenantsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTenantsResponse1' 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, GetTenantsResponse1 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 GetTenantsResponse1 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; - GetTenantsResponse1 ret = new GetTenantsResponse1(); - 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; - GetTenantsResponse1 ret = new GetTenantsResponse1(); - 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 GetTenantsResponse1: 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 GetTenantsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetTenantsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTenantsResponse", GetTenantsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTenantsResponse1.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 GetTenantsResponse1 - */ - 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 GetTenantsResponse1 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 GetTenantsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTenantsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetTenantsResponse1 - */ - public static GetTenantsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTenantsResponse1.class); - } - - /** - * Convert an instance of GetTenantsResponse1 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/GetTicketResponse1.java b/client/src/main/java/com/fastcomments/model/GetTicketResponse1.java deleted file mode 100644 index a5c6a60f..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTicketResponse1.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.23.0-SNAPSHOT") -public class GetTicketResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTicketResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTicketResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTicketResponse1' 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, GetTicketResponse1 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 GetTicketResponse1 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; - GetTicketResponse1 ret = new GetTicketResponse1(); - 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; - GetTicketResponse1 ret = new GetTicketResponse1(); - 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 GetTicketResponse1: 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 GetTicketResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetTicketResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTicketResponse", GetTicketResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTicketResponse1.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 GetTicketResponse1 - */ - 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 GetTicketResponse1 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 GetTicketResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTicketResponse1 - * @throws IOException if the JSON string is invalid with respect to GetTicketResponse1 - */ - public static GetTicketResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTicketResponse1.class); - } - - /** - * Convert an instance of GetTicketResponse1 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/GetTicketsResponse1.java b/client/src/main/java/com/fastcomments/model/GetTicketsResponse1.java deleted file mode 100644 index ad559daa..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTicketsResponse1.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.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 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 GetTicketsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTicketsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTicketsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTicketsResponse1' 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)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetTicketsResponse1 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()); - 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, GetTicketsResponse"); - } - - @Override - public GetTicketsResponse1 read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetTicketsResponse - try { - // validate the JSON object to see if any exception is thrown - GetTicketsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTicketsResponse; - GetTicketsResponse1 ret = new GetTicketsResponse1(); - 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); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTicketsResponse1 ret = new GetTicketsResponse1(); - 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 GetTicketsResponse1: 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 GetTicketsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetTicketsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTicketsResponse", GetTicketsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTicketsResponse1.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTicketsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetTicketsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetTicketsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetTicketsResponse - * - * @return The actual instance (APIError, GetTicketsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetTicketsResponse`. If the actual instance is not `GetTicketsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetTicketsResponse` - * @throws ClassCastException if the instance is not `GetTicketsResponse` - */ - public GetTicketsResponse getGetTicketsResponse() throws ClassCastException { - return (GetTicketsResponse)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 GetTicketsResponse1 - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTicketsResponse - try { - GetTicketsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTicketsResponse 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 GetTicketsResponse1 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())); - } - - /** - * Create an instance of GetTicketsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTicketsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetTicketsResponse1 - */ - public static GetTicketsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTicketsResponse1.class); - } - - /** - * Convert an instance of GetTicketsResponse1 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/GetTranslationsResponse1.java b/client/src/main/java/com/fastcomments/model/GetTranslationsResponse1.java deleted file mode 100644 index 970ebe39..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTranslationsResponse1.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.GetTranslationsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetTranslationsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTranslationsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTranslationsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTranslationsResponse1' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetTranslationsResponse = gson.getDelegateAdapter(this, TypeToken.get(GetTranslationsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetTranslationsResponse1 value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetTranslationsResponse` - if (value.getActualInstance() instanceof GetTranslationsResponse) { - JsonElement element = adapterGetTranslationsResponse.toJsonTree((GetTranslationsResponse)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, GetTranslationsResponse"); - } - - @Override - public GetTranslationsResponse1 read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetTranslationsResponse - try { - // validate the JSON object to see if any exception is thrown - GetTranslationsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetTranslationsResponse; - GetTranslationsResponse1 ret = new GetTranslationsResponse1(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTranslationsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetTranslationsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTranslationsResponse1 ret = new GetTranslationsResponse1(); - 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 GetTranslationsResponse1: 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 GetTranslationsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetTranslationsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetTranslationsResponse", GetTranslationsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTranslationsResponse1.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetTranslationsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetTranslationsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetTranslationsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetTranslationsResponse - * - * @return The actual instance (APIError, GetTranslationsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetTranslationsResponse`. If the actual instance is not `GetTranslationsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetTranslationsResponse` - * @throws ClassCastException if the instance is not `GetTranslationsResponse` - */ - public GetTranslationsResponse getGetTranslationsResponse() throws ClassCastException { - return (GetTranslationsResponse)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 GetTranslationsResponse1 - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetTranslationsResponse - try { - GetTranslationsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetTranslationsResponse 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 GetTranslationsResponse1 with anyOf schemas: APIError, GetTranslationsResponse. 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 GetTranslationsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTranslationsResponse1 - * @throws IOException if the JSON string is invalid with respect to GetTranslationsResponse1 - */ - public static GetTranslationsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTranslationsResponse1.class); - } - - /** - * Convert an instance of GetTranslationsResponse1 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/GetTrustFactorResponse.java b/client/src/main/java/com/fastcomments/model/GetTrustFactorResponse.java deleted file mode 100644 index d1d6035b..00000000 --- a/client/src/main/java/com/fastcomments/model/GetTrustFactorResponse.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.GetUserTrustFactorResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetTrustFactorResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetTrustFactorResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetTrustFactorResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetTrustFactorResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetUserTrustFactorResponse = gson.getDelegateAdapter(this, TypeToken.get(GetUserTrustFactorResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetTrustFactorResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetUserTrustFactorResponse` - if (value.getActualInstance() instanceof GetUserTrustFactorResponse) { - JsonElement element = adapterGetUserTrustFactorResponse.toJsonTree((GetUserTrustFactorResponse)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, GetUserTrustFactorResponse"); - } - - @Override - public GetTrustFactorResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetUserTrustFactorResponse - try { - // validate the JSON object to see if any exception is thrown - GetUserTrustFactorResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetUserTrustFactorResponse; - GetTrustFactorResponse ret = new GetTrustFactorResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserTrustFactorResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetUserTrustFactorResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetTrustFactorResponse ret = new GetTrustFactorResponse(); - 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 GetTrustFactorResponse: 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 GetTrustFactorResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetTrustFactorResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetUserTrustFactorResponse", GetUserTrustFactorResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetTrustFactorResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetUserTrustFactorResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetUserTrustFactorResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetUserTrustFactorResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetUserTrustFactorResponse - * - * @return The actual instance (APIError, GetUserTrustFactorResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetUserTrustFactorResponse`. If the actual instance is not `GetUserTrustFactorResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetUserTrustFactorResponse` - * @throws ClassCastException if the instance is not `GetUserTrustFactorResponse` - */ - public GetUserTrustFactorResponse getGetUserTrustFactorResponse() throws ClassCastException { - return (GetUserTrustFactorResponse)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 GetTrustFactorResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetUserTrustFactorResponse - try { - GetUserTrustFactorResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserTrustFactorResponse 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 GetTrustFactorResponse with anyOf schemas: APIError, GetUserTrustFactorResponse. 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 GetTrustFactorResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTrustFactorResponse - * @throws IOException if the JSON string is invalid with respect to GetTrustFactorResponse - */ - public static GetTrustFactorResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetTrustFactorResponse.class); - } - - /** - * Convert an instance of GetTrustFactorResponse 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/GetUserBadgeProgressByIdResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByIdResponse.java deleted file mode 100644 index 3865ed07..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByIdResponse.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.23.0-SNAPSHOT") -public class GetUserBadgeProgressByIdResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserBadgeProgressByIdResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserBadgeProgressByIdResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserBadgeProgressByIdResponse' 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, GetUserBadgeProgressByIdResponse 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 GetUserBadgeProgressByIdResponse 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; - GetUserBadgeProgressByIdResponse ret = new GetUserBadgeProgressByIdResponse(); - 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; - GetUserBadgeProgressByIdResponse ret = new GetUserBadgeProgressByIdResponse(); - 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 GetUserBadgeProgressByIdResponse: 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 GetUserBadgeProgressByIdResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetUserBadgeProgressByIdResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetUserBadgeProgressResponse", APIGetUserBadgeProgressResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserBadgeProgressByIdResponse.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 GetUserBadgeProgressByIdResponse - */ - 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 GetUserBadgeProgressByIdResponse 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 GetUserBadgeProgressByIdResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserBadgeProgressByIdResponse - * @throws IOException if the JSON string is invalid with respect to GetUserBadgeProgressByIdResponse - */ - public static GetUserBadgeProgressByIdResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserBadgeProgressByIdResponse.class); - } - - /** - * Convert an instance of GetUserBadgeProgressByIdResponse 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/GetUserBadgeProgressByUserIdResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponse.java deleted file mode 100644 index dcc54ccb..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponse.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.23.0-SNAPSHOT") -public class GetUserBadgeProgressByUserIdResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserBadgeProgressByUserIdResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserBadgeProgressByUserIdResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserBadgeProgressByUserIdResponse' 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, GetUserBadgeProgressByUserIdResponse 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 GetUserBadgeProgressByUserIdResponse 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; - GetUserBadgeProgressByUserIdResponse ret = new GetUserBadgeProgressByUserIdResponse(); - 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; - GetUserBadgeProgressByUserIdResponse ret = new GetUserBadgeProgressByUserIdResponse(); - 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 GetUserBadgeProgressByUserIdResponse: 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 GetUserBadgeProgressByUserIdResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetUserBadgeProgressByUserIdResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetUserBadgeProgressResponse", APIGetUserBadgeProgressResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserBadgeProgressByUserIdResponse.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 GetUserBadgeProgressByUserIdResponse - */ - 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 GetUserBadgeProgressByUserIdResponse 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 GetUserBadgeProgressByUserIdResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserBadgeProgressByUserIdResponse - * @throws IOException if the JSON string is invalid with respect to GetUserBadgeProgressByUserIdResponse - */ - public static GetUserBadgeProgressByUserIdResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserBadgeProgressByUserIdResponse.class); - } - - /** - * Convert an instance of GetUserBadgeProgressByUserIdResponse 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/GetUserBadgeProgressListResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressListResponse.java deleted file mode 100644 index 3eabc9ab..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserBadgeProgressListResponse.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.23.0-SNAPSHOT") -public class GetUserBadgeProgressListResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserBadgeProgressListResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserBadgeProgressListResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserBadgeProgressListResponse' 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, GetUserBadgeProgressListResponse 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 GetUserBadgeProgressListResponse 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; - GetUserBadgeProgressListResponse ret = new GetUserBadgeProgressListResponse(); - 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; - GetUserBadgeProgressListResponse ret = new GetUserBadgeProgressListResponse(); - 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 GetUserBadgeProgressListResponse: 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 GetUserBadgeProgressListResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetUserBadgeProgressListResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetUserBadgeProgressListResponse", APIGetUserBadgeProgressListResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserBadgeProgressListResponse.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 GetUserBadgeProgressListResponse - */ - 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 GetUserBadgeProgressListResponse 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 GetUserBadgeProgressListResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserBadgeProgressListResponse - * @throws IOException if the JSON string is invalid with respect to GetUserBadgeProgressListResponse - */ - public static GetUserBadgeProgressListResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserBadgeProgressListResponse.class); - } - - /** - * Convert an instance of GetUserBadgeProgressListResponse 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/GetUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBadgeResponse.java deleted file mode 100644 index 4d9c93b8..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserBadgeResponse.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.23.0-SNAPSHOT") -public class GetUserBadgeResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserBadgeResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserBadgeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserBadgeResponse' 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, GetUserBadgeResponse 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 GetUserBadgeResponse 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; - GetUserBadgeResponse ret = new GetUserBadgeResponse(); - 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; - GetUserBadgeResponse ret = new GetUserBadgeResponse(); - 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 GetUserBadgeResponse: 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 GetUserBadgeResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetUserBadgeResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetUserBadgeResponse", APIGetUserBadgeResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserBadgeResponse.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 GetUserBadgeResponse - */ - 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 GetUserBadgeResponse 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 GetUserBadgeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserBadgeResponse - * @throws IOException if the JSON string is invalid with respect to GetUserBadgeResponse - */ - public static GetUserBadgeResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserBadgeResponse.class); - } - - /** - * Convert an instance of GetUserBadgeResponse 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/GetUserBadgesResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBadgesResponse.java deleted file mode 100644 index 0dd6fc1d..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserBadgesResponse.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.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 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 GetUserBadgesResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserBadgesResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserBadgesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserBadgesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPIGetUserBadgesResponse = gson.getDelegateAdapter(this, TypeToken.get(APIGetUserBadgesResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserBadgesResponse 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()); - 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, APIGetUserBadgesResponse"); - } - - @Override - public GetUserBadgesResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APIGetUserBadgesResponse - try { - // validate the JSON object to see if any exception is thrown - APIGetUserBadgesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIGetUserBadgesResponse; - GetUserBadgesResponse ret = new GetUserBadgesResponse(); - 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); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUserBadgesResponse ret = new GetUserBadgesResponse(); - 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 GetUserBadgesResponse: 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 GetUserBadgesResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetUserBadgesResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIGetUserBadgesResponse", APIGetUserBadgesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserBadgesResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, APIGetUserBadgesResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APIGetUserBadgesResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, APIGetUserBadgesResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, APIGetUserBadgesResponse - * - * @return The actual instance (APIError, APIGetUserBadgesResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APIGetUserBadgesResponse`. If the actual instance is not `APIGetUserBadgesResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIGetUserBadgesResponse` - * @throws ClassCastException if the instance is not `APIGetUserBadgesResponse` - */ - public APIGetUserBadgesResponse getAPIGetUserBadgesResponse() throws ClassCastException { - return (APIGetUserBadgesResponse)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 GetUserBadgesResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIGetUserBadgesResponse - try { - APIGetUserBadgesResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIGetUserBadgesResponse 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 GetUserBadgesResponse 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())); - } - - /** - * Create an instance of GetUserBadgesResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserBadgesResponse - * @throws IOException if the JSON string is invalid with respect to GetUserBadgesResponse - */ - public static GetUserBadgesResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserBadgesResponse.class); - } - - /** - * Convert an instance of GetUserBadgesResponse 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/GetUserBanPreferenceResponse.java b/client/src/main/java/com/fastcomments/model/GetUserBanPreferenceResponse.java deleted file mode 100644 index d68b52a4..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserBanPreferenceResponse.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.APIModerateGetUserBanPreferencesResponse; -import com.fastcomments.model.APIModerateUserBanPreferences; -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.23.0-SNAPSHOT") -public class GetUserBanPreferenceResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserBanPreferenceResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserBanPreferenceResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserBanPreferenceResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAPIModerateGetUserBanPreferencesResponse = gson.getDelegateAdapter(this, TypeToken.get(APIModerateGetUserBanPreferencesResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserBanPreferenceResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `APIModerateGetUserBanPreferencesResponse` - if (value.getActualInstance() instanceof APIModerateGetUserBanPreferencesResponse) { - JsonElement element = adapterAPIModerateGetUserBanPreferencesResponse.toJsonTree((APIModerateGetUserBanPreferencesResponse)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, APIModerateGetUserBanPreferencesResponse"); - } - - @Override - public GetUserBanPreferenceResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APIModerateGetUserBanPreferencesResponse - try { - // validate the JSON object to see if any exception is thrown - APIModerateGetUserBanPreferencesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIModerateGetUserBanPreferencesResponse; - GetUserBanPreferenceResponse ret = new GetUserBanPreferenceResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIModerateGetUserBanPreferencesResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'APIModerateGetUserBanPreferencesResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUserBanPreferenceResponse ret = new GetUserBanPreferenceResponse(); - 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 GetUserBanPreferenceResponse: 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 GetUserBanPreferenceResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetUserBanPreferenceResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIModerateGetUserBanPreferencesResponse", APIModerateGetUserBanPreferencesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserBanPreferenceResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, APIModerateGetUserBanPreferencesResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APIModerateGetUserBanPreferencesResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, APIModerateGetUserBanPreferencesResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, APIModerateGetUserBanPreferencesResponse - * - * @return The actual instance (APIError, APIModerateGetUserBanPreferencesResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APIModerateGetUserBanPreferencesResponse`. If the actual instance is not `APIModerateGetUserBanPreferencesResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIModerateGetUserBanPreferencesResponse` - * @throws ClassCastException if the instance is not `APIModerateGetUserBanPreferencesResponse` - */ - public APIModerateGetUserBanPreferencesResponse getAPIModerateGetUserBanPreferencesResponse() throws ClassCastException { - return (APIModerateGetUserBanPreferencesResponse)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 GetUserBanPreferenceResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIModerateGetUserBanPreferencesResponse - try { - APIModerateGetUserBanPreferencesResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIModerateGetUserBanPreferencesResponse 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 GetUserBanPreferenceResponse with anyOf schemas: APIError, APIModerateGetUserBanPreferencesResponse. 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 GetUserBanPreferenceResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserBanPreferenceResponse - * @throws IOException if the JSON string is invalid with respect to GetUserBanPreferenceResponse - */ - public static GetUserBanPreferenceResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserBanPreferenceResponse.class); - } - - /** - * Convert an instance of GetUserBanPreferenceResponse 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/GetUserInternalProfileResponse1.java b/client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponse1.java deleted file mode 100644 index f00a5efe..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserInternalProfileResponse1.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.GetUserInternalProfileResponse; -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 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 GetUserInternalProfileResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserInternalProfileResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserInternalProfileResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserInternalProfileResponse1' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetUserInternalProfileResponse = gson.getDelegateAdapter(this, TypeToken.get(GetUserInternalProfileResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserInternalProfileResponse1 value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetUserInternalProfileResponse` - if (value.getActualInstance() instanceof GetUserInternalProfileResponse) { - JsonElement element = adapterGetUserInternalProfileResponse.toJsonTree((GetUserInternalProfileResponse)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, GetUserInternalProfileResponse"); - } - - @Override - public GetUserInternalProfileResponse1 read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetUserInternalProfileResponse - try { - // validate the JSON object to see if any exception is thrown - GetUserInternalProfileResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetUserInternalProfileResponse; - GetUserInternalProfileResponse1 ret = new GetUserInternalProfileResponse1(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserInternalProfileResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetUserInternalProfileResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUserInternalProfileResponse1 ret = new GetUserInternalProfileResponse1(); - 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 GetUserInternalProfileResponse1: 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 GetUserInternalProfileResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetUserInternalProfileResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetUserInternalProfileResponse", GetUserInternalProfileResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserInternalProfileResponse1.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetUserInternalProfileResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetUserInternalProfileResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetUserInternalProfileResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetUserInternalProfileResponse - * - * @return The actual instance (APIError, GetUserInternalProfileResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetUserInternalProfileResponse`. If the actual instance is not `GetUserInternalProfileResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetUserInternalProfileResponse` - * @throws ClassCastException if the instance is not `GetUserInternalProfileResponse` - */ - public GetUserInternalProfileResponse getGetUserInternalProfileResponse() throws ClassCastException { - return (GetUserInternalProfileResponse)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 GetUserInternalProfileResponse1 - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetUserInternalProfileResponse - try { - GetUserInternalProfileResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetUserInternalProfileResponse 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 GetUserInternalProfileResponse1 with anyOf schemas: APIError, GetUserInternalProfileResponse. 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 GetUserInternalProfileResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserInternalProfileResponse1 - * @throws IOException if the JSON string is invalid with respect to GetUserInternalProfileResponse1 - */ - public static GetUserInternalProfileResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserInternalProfileResponse1.class); - } - - /** - * Convert an instance of GetUserInternalProfileResponse1 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/GetUserNotificationCountResponse1.java b/client/src/main/java/com/fastcomments/model/GetUserNotificationCountResponse1.java deleted file mode 100644 index 8da89aa4..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserNotificationCountResponse1.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.23.0-SNAPSHOT") -public class GetUserNotificationCountResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserNotificationCountResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserNotificationCountResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserNotificationCountResponse1' 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, GetUserNotificationCountResponse1 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 GetUserNotificationCountResponse1 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; - GetUserNotificationCountResponse1 ret = new GetUserNotificationCountResponse1(); - 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; - GetUserNotificationCountResponse1 ret = new GetUserNotificationCountResponse1(); - 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 GetUserNotificationCountResponse1: 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 GetUserNotificationCountResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetUserNotificationCountResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetUserNotificationCountResponse", GetUserNotificationCountResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserNotificationCountResponse1.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 GetUserNotificationCountResponse1 - */ - 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 GetUserNotificationCountResponse1 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 GetUserNotificationCountResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserNotificationCountResponse1 - * @throws IOException if the JSON string is invalid with respect to GetUserNotificationCountResponse1 - */ - public static GetUserNotificationCountResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserNotificationCountResponse1.class); - } - - /** - * Convert an instance of GetUserNotificationCountResponse1 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/GetUserNotificationsResponse.java b/client/src/main/java/com/fastcomments/model/GetUserNotificationsResponse.java deleted file mode 100644 index bc14ea23..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserNotificationsResponse.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.23.0-SNAPSHOT") -public class GetUserNotificationsResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserNotificationsResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserNotificationsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserNotificationsResponse' 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, GetUserNotificationsResponse 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 GetUserNotificationsResponse 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; - GetUserNotificationsResponse ret = new GetUserNotificationsResponse(); - 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; - GetUserNotificationsResponse ret = new GetUserNotificationsResponse(); - 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 GetUserNotificationsResponse: 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 GetUserNotificationsResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetUserNotificationsResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetMyNotificationsResponse", GetMyNotificationsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserNotificationsResponse.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 GetUserNotificationsResponse - */ - 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 GetUserNotificationsResponse 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 GetUserNotificationsResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserNotificationsResponse - * @throws IOException if the JSON string is invalid with respect to GetUserNotificationsResponse - */ - public static GetUserNotificationsResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserNotificationsResponse.class); - } - - /** - * Convert an instance of GetUserNotificationsResponse 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/GetUserPresenceStatusesResponse1.java b/client/src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse1.java deleted file mode 100644 index 8946890f..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserPresenceStatusesResponse1.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.23.0-SNAPSHOT") -public class GetUserPresenceStatusesResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserPresenceStatusesResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserPresenceStatusesResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserPresenceStatusesResponse1' 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, GetUserPresenceStatusesResponse1 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 GetUserPresenceStatusesResponse1 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; - GetUserPresenceStatusesResponse1 ret = new GetUserPresenceStatusesResponse1(); - 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; - GetUserPresenceStatusesResponse1 ret = new GetUserPresenceStatusesResponse1(); - 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 GetUserPresenceStatusesResponse1: 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 GetUserPresenceStatusesResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetUserPresenceStatusesResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetUserPresenceStatusesResponse", GetUserPresenceStatusesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserPresenceStatusesResponse1.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 GetUserPresenceStatusesResponse1 - */ - 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 GetUserPresenceStatusesResponse1 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 GetUserPresenceStatusesResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserPresenceStatusesResponse1 - * @throws IOException if the JSON string is invalid with respect to GetUserPresenceStatusesResponse1 - */ - public static GetUserPresenceStatusesResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserPresenceStatusesResponse1.class); - } - - /** - * Convert an instance of GetUserPresenceStatusesResponse1 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/GetUserReactsPublicResponse.java b/client/src/main/java/com/fastcomments/model/GetUserReactsPublicResponse.java deleted file mode 100644 index 1e2a9b3a..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserReactsPublicResponse.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.23.0-SNAPSHOT") -public class GetUserReactsPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserReactsPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserReactsPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserReactsPublicResponse' 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, GetUserReactsPublicResponse 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 GetUserReactsPublicResponse 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; - GetUserReactsPublicResponse ret = new GetUserReactsPublicResponse(); - 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; - GetUserReactsPublicResponse ret = new GetUserReactsPublicResponse(); - 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 GetUserReactsPublicResponse: 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 GetUserReactsPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetUserReactsPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("UserReactsResponse", UserReactsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserReactsPublicResponse.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 GetUserReactsPublicResponse - */ - 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 GetUserReactsPublicResponse 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 GetUserReactsPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserReactsPublicResponse - * @throws IOException if the JSON string is invalid with respect to GetUserReactsPublicResponse - */ - public static GetUserReactsPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserReactsPublicResponse.class); - } - - /** - * Convert an instance of GetUserReactsPublicResponse 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/GetUserResponse1.java b/client/src/main/java/com/fastcomments/model/GetUserResponse1.java deleted file mode 100644 index ccc51c01..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUserResponse1.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.23.0-SNAPSHOT") -public class GetUserResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUserResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserResponse1' 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, GetUserResponse1 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 GetUserResponse1 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; - GetUserResponse1 ret = new GetUserResponse1(); - 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; - GetUserResponse1 ret = new GetUserResponse1(); - 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 GetUserResponse1: 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 GetUserResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetUserResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetUserResponse", GetUserResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUserResponse1.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 GetUserResponse1 - */ - 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 GetUserResponse1 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 GetUserResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUserResponse1 - * @throws IOException if the JSON string is invalid with respect to GetUserResponse1 - */ - public static GetUserResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUserResponse1.class); - } - - /** - * Convert an instance of GetUserResponse1 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/GetUsersInfoResponse.java b/client/src/main/java/com/fastcomments/model/GetUsersInfoResponse.java deleted file mode 100644 index 5d009f92..00000000 --- a/client/src/main/java/com/fastcomments/model/GetUsersInfoResponse.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.PageUserEntry; -import com.fastcomments.model.PageUsersInfoResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetUsersInfoResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetUsersInfoResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUsersInfoResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUsersInfoResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterPageUsersInfoResponse = gson.getDelegateAdapter(this, TypeToken.get(PageUsersInfoResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUsersInfoResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `PageUsersInfoResponse` - if (value.getActualInstance() instanceof PageUsersInfoResponse) { - JsonElement element = adapterPageUsersInfoResponse.toJsonTree((PageUsersInfoResponse)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, PageUsersInfoResponse"); - } - - @Override - public GetUsersInfoResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize PageUsersInfoResponse - try { - // validate the JSON object to see if any exception is thrown - PageUsersInfoResponse.validateJsonElement(jsonElement); - actualAdapter = adapterPageUsersInfoResponse; - GetUsersInfoResponse ret = new GetUsersInfoResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersInfoResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'PageUsersInfoResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetUsersInfoResponse ret = new GetUsersInfoResponse(); - 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 GetUsersInfoResponse: 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 GetUsersInfoResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetUsersInfoResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("PageUsersInfoResponse", PageUsersInfoResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetUsersInfoResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, PageUsersInfoResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof PageUsersInfoResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, PageUsersInfoResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, PageUsersInfoResponse - * - * @return The actual instance (APIError, PageUsersInfoResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `PageUsersInfoResponse`. If the actual instance is not `PageUsersInfoResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PageUsersInfoResponse` - * @throws ClassCastException if the instance is not `PageUsersInfoResponse` - */ - public PageUsersInfoResponse getPageUsersInfoResponse() throws ClassCastException { - return (PageUsersInfoResponse)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 GetUsersInfoResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with PageUsersInfoResponse - try { - PageUsersInfoResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for PageUsersInfoResponse 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 GetUsersInfoResponse with anyOf schemas: APIError, PageUsersInfoResponse. 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 GetUsersInfoResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetUsersInfoResponse - * @throws IOException if the JSON string is invalid with respect to GetUsersInfoResponse - */ - public static GetUsersInfoResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetUsersInfoResponse.class); - } - - /** - * Convert an instance of GetUsersInfoResponse 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/GetV1PageLikesResponse.java b/client/src/main/java/com/fastcomments/model/GetV1PageLikesResponse.java deleted file mode 100644 index 3849d8e1..00000000 --- a/client/src/main/java/com/fastcomments/model/GetV1PageLikesResponse.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.GetV1PageLikes; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetV1PageLikesResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetV1PageLikesResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetV1PageLikesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetV1PageLikesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetV1PageLikes = gson.getDelegateAdapter(this, TypeToken.get(GetV1PageLikes.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetV1PageLikesResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetV1PageLikes` - if (value.getActualInstance() instanceof GetV1PageLikes) { - JsonElement element = adapterGetV1PageLikes.toJsonTree((GetV1PageLikes)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, GetV1PageLikes"); - } - - @Override - public GetV1PageLikesResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetV1PageLikes - try { - // validate the JSON object to see if any exception is thrown - GetV1PageLikes.validateJsonElement(jsonElement); - actualAdapter = adapterGetV1PageLikes; - GetV1PageLikesResponse ret = new GetV1PageLikesResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV1PageLikes failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetV1PageLikes'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetV1PageLikesResponse ret = new GetV1PageLikesResponse(); - 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 GetV1PageLikesResponse: 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 GetV1PageLikesResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetV1PageLikesResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetV1PageLikes", GetV1PageLikes.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetV1PageLikesResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetV1PageLikes - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetV1PageLikes) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetV1PageLikes"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetV1PageLikes - * - * @return The actual instance (APIError, GetV1PageLikes) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetV1PageLikes`. If the actual instance is not `GetV1PageLikes`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetV1PageLikes` - * @throws ClassCastException if the instance is not `GetV1PageLikes` - */ - public GetV1PageLikes getGetV1PageLikes() throws ClassCastException { - return (GetV1PageLikes)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 GetV1PageLikesResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetV1PageLikes - try { - GetV1PageLikes.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV1PageLikes 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 GetV1PageLikesResponse with anyOf schemas: APIError, GetV1PageLikes. 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 GetV1PageLikesResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetV1PageLikesResponse - * @throws IOException if the JSON string is invalid with respect to GetV1PageLikesResponse - */ - public static GetV1PageLikesResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetV1PageLikesResponse.class); - } - - /** - * Convert an instance of GetV1PageLikesResponse 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/GetV2PageReactUsersResponse1.java b/client/src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse1.java deleted file mode 100644 index 24500962..00000000 --- a/client/src/main/java/com/fastcomments/model/GetV2PageReactUsersResponse1.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.GetV2PageReactUsersResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetV2PageReactUsersResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetV2PageReactUsersResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetV2PageReactUsersResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetV2PageReactUsersResponse1' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetV2PageReactUsersResponse = gson.getDelegateAdapter(this, TypeToken.get(GetV2PageReactUsersResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetV2PageReactUsersResponse1 value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetV2PageReactUsersResponse` - if (value.getActualInstance() instanceof GetV2PageReactUsersResponse) { - JsonElement element = adapterGetV2PageReactUsersResponse.toJsonTree((GetV2PageReactUsersResponse)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, GetV2PageReactUsersResponse"); - } - - @Override - public GetV2PageReactUsersResponse1 read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetV2PageReactUsersResponse - try { - // validate the JSON object to see if any exception is thrown - GetV2PageReactUsersResponse.validateJsonElement(jsonElement); - actualAdapter = adapterGetV2PageReactUsersResponse; - GetV2PageReactUsersResponse1 ret = new GetV2PageReactUsersResponse1(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV2PageReactUsersResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetV2PageReactUsersResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetV2PageReactUsersResponse1 ret = new GetV2PageReactUsersResponse1(); - 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 GetV2PageReactUsersResponse1: 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 GetV2PageReactUsersResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetV2PageReactUsersResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetV2PageReactUsersResponse", GetV2PageReactUsersResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetV2PageReactUsersResponse1.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetV2PageReactUsersResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetV2PageReactUsersResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetV2PageReactUsersResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetV2PageReactUsersResponse - * - * @return The actual instance (APIError, GetV2PageReactUsersResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetV2PageReactUsersResponse`. If the actual instance is not `GetV2PageReactUsersResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetV2PageReactUsersResponse` - * @throws ClassCastException if the instance is not `GetV2PageReactUsersResponse` - */ - public GetV2PageReactUsersResponse getGetV2PageReactUsersResponse() throws ClassCastException { - return (GetV2PageReactUsersResponse)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 GetV2PageReactUsersResponse1 - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetV2PageReactUsersResponse - try { - GetV2PageReactUsersResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV2PageReactUsersResponse 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 GetV2PageReactUsersResponse1 with anyOf schemas: APIError, GetV2PageReactUsersResponse. 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 GetV2PageReactUsersResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetV2PageReactUsersResponse1 - * @throws IOException if the JSON string is invalid with respect to GetV2PageReactUsersResponse1 - */ - public static GetV2PageReactUsersResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetV2PageReactUsersResponse1.class); - } - - /** - * Convert an instance of GetV2PageReactUsersResponse1 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/GetV2PageReactsResponse.java b/client/src/main/java/com/fastcomments/model/GetV2PageReactsResponse.java deleted file mode 100644 index 8db7097a..00000000 --- a/client/src/main/java/com/fastcomments/model/GetV2PageReactsResponse.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.GetV2PageReacts; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class GetV2PageReactsResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetV2PageReactsResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetV2PageReactsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetV2PageReactsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterGetV2PageReacts = gson.getDelegateAdapter(this, TypeToken.get(GetV2PageReacts.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetV2PageReactsResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `GetV2PageReacts` - if (value.getActualInstance() instanceof GetV2PageReacts) { - JsonElement element = adapterGetV2PageReacts.toJsonTree((GetV2PageReacts)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, GetV2PageReacts"); - } - - @Override - public GetV2PageReactsResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize GetV2PageReacts - try { - // validate the JSON object to see if any exception is thrown - GetV2PageReacts.validateJsonElement(jsonElement); - actualAdapter = adapterGetV2PageReacts; - GetV2PageReactsResponse ret = new GetV2PageReactsResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV2PageReacts failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'GetV2PageReacts'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - GetV2PageReactsResponse ret = new GetV2PageReactsResponse(); - 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 GetV2PageReactsResponse: 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 GetV2PageReactsResponse() { - super("anyOf", Boolean.FALSE); - } - - public GetV2PageReactsResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetV2PageReacts", GetV2PageReacts.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetV2PageReactsResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, GetV2PageReacts - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof GetV2PageReacts) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, GetV2PageReacts"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, GetV2PageReacts - * - * @return The actual instance (APIError, GetV2PageReacts) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `GetV2PageReacts`. If the actual instance is not `GetV2PageReacts`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `GetV2PageReacts` - * @throws ClassCastException if the instance is not `GetV2PageReacts` - */ - public GetV2PageReacts getGetV2PageReacts() throws ClassCastException { - return (GetV2PageReacts)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 GetV2PageReactsResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with GetV2PageReacts - try { - GetV2PageReacts.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for GetV2PageReacts 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 GetV2PageReactsResponse with anyOf schemas: APIError, GetV2PageReacts. 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 GetV2PageReactsResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetV2PageReactsResponse - * @throws IOException if the JSON string is invalid with respect to GetV2PageReactsResponse - */ - public static GetV2PageReactsResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetV2PageReactsResponse.class); - } - - /** - * Convert an instance of GetV2PageReactsResponse 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/GetVotesForUserResponse1.java b/client/src/main/java/com/fastcomments/model/GetVotesForUserResponse1.java deleted file mode 100644 index 7cb7faf1..00000000 --- a/client/src/main/java/com/fastcomments/model/GetVotesForUserResponse1.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.23.0-SNAPSHOT") -public class GetVotesForUserResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetVotesForUserResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetVotesForUserResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetVotesForUserResponse1' 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, GetVotesForUserResponse1 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 GetVotesForUserResponse1 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; - GetVotesForUserResponse1 ret = new GetVotesForUserResponse1(); - 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; - GetVotesForUserResponse1 ret = new GetVotesForUserResponse1(); - 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 GetVotesForUserResponse1: 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 GetVotesForUserResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetVotesForUserResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetVotesForUserResponse", GetVotesForUserResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetVotesForUserResponse1.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 GetVotesForUserResponse1 - */ - 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 GetVotesForUserResponse1 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 GetVotesForUserResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetVotesForUserResponse1 - * @throws IOException if the JSON string is invalid with respect to GetVotesForUserResponse1 - */ - public static GetVotesForUserResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetVotesForUserResponse1.class); - } - - /** - * Convert an instance of GetVotesForUserResponse1 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/GetVotesResponse1.java b/client/src/main/java/com/fastcomments/model/GetVotesResponse1.java deleted file mode 100644 index 6c2c6d10..00000000 --- a/client/src/main/java/com/fastcomments/model/GetVotesResponse1.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.23.0-SNAPSHOT") -public class GetVotesResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(GetVotesResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetVotesResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetVotesResponse1' 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, GetVotesResponse1 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 GetVotesResponse1 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; - GetVotesResponse1 ret = new GetVotesResponse1(); - 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; - GetVotesResponse1 ret = new GetVotesResponse1(); - 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 GetVotesResponse1: 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 GetVotesResponse1() { - super("anyOf", Boolean.FALSE); - } - - public GetVotesResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("GetVotesResponse", GetVotesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return GetVotesResponse1.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 GetVotesResponse1 - */ - 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 GetVotesResponse1 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 GetVotesResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetVotesResponse1 - * @throws IOException if the JSON string is invalid with respect to GetVotesResponse1 - */ - public static GetVotesResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GetVotesResponse1.class); - } - - /** - * Convert an instance of GetVotesResponse1 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/LockCommentResponse.java b/client/src/main/java/com/fastcomments/model/LockCommentResponse.java deleted file mode 100644 index b87ded0a..00000000 --- a/client/src/main/java/com/fastcomments/model/LockCommentResponse.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.23.0-SNAPSHOT") -public class LockCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(LockCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!LockCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LockCommentResponse' 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, LockCommentResponse 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 LockCommentResponse 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; - LockCommentResponse ret = new LockCommentResponse(); - 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; - LockCommentResponse ret = new LockCommentResponse(); - 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 LockCommentResponse: 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 LockCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public LockCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIError", APIError.class); - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - } - - @Override - public Map> getSchemas() { - return LockCommentResponse.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 LockCommentResponse - */ - 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 LockCommentResponse 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 LockCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of LockCommentResponse - * @throws IOException if the JSON string is invalid with respect to LockCommentResponse - */ - public static LockCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, LockCommentResponse.class); - } - - /** - * Convert an instance of LockCommentResponse 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/PatchHashTagResponse.java b/client/src/main/java/com/fastcomments/model/PatchHashTagResponse.java deleted file mode 100644 index 10a58658..00000000 --- a/client/src/main/java/com/fastcomments/model/PatchHashTagResponse.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.23.0-SNAPSHOT") -public class PatchHashTagResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PatchHashTagResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PatchHashTagResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PatchHashTagResponse' 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, PatchHashTagResponse 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 PatchHashTagResponse 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; - PatchHashTagResponse ret = new PatchHashTagResponse(); - 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; - PatchHashTagResponse ret = new PatchHashTagResponse(); - 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 PatchHashTagResponse: 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 PatchHashTagResponse() { - super("anyOf", Boolean.FALSE); - } - - public PatchHashTagResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("UpdateHashTagResponse", UpdateHashTagResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PatchHashTagResponse.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 PatchHashTagResponse - */ - 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 PatchHashTagResponse 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 PatchHashTagResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PatchHashTagResponse - * @throws IOException if the JSON string is invalid with respect to PatchHashTagResponse - */ - public static PatchHashTagResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PatchHashTagResponse.class); - } - - /** - * Convert an instance of PatchHashTagResponse 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/PinCommentResponse.java b/client/src/main/java/com/fastcomments/model/PinCommentResponse.java deleted file mode 100644 index e3388aa4..00000000 --- a/client/src/main/java/com/fastcomments/model/PinCommentResponse.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.23.0-SNAPSHOT") -public class PinCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PinCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PinCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PinCommentResponse' 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, PinCommentResponse 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 PinCommentResponse 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; - PinCommentResponse ret = new PinCommentResponse(); - 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; - PinCommentResponse ret = new PinCommentResponse(); - 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 PinCommentResponse: 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 PinCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public PinCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ChangeCommentPinStatusResponse", ChangeCommentPinStatusResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PinCommentResponse.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 PinCommentResponse - */ - 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 PinCommentResponse 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 PinCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PinCommentResponse - * @throws IOException if the JSON string is invalid with respect to PinCommentResponse - */ - public static PinCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PinCommentResponse.class); - } - - /** - * Convert an instance of PinCommentResponse 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/PostAdjustCommentVotesResponse.java b/client/src/main/java/com/fastcomments/model/PostAdjustCommentVotesResponse.java deleted file mode 100644 index 80bfd8cc..00000000 --- a/client/src/main/java/com/fastcomments/model/PostAdjustCommentVotesResponse.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.AdjustVotesResponse; -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.23.0-SNAPSHOT") -public class PostAdjustCommentVotesResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostAdjustCommentVotesResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostAdjustCommentVotesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostAdjustCommentVotesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAdjustVotesResponse = gson.getDelegateAdapter(this, TypeToken.get(AdjustVotesResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PostAdjustCommentVotesResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `AdjustVotesResponse` - if (value.getActualInstance() instanceof AdjustVotesResponse) { - JsonElement element = adapterAdjustVotesResponse.toJsonTree((AdjustVotesResponse)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, AdjustVotesResponse"); - } - - @Override - public PostAdjustCommentVotesResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize AdjustVotesResponse - try { - // validate the JSON object to see if any exception is thrown - AdjustVotesResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAdjustVotesResponse; - PostAdjustCommentVotesResponse ret = new PostAdjustCommentVotesResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AdjustVotesResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AdjustVotesResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - PostAdjustCommentVotesResponse ret = new PostAdjustCommentVotesResponse(); - 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 PostAdjustCommentVotesResponse: 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 PostAdjustCommentVotesResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostAdjustCommentVotesResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AdjustVotesResponse", AdjustVotesResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostAdjustCommentVotesResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, AdjustVotesResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof AdjustVotesResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, AdjustVotesResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, AdjustVotesResponse - * - * @return The actual instance (APIError, AdjustVotesResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AdjustVotesResponse`. If the actual instance is not `AdjustVotesResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AdjustVotesResponse` - * @throws ClassCastException if the instance is not `AdjustVotesResponse` - */ - public AdjustVotesResponse getAdjustVotesResponse() throws ClassCastException { - return (AdjustVotesResponse)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 PostAdjustCommentVotesResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with AdjustVotesResponse - try { - AdjustVotesResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AdjustVotesResponse 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 PostAdjustCommentVotesResponse with anyOf schemas: APIError, AdjustVotesResponse. 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 PostAdjustCommentVotesResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostAdjustCommentVotesResponse - * @throws IOException if the JSON string is invalid with respect to PostAdjustCommentVotesResponse - */ - public static PostAdjustCommentVotesResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostAdjustCommentVotesResponse.class); - } - - /** - * Convert an instance of PostAdjustCommentVotesResponse 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/PostApiExportResponse.java b/client/src/main/java/com/fastcomments/model/PostApiExportResponse.java deleted file mode 100644 index 14e34f71..00000000 --- a/client/src/main/java/com/fastcomments/model/PostApiExportResponse.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.ModerationExportResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 PostApiExportResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostApiExportResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostApiExportResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostApiExportResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationExportResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationExportResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PostApiExportResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationExportResponse` - if (value.getActualInstance() instanceof ModerationExportResponse) { - JsonElement element = adapterModerationExportResponse.toJsonTree((ModerationExportResponse)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, ModerationExportResponse"); - } - - @Override - public PostApiExportResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationExportResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationExportResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationExportResponse; - PostApiExportResponse ret = new PostApiExportResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationExportResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationExportResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - PostApiExportResponse ret = new PostApiExportResponse(); - 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 PostApiExportResponse: 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 PostApiExportResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostApiExportResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationExportResponse", ModerationExportResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostApiExportResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationExportResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationExportResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationExportResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationExportResponse - * - * @return The actual instance (APIError, ModerationExportResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationExportResponse`. If the actual instance is not `ModerationExportResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationExportResponse` - * @throws ClassCastException if the instance is not `ModerationExportResponse` - */ - public ModerationExportResponse getModerationExportResponse() throws ClassCastException { - return (ModerationExportResponse)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 PostApiExportResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationExportResponse - try { - ModerationExportResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationExportResponse 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 PostApiExportResponse with anyOf schemas: APIError, ModerationExportResponse. 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 PostApiExportResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostApiExportResponse - * @throws IOException if the JSON string is invalid with respect to PostApiExportResponse - */ - public static PostApiExportResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostApiExportResponse.class); - } - - /** - * Convert an instance of PostApiExportResponse 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/PostBanUserFromCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostBanUserFromCommentResponse.java deleted file mode 100644 index 0ffa57c5..00000000 --- a/client/src/main/java/com/fastcomments/model/PostBanUserFromCommentResponse.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.APIBanUserChangeLog; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.BanUserFromCommentResult; -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.23.0-SNAPSHOT") -public class PostBanUserFromCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostBanUserFromCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostBanUserFromCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostBanUserFromCommentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterBanUserFromCommentResult = gson.getDelegateAdapter(this, TypeToken.get(BanUserFromCommentResult.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PostBanUserFromCommentResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `BanUserFromCommentResult` - if (value.getActualInstance() instanceof BanUserFromCommentResult) { - JsonElement element = adapterBanUserFromCommentResult.toJsonTree((BanUserFromCommentResult)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, BanUserFromCommentResult"); - } - - @Override - public PostBanUserFromCommentResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize BanUserFromCommentResult - try { - // validate the JSON object to see if any exception is thrown - BanUserFromCommentResult.validateJsonElement(jsonElement); - actualAdapter = adapterBanUserFromCommentResult; - PostBanUserFromCommentResponse ret = new PostBanUserFromCommentResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BanUserFromCommentResult failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'BanUserFromCommentResult'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - PostBanUserFromCommentResponse ret = new PostBanUserFromCommentResponse(); - 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 PostBanUserFromCommentResponse: 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 PostBanUserFromCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostBanUserFromCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BanUserFromCommentResult", BanUserFromCommentResult.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostBanUserFromCommentResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, BanUserFromCommentResult - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof BanUserFromCommentResult) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, BanUserFromCommentResult"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, BanUserFromCommentResult - * - * @return The actual instance (APIError, BanUserFromCommentResult) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BanUserFromCommentResult`. If the actual instance is not `BanUserFromCommentResult`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BanUserFromCommentResult` - * @throws ClassCastException if the instance is not `BanUserFromCommentResult` - */ - public BanUserFromCommentResult getBanUserFromCommentResult() throws ClassCastException { - return (BanUserFromCommentResult)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 PostBanUserFromCommentResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with BanUserFromCommentResult - try { - BanUserFromCommentResult.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BanUserFromCommentResult 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 PostBanUserFromCommentResponse with anyOf schemas: APIError, BanUserFromCommentResult. 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 PostBanUserFromCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostBanUserFromCommentResponse - * @throws IOException if the JSON string is invalid with respect to PostBanUserFromCommentResponse - */ - public static PostBanUserFromCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostBanUserFromCommentResponse.class); - } - - /** - * Convert an instance of PostBanUserFromCommentResponse 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/PostBanUserUndoResponse.java b/client/src/main/java/com/fastcomments/model/PostBanUserUndoResponse.java deleted file mode 100644 index 889f2e15..00000000 --- a/client/src/main/java/com/fastcomments/model/PostBanUserUndoResponse.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.23.0-SNAPSHOT") -public class PostBanUserUndoResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostBanUserUndoResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostBanUserUndoResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostBanUserUndoResponse' 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, PostBanUserUndoResponse 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 PostBanUserUndoResponse 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; - PostBanUserUndoResponse ret = new PostBanUserUndoResponse(); - 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; - PostBanUserUndoResponse ret = new PostBanUserUndoResponse(); - 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 PostBanUserUndoResponse: 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 PostBanUserUndoResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostBanUserUndoResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostBanUserUndoResponse.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 PostBanUserUndoResponse - */ - 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 PostBanUserUndoResponse 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 PostBanUserUndoResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostBanUserUndoResponse - * @throws IOException if the JSON string is invalid with respect to PostBanUserUndoResponse - */ - public static PostBanUserUndoResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostBanUserUndoResponse.class); - } - - /** - * Convert an instance of PostBanUserUndoResponse 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/PostBulkPreBanSummaryResponse.java b/client/src/main/java/com/fastcomments/model/PostBulkPreBanSummaryResponse.java deleted file mode 100644 index f03cfbe5..00000000 --- a/client/src/main/java/com/fastcomments/model/PostBulkPreBanSummaryResponse.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.BulkPreBanSummary; -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.23.0-SNAPSHOT") -public class PostBulkPreBanSummaryResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostBulkPreBanSummaryResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostBulkPreBanSummaryResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostBulkPreBanSummaryResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterBulkPreBanSummary = gson.getDelegateAdapter(this, TypeToken.get(BulkPreBanSummary.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PostBulkPreBanSummaryResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `BulkPreBanSummary` - if (value.getActualInstance() instanceof BulkPreBanSummary) { - JsonElement element = adapterBulkPreBanSummary.toJsonTree((BulkPreBanSummary)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, BulkPreBanSummary"); - } - - @Override - public PostBulkPreBanSummaryResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize BulkPreBanSummary - try { - // validate the JSON object to see if any exception is thrown - BulkPreBanSummary.validateJsonElement(jsonElement); - actualAdapter = adapterBulkPreBanSummary; - PostBulkPreBanSummaryResponse ret = new PostBulkPreBanSummaryResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BulkPreBanSummary failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'BulkPreBanSummary'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - PostBulkPreBanSummaryResponse ret = new PostBulkPreBanSummaryResponse(); - 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 PostBulkPreBanSummaryResponse: 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 PostBulkPreBanSummaryResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostBulkPreBanSummaryResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BulkPreBanSummary", BulkPreBanSummary.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostBulkPreBanSummaryResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, BulkPreBanSummary - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof BulkPreBanSummary) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, BulkPreBanSummary"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, BulkPreBanSummary - * - * @return The actual instance (APIError, BulkPreBanSummary) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BulkPreBanSummary`. If the actual instance is not `BulkPreBanSummary`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `BulkPreBanSummary` - * @throws ClassCastException if the instance is not `BulkPreBanSummary` - */ - public BulkPreBanSummary getBulkPreBanSummary() throws ClassCastException { - return (BulkPreBanSummary)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 PostBulkPreBanSummaryResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with BulkPreBanSummary - try { - BulkPreBanSummary.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for BulkPreBanSummary 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 PostBulkPreBanSummaryResponse with anyOf schemas: APIError, BulkPreBanSummary. 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 PostBulkPreBanSummaryResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostBulkPreBanSummaryResponse - * @throws IOException if the JSON string is invalid with respect to PostBulkPreBanSummaryResponse - */ - public static PostBulkPreBanSummaryResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostBulkPreBanSummaryResponse.class); - } - - /** - * Convert an instance of PostBulkPreBanSummaryResponse 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/PostCommentsByIdsResponse.java b/client/src/main/java/com/fastcomments/model/PostCommentsByIdsResponse.java deleted file mode 100644 index 87faecc2..00000000 --- a/client/src/main/java/com/fastcomments/model/PostCommentsByIdsResponse.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.ModerationAPIChildCommentsResponse; -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 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 PostCommentsByIdsResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostCommentsByIdsResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostCommentsByIdsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostCommentsByIdsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterModerationAPIChildCommentsResponse = gson.getDelegateAdapter(this, TypeToken.get(ModerationAPIChildCommentsResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PostCommentsByIdsResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `ModerationAPIChildCommentsResponse` - if (value.getActualInstance() instanceof ModerationAPIChildCommentsResponse) { - JsonElement element = adapterModerationAPIChildCommentsResponse.toJsonTree((ModerationAPIChildCommentsResponse)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, ModerationAPIChildCommentsResponse"); - } - - @Override - public PostCommentsByIdsResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize ModerationAPIChildCommentsResponse - try { - // validate the JSON object to see if any exception is thrown - ModerationAPIChildCommentsResponse.validateJsonElement(jsonElement); - actualAdapter = adapterModerationAPIChildCommentsResponse; - PostCommentsByIdsResponse ret = new PostCommentsByIdsResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIChildCommentsResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'ModerationAPIChildCommentsResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - PostCommentsByIdsResponse ret = new PostCommentsByIdsResponse(); - 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 PostCommentsByIdsResponse: 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 PostCommentsByIdsResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostCommentsByIdsResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ModerationAPIChildCommentsResponse", ModerationAPIChildCommentsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostCommentsByIdsResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, ModerationAPIChildCommentsResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof ModerationAPIChildCommentsResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, ModerationAPIChildCommentsResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, ModerationAPIChildCommentsResponse - * - * @return The actual instance (APIError, ModerationAPIChildCommentsResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ModerationAPIChildCommentsResponse`. If the actual instance is not `ModerationAPIChildCommentsResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `ModerationAPIChildCommentsResponse` - * @throws ClassCastException if the instance is not `ModerationAPIChildCommentsResponse` - */ - public ModerationAPIChildCommentsResponse getModerationAPIChildCommentsResponse() throws ClassCastException { - return (ModerationAPIChildCommentsResponse)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 PostCommentsByIdsResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with ModerationAPIChildCommentsResponse - try { - ModerationAPIChildCommentsResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for ModerationAPIChildCommentsResponse 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 PostCommentsByIdsResponse with anyOf schemas: APIError, ModerationAPIChildCommentsResponse. 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 PostCommentsByIdsResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostCommentsByIdsResponse - * @throws IOException if the JSON string is invalid with respect to PostCommentsByIdsResponse - */ - public static PostCommentsByIdsResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostCommentsByIdsResponse.class); - } - - /** - * Convert an instance of PostCommentsByIdsResponse 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/PostFlagCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostFlagCommentResponse.java deleted file mode 100644 index ebda1899..00000000 --- a/client/src/main/java/com/fastcomments/model/PostFlagCommentResponse.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.23.0-SNAPSHOT") -public class PostFlagCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostFlagCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostFlagCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostFlagCommentResponse' 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, PostFlagCommentResponse 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 PostFlagCommentResponse 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; - PostFlagCommentResponse ret = new PostFlagCommentResponse(); - 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; - PostFlagCommentResponse ret = new PostFlagCommentResponse(); - 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 PostFlagCommentResponse: 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 PostFlagCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostFlagCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostFlagCommentResponse.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 PostFlagCommentResponse - */ - 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 PostFlagCommentResponse 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 PostFlagCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostFlagCommentResponse - * @throws IOException if the JSON string is invalid with respect to PostFlagCommentResponse - */ - public static PostFlagCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostFlagCommentResponse.class); - } - - /** - * Convert an instance of PostFlagCommentResponse 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/PostRemoveCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java index cbe9f92f..1cad6175 100644 --- a/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java +++ b/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java @@ -14,9 +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.DeleteCommentResult; import com.fastcomments.model.RemoveCommentActionResponse; import com.google.gson.TypeAdapter; @@ -76,7 +73,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); final TypeAdapter adapterDeleteCommentResult = gson.getDelegateAdapter(this, TypeToken.get(DeleteCommentResult.class)); final TypeAdapter adapterRemoveCommentActionResponse = gson.getDelegateAdapter(this, TypeToken.get(RemoveCommentActionResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); return (TypeAdapter) new TypeAdapter() { @Override @@ -98,13 +94,7 @@ public void write(JsonWriter out, PostRemoveCommentResponse value) throws IOExce 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, DeleteCommentResult, RemoveCommentActionResponse"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: DeleteCommentResult, RemoveCommentActionResponse"); } @Override @@ -141,19 +131,6 @@ public PostRemoveCommentResponse read(JsonReader in) throws IOException { 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); } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - 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); - } 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())); } @@ -176,7 +153,6 @@ public PostRemoveCommentResponse(Object o) { static { schemas.put("DeleteCommentResult", DeleteCommentResult.class); schemas.put("RemoveCommentActionResponse", RemoveCommentActionResponse.class); - schemas.put("APIError", APIError.class); } @Override @@ -187,7 +163,7 @@ public Map> getSchemas() { /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * APIError, DeleteCommentResult, RemoveCommentActionResponse + * DeleteCommentResult, RemoveCommentActionResponse * * It could be an instance of the 'anyOf' schemas. */ @@ -203,19 +179,14 @@ public void setActualInstance(Object instance) { return; } - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, DeleteCommentResult, RemoveCommentActionResponse"); + throw new RuntimeException("Invalid instance type. Must be DeleteCommentResult, RemoveCommentActionResponse"); } /** * Get the actual instance, which can be the following: - * APIError, DeleteCommentResult, RemoveCommentActionResponse + * DeleteCommentResult, RemoveCommentActionResponse * - * @return The actual instance (APIError, DeleteCommentResult, RemoveCommentActionResponse) + * @return The actual instance (DeleteCommentResult, RemoveCommentActionResponse) */ @SuppressWarnings("unchecked") @Override @@ -245,17 +216,6 @@ public RemoveCommentActionResponse getRemoveCommentActionResponse() throws Class return (RemoveCommentActionResponse)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 * @@ -281,15 +241,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for RemoveCommentActionResponse 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 PostRemoveCommentResponse with anyOf schemas: APIError, DeleteCommentResult, RemoveCommentActionResponse. 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())); } /** diff --git a/client/src/main/java/com/fastcomments/model/PostRestoreDeletedCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostRestoreDeletedCommentResponse.java deleted file mode 100644 index ca4290df..00000000 --- a/client/src/main/java/com/fastcomments/model/PostRestoreDeletedCommentResponse.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.23.0-SNAPSHOT") -public class PostRestoreDeletedCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostRestoreDeletedCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostRestoreDeletedCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostRestoreDeletedCommentResponse' 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, PostRestoreDeletedCommentResponse 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 PostRestoreDeletedCommentResponse 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; - PostRestoreDeletedCommentResponse ret = new PostRestoreDeletedCommentResponse(); - 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; - PostRestoreDeletedCommentResponse ret = new PostRestoreDeletedCommentResponse(); - 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 PostRestoreDeletedCommentResponse: 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 PostRestoreDeletedCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostRestoreDeletedCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostRestoreDeletedCommentResponse.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 PostRestoreDeletedCommentResponse - */ - 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 PostRestoreDeletedCommentResponse 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 PostRestoreDeletedCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostRestoreDeletedCommentResponse - * @throws IOException if the JSON string is invalid with respect to PostRestoreDeletedCommentResponse - */ - public static PostRestoreDeletedCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostRestoreDeletedCommentResponse.class); - } - - /** - * Convert an instance of PostRestoreDeletedCommentResponse 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/PostSetCommentApprovalStatusResponse.java b/client/src/main/java/com/fastcomments/model/PostSetCommentApprovalStatusResponse.java deleted file mode 100644 index 13e5c707..00000000 --- a/client/src/main/java/com/fastcomments/model/PostSetCommentApprovalStatusResponse.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.SetCommentApprovedResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 PostSetCommentApprovalStatusResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostSetCommentApprovalStatusResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostSetCommentApprovalStatusResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostSetCommentApprovalStatusResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterSetCommentApprovedResponse = gson.getDelegateAdapter(this, TypeToken.get(SetCommentApprovedResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PostSetCommentApprovalStatusResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `SetCommentApprovedResponse` - if (value.getActualInstance() instanceof SetCommentApprovedResponse) { - JsonElement element = adapterSetCommentApprovedResponse.toJsonTree((SetCommentApprovedResponse)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, SetCommentApprovedResponse"); - } - - @Override - public PostSetCommentApprovalStatusResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize SetCommentApprovedResponse - try { - // validate the JSON object to see if any exception is thrown - SetCommentApprovedResponse.validateJsonElement(jsonElement); - actualAdapter = adapterSetCommentApprovedResponse; - PostSetCommentApprovalStatusResponse ret = new PostSetCommentApprovalStatusResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetCommentApprovedResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'SetCommentApprovedResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - PostSetCommentApprovalStatusResponse ret = new PostSetCommentApprovalStatusResponse(); - 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 PostSetCommentApprovalStatusResponse: 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 PostSetCommentApprovalStatusResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostSetCommentApprovalStatusResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("SetCommentApprovedResponse", SetCommentApprovedResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostSetCommentApprovalStatusResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, SetCommentApprovedResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof SetCommentApprovedResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, SetCommentApprovedResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, SetCommentApprovedResponse - * - * @return The actual instance (APIError, SetCommentApprovedResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `SetCommentApprovedResponse`. If the actual instance is not `SetCommentApprovedResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SetCommentApprovedResponse` - * @throws ClassCastException if the instance is not `SetCommentApprovedResponse` - */ - public SetCommentApprovedResponse getSetCommentApprovedResponse() throws ClassCastException { - return (SetCommentApprovedResponse)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 PostSetCommentApprovalStatusResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with SetCommentApprovedResponse - try { - SetCommentApprovedResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetCommentApprovedResponse 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 PostSetCommentApprovalStatusResponse with anyOf schemas: APIError, SetCommentApprovedResponse. 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 PostSetCommentApprovalStatusResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostSetCommentApprovalStatusResponse - * @throws IOException if the JSON string is invalid with respect to PostSetCommentApprovalStatusResponse - */ - public static PostSetCommentApprovalStatusResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostSetCommentApprovalStatusResponse.class); - } - - /** - * Convert an instance of PostSetCommentApprovalStatusResponse 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/PostSetCommentReviewStatusResponse.java b/client/src/main/java/com/fastcomments/model/PostSetCommentReviewStatusResponse.java deleted file mode 100644 index f9479a6c..00000000 --- a/client/src/main/java/com/fastcomments/model/PostSetCommentReviewStatusResponse.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.23.0-SNAPSHOT") -public class PostSetCommentReviewStatusResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostSetCommentReviewStatusResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostSetCommentReviewStatusResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostSetCommentReviewStatusResponse' 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, PostSetCommentReviewStatusResponse 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 PostSetCommentReviewStatusResponse 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; - PostSetCommentReviewStatusResponse ret = new PostSetCommentReviewStatusResponse(); - 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; - PostSetCommentReviewStatusResponse ret = new PostSetCommentReviewStatusResponse(); - 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 PostSetCommentReviewStatusResponse: 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 PostSetCommentReviewStatusResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostSetCommentReviewStatusResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostSetCommentReviewStatusResponse.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 PostSetCommentReviewStatusResponse - */ - 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 PostSetCommentReviewStatusResponse 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 PostSetCommentReviewStatusResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostSetCommentReviewStatusResponse - * @throws IOException if the JSON string is invalid with respect to PostSetCommentReviewStatusResponse - */ - public static PostSetCommentReviewStatusResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostSetCommentReviewStatusResponse.class); - } - - /** - * Convert an instance of PostSetCommentReviewStatusResponse 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/PostSetCommentSpamStatusResponse.java b/client/src/main/java/com/fastcomments/model/PostSetCommentSpamStatusResponse.java deleted file mode 100644 index d1b59355..00000000 --- a/client/src/main/java/com/fastcomments/model/PostSetCommentSpamStatusResponse.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.23.0-SNAPSHOT") -public class PostSetCommentSpamStatusResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostSetCommentSpamStatusResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostSetCommentSpamStatusResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostSetCommentSpamStatusResponse' 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, PostSetCommentSpamStatusResponse 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 PostSetCommentSpamStatusResponse 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; - PostSetCommentSpamStatusResponse ret = new PostSetCommentSpamStatusResponse(); - 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; - PostSetCommentSpamStatusResponse ret = new PostSetCommentSpamStatusResponse(); - 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 PostSetCommentSpamStatusResponse: 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 PostSetCommentSpamStatusResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostSetCommentSpamStatusResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostSetCommentSpamStatusResponse.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 PostSetCommentSpamStatusResponse - */ - 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 PostSetCommentSpamStatusResponse 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 PostSetCommentSpamStatusResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostSetCommentSpamStatusResponse - * @throws IOException if the JSON string is invalid with respect to PostSetCommentSpamStatusResponse - */ - public static PostSetCommentSpamStatusResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostSetCommentSpamStatusResponse.class); - } - - /** - * Convert an instance of PostSetCommentSpamStatusResponse 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/PostSetCommentTextResponse.java b/client/src/main/java/com/fastcomments/model/PostSetCommentTextResponse.java deleted file mode 100644 index f2134279..00000000 --- a/client/src/main/java/com/fastcomments/model/PostSetCommentTextResponse.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.SetCommentTextResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 PostSetCommentTextResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostSetCommentTextResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostSetCommentTextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostSetCommentTextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterSetCommentTextResponse = gson.getDelegateAdapter(this, TypeToken.get(SetCommentTextResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PostSetCommentTextResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `SetCommentTextResponse` - if (value.getActualInstance() instanceof SetCommentTextResponse) { - JsonElement element = adapterSetCommentTextResponse.toJsonTree((SetCommentTextResponse)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, SetCommentTextResponse"); - } - - @Override - public PostSetCommentTextResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize SetCommentTextResponse - try { - // validate the JSON object to see if any exception is thrown - SetCommentTextResponse.validateJsonElement(jsonElement); - actualAdapter = adapterSetCommentTextResponse; - PostSetCommentTextResponse ret = new PostSetCommentTextResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetCommentTextResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'SetCommentTextResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - PostSetCommentTextResponse ret = new PostSetCommentTextResponse(); - 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 PostSetCommentTextResponse: 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 PostSetCommentTextResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostSetCommentTextResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("SetCommentTextResponse", SetCommentTextResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostSetCommentTextResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, SetCommentTextResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof SetCommentTextResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, SetCommentTextResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, SetCommentTextResponse - * - * @return The actual instance (APIError, SetCommentTextResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `SetCommentTextResponse`. If the actual instance is not `SetCommentTextResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SetCommentTextResponse` - * @throws ClassCastException if the instance is not `SetCommentTextResponse` - */ - public SetCommentTextResponse getSetCommentTextResponse() throws ClassCastException { - return (SetCommentTextResponse)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 PostSetCommentTextResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with SetCommentTextResponse - try { - SetCommentTextResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetCommentTextResponse 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 PostSetCommentTextResponse with anyOf schemas: APIError, SetCommentTextResponse. 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 PostSetCommentTextResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostSetCommentTextResponse - * @throws IOException if the JSON string is invalid with respect to PostSetCommentTextResponse - */ - public static PostSetCommentTextResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostSetCommentTextResponse.class); - } - - /** - * Convert an instance of PostSetCommentTextResponse 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/PostUnFlagCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostUnFlagCommentResponse.java deleted file mode 100644 index e3759173..00000000 --- a/client/src/main/java/com/fastcomments/model/PostUnFlagCommentResponse.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.23.0-SNAPSHOT") -public class PostUnFlagCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostUnFlagCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostUnFlagCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostUnFlagCommentResponse' 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, PostUnFlagCommentResponse 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 PostUnFlagCommentResponse 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; - PostUnFlagCommentResponse ret = new PostUnFlagCommentResponse(); - 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; - PostUnFlagCommentResponse ret = new PostUnFlagCommentResponse(); - 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 PostUnFlagCommentResponse: 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 PostUnFlagCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostUnFlagCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostUnFlagCommentResponse.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 PostUnFlagCommentResponse - */ - 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 PostUnFlagCommentResponse 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 PostUnFlagCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostUnFlagCommentResponse - * @throws IOException if the JSON string is invalid with respect to PostUnFlagCommentResponse - */ - public static PostUnFlagCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostUnFlagCommentResponse.class); - } - - /** - * Convert an instance of PostUnFlagCommentResponse 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/PostVoteResponse.java b/client/src/main/java/com/fastcomments/model/PostVoteResponse.java deleted file mode 100644 index 5b6bade7..00000000 --- a/client/src/main/java/com/fastcomments/model/PostVoteResponse.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.23.0-SNAPSHOT") -public class PostVoteResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostVoteResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostVoteResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostVoteResponse' 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, PostVoteResponse 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 PostVoteResponse 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; - PostVoteResponse ret = new PostVoteResponse(); - 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; - PostVoteResponse ret = new PostVoteResponse(); - 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 PostVoteResponse: 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 PostVoteResponse() { - super("anyOf", Boolean.FALSE); - } - - public PostVoteResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("VoteResponse", VoteResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PostVoteResponse.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 PostVoteResponse - */ - 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 PostVoteResponse 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 PostVoteResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PostVoteResponse - * @throws IOException if the JSON string is invalid with respect to PostVoteResponse - */ - public static PostVoteResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostVoteResponse.class); - } - - /** - * Convert an instance of PostVoteResponse 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/PutAwardBadgeResponse.java b/client/src/main/java/com/fastcomments/model/PutAwardBadgeResponse.java deleted file mode 100644 index fe9f7e3a..00000000 --- a/client/src/main/java/com/fastcomments/model/PutAwardBadgeResponse.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.AwardUserBadgeResponse; -import com.fastcomments.model.CommentUserBadgeInfo; -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.23.0-SNAPSHOT") -public class PutAwardBadgeResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PutAwardBadgeResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PutAwardBadgeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PutAwardBadgeResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAwardUserBadgeResponse = gson.getDelegateAdapter(this, TypeToken.get(AwardUserBadgeResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PutAwardBadgeResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `AwardUserBadgeResponse` - if (value.getActualInstance() instanceof AwardUserBadgeResponse) { - JsonElement element = adapterAwardUserBadgeResponse.toJsonTree((AwardUserBadgeResponse)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, AwardUserBadgeResponse"); - } - - @Override - public PutAwardBadgeResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize AwardUserBadgeResponse - try { - // validate the JSON object to see if any exception is thrown - AwardUserBadgeResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAwardUserBadgeResponse; - PutAwardBadgeResponse ret = new PutAwardBadgeResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AwardUserBadgeResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AwardUserBadgeResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - PutAwardBadgeResponse ret = new PutAwardBadgeResponse(); - 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 PutAwardBadgeResponse: 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 PutAwardBadgeResponse() { - super("anyOf", Boolean.FALSE); - } - - public PutAwardBadgeResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AwardUserBadgeResponse", AwardUserBadgeResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PutAwardBadgeResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, AwardUserBadgeResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof AwardUserBadgeResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, AwardUserBadgeResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, AwardUserBadgeResponse - * - * @return The actual instance (APIError, AwardUserBadgeResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AwardUserBadgeResponse`. If the actual instance is not `AwardUserBadgeResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AwardUserBadgeResponse` - * @throws ClassCastException if the instance is not `AwardUserBadgeResponse` - */ - public AwardUserBadgeResponse getAwardUserBadgeResponse() throws ClassCastException { - return (AwardUserBadgeResponse)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 PutAwardBadgeResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with AwardUserBadgeResponse - try { - AwardUserBadgeResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for AwardUserBadgeResponse 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 PutAwardBadgeResponse with anyOf schemas: APIError, AwardUserBadgeResponse. 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 PutAwardBadgeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PutAwardBadgeResponse - * @throws IOException if the JSON string is invalid with respect to PutAwardBadgeResponse - */ - public static PutAwardBadgeResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PutAwardBadgeResponse.class); - } - - /** - * Convert an instance of PutAwardBadgeResponse 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/PutCloseThreadResponse.java b/client/src/main/java/com/fastcomments/model/PutCloseThreadResponse.java deleted file mode 100644 index e318113f..00000000 --- a/client/src/main/java/com/fastcomments/model/PutCloseThreadResponse.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.23.0-SNAPSHOT") -public class PutCloseThreadResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PutCloseThreadResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PutCloseThreadResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PutCloseThreadResponse' 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, PutCloseThreadResponse 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 PutCloseThreadResponse 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; - PutCloseThreadResponse ret = new PutCloseThreadResponse(); - 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; - PutCloseThreadResponse ret = new PutCloseThreadResponse(); - 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 PutCloseThreadResponse: 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 PutCloseThreadResponse() { - super("anyOf", Boolean.FALSE); - } - - public PutCloseThreadResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PutCloseThreadResponse.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 PutCloseThreadResponse - */ - 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 PutCloseThreadResponse 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 PutCloseThreadResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PutCloseThreadResponse - * @throws IOException if the JSON string is invalid with respect to PutCloseThreadResponse - */ - public static PutCloseThreadResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PutCloseThreadResponse.class); - } - - /** - * Convert an instance of PutCloseThreadResponse 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/PutRemoveBadgeResponse.java b/client/src/main/java/com/fastcomments/model/PutRemoveBadgeResponse.java deleted file mode 100644 index bde63279..00000000 --- a/client/src/main/java/com/fastcomments/model/PutRemoveBadgeResponse.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.CommentUserBadgeInfo; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.RemoveUserBadgeResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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.23.0-SNAPSHOT") -public class PutRemoveBadgeResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PutRemoveBadgeResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PutRemoveBadgeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PutRemoveBadgeResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterRemoveUserBadgeResponse = gson.getDelegateAdapter(this, TypeToken.get(RemoveUserBadgeResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PutRemoveBadgeResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `RemoveUserBadgeResponse` - if (value.getActualInstance() instanceof RemoveUserBadgeResponse) { - JsonElement element = adapterRemoveUserBadgeResponse.toJsonTree((RemoveUserBadgeResponse)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, RemoveUserBadgeResponse"); - } - - @Override - public PutRemoveBadgeResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize RemoveUserBadgeResponse - try { - // validate the JSON object to see if any exception is thrown - RemoveUserBadgeResponse.validateJsonElement(jsonElement); - actualAdapter = adapterRemoveUserBadgeResponse; - PutRemoveBadgeResponse ret = new PutRemoveBadgeResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for RemoveUserBadgeResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'RemoveUserBadgeResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - PutRemoveBadgeResponse ret = new PutRemoveBadgeResponse(); - 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 PutRemoveBadgeResponse: 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 PutRemoveBadgeResponse() { - super("anyOf", Boolean.FALSE); - } - - public PutRemoveBadgeResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("RemoveUserBadgeResponse", RemoveUserBadgeResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PutRemoveBadgeResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, RemoveUserBadgeResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof RemoveUserBadgeResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, RemoveUserBadgeResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, RemoveUserBadgeResponse - * - * @return The actual instance (APIError, RemoveUserBadgeResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `RemoveUserBadgeResponse`. If the actual instance is not `RemoveUserBadgeResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `RemoveUserBadgeResponse` - * @throws ClassCastException if the instance is not `RemoveUserBadgeResponse` - */ - public RemoveUserBadgeResponse getRemoveUserBadgeResponse() throws ClassCastException { - return (RemoveUserBadgeResponse)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 PutRemoveBadgeResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with RemoveUserBadgeResponse - try { - RemoveUserBadgeResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for RemoveUserBadgeResponse 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 PutRemoveBadgeResponse with anyOf schemas: APIError, RemoveUserBadgeResponse. 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 PutRemoveBadgeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PutRemoveBadgeResponse - * @throws IOException if the JSON string is invalid with respect to PutRemoveBadgeResponse - */ - public static PutRemoveBadgeResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PutRemoveBadgeResponse.class); - } - - /** - * Convert an instance of PutRemoveBadgeResponse 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/PutReopenThreadResponse.java b/client/src/main/java/com/fastcomments/model/PutReopenThreadResponse.java deleted file mode 100644 index bf2cd277..00000000 --- a/client/src/main/java/com/fastcomments/model/PutReopenThreadResponse.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.23.0-SNAPSHOT") -public class PutReopenThreadResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PutReopenThreadResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!PutReopenThreadResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PutReopenThreadResponse' 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, PutReopenThreadResponse 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 PutReopenThreadResponse 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; - PutReopenThreadResponse ret = new PutReopenThreadResponse(); - 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; - PutReopenThreadResponse ret = new PutReopenThreadResponse(); - 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 PutReopenThreadResponse: 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 PutReopenThreadResponse() { - super("anyOf", Boolean.FALSE); - } - - public PutReopenThreadResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return PutReopenThreadResponse.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 PutReopenThreadResponse - */ - 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 PutReopenThreadResponse 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 PutReopenThreadResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of PutReopenThreadResponse - * @throws IOException if the JSON string is invalid with respect to PutReopenThreadResponse - */ - public static PutReopenThreadResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PutReopenThreadResponse.class); - } - - /** - * Convert an instance of PutReopenThreadResponse 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/ReactFeedPostPublicResponse.java b/client/src/main/java/com/fastcomments/model/ReactFeedPostPublicResponse.java deleted file mode 100644 index a6130811..00000000 --- a/client/src/main/java/com/fastcomments/model/ReactFeedPostPublicResponse.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.23.0-SNAPSHOT") -public class ReactFeedPostPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ReactFeedPostPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReactFeedPostPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReactFeedPostPublicResponse' 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, ReactFeedPostPublicResponse 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 ReactFeedPostPublicResponse 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; - ReactFeedPostPublicResponse ret = new ReactFeedPostPublicResponse(); - 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; - ReactFeedPostPublicResponse ret = new ReactFeedPostPublicResponse(); - 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 ReactFeedPostPublicResponse: 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 ReactFeedPostPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public ReactFeedPostPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ReactFeedPostResponse", ReactFeedPostResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return ReactFeedPostPublicResponse.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 ReactFeedPostPublicResponse - */ - 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 ReactFeedPostPublicResponse 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 ReactFeedPostPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of ReactFeedPostPublicResponse - * @throws IOException if the JSON string is invalid with respect to ReactFeedPostPublicResponse - */ - public static ReactFeedPostPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReactFeedPostPublicResponse.class); - } - - /** - * Convert an instance of ReactFeedPostPublicResponse 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/RenderEmailTemplateResponse1.java b/client/src/main/java/com/fastcomments/model/RenderEmailTemplateResponse1.java deleted file mode 100644 index 2d108dbd..00000000 --- a/client/src/main/java/com/fastcomments/model/RenderEmailTemplateResponse1.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.23.0-SNAPSHOT") -public class RenderEmailTemplateResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(RenderEmailTemplateResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RenderEmailTemplateResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RenderEmailTemplateResponse1' 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, RenderEmailTemplateResponse1 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 RenderEmailTemplateResponse1 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; - RenderEmailTemplateResponse1 ret = new RenderEmailTemplateResponse1(); - 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; - RenderEmailTemplateResponse1 ret = new RenderEmailTemplateResponse1(); - 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 RenderEmailTemplateResponse1: 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 RenderEmailTemplateResponse1() { - super("anyOf", Boolean.FALSE); - } - - public RenderEmailTemplateResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("RenderEmailTemplateResponse", RenderEmailTemplateResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return RenderEmailTemplateResponse1.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 RenderEmailTemplateResponse1 - */ - 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 RenderEmailTemplateResponse1 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 RenderEmailTemplateResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of RenderEmailTemplateResponse1 - * @throws IOException if the JSON string is invalid with respect to RenderEmailTemplateResponse1 - */ - public static RenderEmailTemplateResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RenderEmailTemplateResponse1.class); - } - - /** - * Convert an instance of RenderEmailTemplateResponse1 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/ReplaceTenantPackageResponse.java b/client/src/main/java/com/fastcomments/model/ReplaceTenantPackageResponse.java deleted file mode 100644 index 7a698045..00000000 --- a/client/src/main/java/com/fastcomments/model/ReplaceTenantPackageResponse.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.23.0-SNAPSHOT") -public class ReplaceTenantPackageResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ReplaceTenantPackageResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReplaceTenantPackageResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReplaceTenantPackageResponse' 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, ReplaceTenantPackageResponse 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 ReplaceTenantPackageResponse 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; - ReplaceTenantPackageResponse ret = new ReplaceTenantPackageResponse(); - 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; - ReplaceTenantPackageResponse ret = new ReplaceTenantPackageResponse(); - 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 ReplaceTenantPackageResponse: 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 ReplaceTenantPackageResponse() { - super("anyOf", Boolean.FALSE); - } - - public ReplaceTenantPackageResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return ReplaceTenantPackageResponse.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 ReplaceTenantPackageResponse - */ - 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 ReplaceTenantPackageResponse 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 ReplaceTenantPackageResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of ReplaceTenantPackageResponse - * @throws IOException if the JSON string is invalid with respect to ReplaceTenantPackageResponse - */ - public static ReplaceTenantPackageResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReplaceTenantPackageResponse.class); - } - - /** - * Convert an instance of ReplaceTenantPackageResponse 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/ReplaceTenantUserResponse.java b/client/src/main/java/com/fastcomments/model/ReplaceTenantUserResponse.java deleted file mode 100644 index 92a56a43..00000000 --- a/client/src/main/java/com/fastcomments/model/ReplaceTenantUserResponse.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.23.0-SNAPSHOT") -public class ReplaceTenantUserResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ReplaceTenantUserResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReplaceTenantUserResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReplaceTenantUserResponse' 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, ReplaceTenantUserResponse 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 ReplaceTenantUserResponse 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; - ReplaceTenantUserResponse ret = new ReplaceTenantUserResponse(); - 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; - ReplaceTenantUserResponse ret = new ReplaceTenantUserResponse(); - 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 ReplaceTenantUserResponse: 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 ReplaceTenantUserResponse() { - super("anyOf", Boolean.FALSE); - } - - public ReplaceTenantUserResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return ReplaceTenantUserResponse.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 ReplaceTenantUserResponse - */ - 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 ReplaceTenantUserResponse 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 ReplaceTenantUserResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of ReplaceTenantUserResponse - * @throws IOException if the JSON string is invalid with respect to ReplaceTenantUserResponse - */ - public static ReplaceTenantUserResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReplaceTenantUserResponse.class); - } - - /** - * Convert an instance of ReplaceTenantUserResponse 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/ResetUserNotificationCountResponse.java b/client/src/main/java/com/fastcomments/model/ResetUserNotificationCountResponse.java deleted file mode 100644 index a9bfec98..00000000 --- a/client/src/main/java/com/fastcomments/model/ResetUserNotificationCountResponse.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.23.0-SNAPSHOT") -public class ResetUserNotificationCountResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ResetUserNotificationCountResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResetUserNotificationCountResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResetUserNotificationCountResponse' 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, ResetUserNotificationCountResponse 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 ResetUserNotificationCountResponse 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; - ResetUserNotificationCountResponse ret = new ResetUserNotificationCountResponse(); - 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; - ResetUserNotificationCountResponse ret = new ResetUserNotificationCountResponse(); - 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 ResetUserNotificationCountResponse: 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 ResetUserNotificationCountResponse() { - super("anyOf", Boolean.FALSE); - } - - public ResetUserNotificationCountResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ResetUserNotificationsResponse", ResetUserNotificationsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return ResetUserNotificationCountResponse.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 ResetUserNotificationCountResponse - */ - 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 ResetUserNotificationCountResponse 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 ResetUserNotificationCountResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of ResetUserNotificationCountResponse - * @throws IOException if the JSON string is invalid with respect to ResetUserNotificationCountResponse - */ - public static ResetUserNotificationCountResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ResetUserNotificationCountResponse.class); - } - - /** - * Convert an instance of ResetUserNotificationCountResponse 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/ResetUserNotificationsResponse1.java b/client/src/main/java/com/fastcomments/model/ResetUserNotificationsResponse1.java deleted file mode 100644 index 637bfc5c..00000000 --- a/client/src/main/java/com/fastcomments/model/ResetUserNotificationsResponse1.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.23.0-SNAPSHOT") -public class ResetUserNotificationsResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ResetUserNotificationsResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResetUserNotificationsResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResetUserNotificationsResponse1' 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, ResetUserNotificationsResponse1 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 ResetUserNotificationsResponse1 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; - ResetUserNotificationsResponse1 ret = new ResetUserNotificationsResponse1(); - 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; - ResetUserNotificationsResponse1 ret = new ResetUserNotificationsResponse1(); - 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 ResetUserNotificationsResponse1: 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 ResetUserNotificationsResponse1() { - super("anyOf", Boolean.FALSE); - } - - public ResetUserNotificationsResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ResetUserNotificationsResponse", ResetUserNotificationsResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return ResetUserNotificationsResponse1.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 ResetUserNotificationsResponse1 - */ - 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 ResetUserNotificationsResponse1 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 ResetUserNotificationsResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of ResetUserNotificationsResponse1 - * @throws IOException if the JSON string is invalid with respect to ResetUserNotificationsResponse1 - */ - public static ResetUserNotificationsResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ResetUserNotificationsResponse1.class); - } - - /** - * Convert an instance of ResetUserNotificationsResponse1 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/SaveCommentResponse.java b/client/src/main/java/com/fastcomments/model/SaveCommentResponse.java deleted file mode 100644 index f39f7425..00000000 --- a/client/src/main/java/com/fastcomments/model/SaveCommentResponse.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.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.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.23.0-SNAPSHOT") -public class SaveCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(SaveCommentResponse.class.getName()); - - 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 - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.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() { - @Override - public void write(JsonWriter out, SaveCommentResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // 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; - } - // 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, APISaveCommentResponse"); - } - - @Override - public SaveCommentResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APISaveCommentResponse - try { - // validate the JSON object to see if any exception is thrown - APISaveCommentResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPISaveCommentResponse; - SaveCommentResponse ret = new SaveCommentResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - 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; - SaveCommentResponse ret = new SaveCommentResponse(); - 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 SaveCommentResponse: 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 SaveCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public SaveCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APISaveCommentResponse", APISaveCommentResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return SaveCommentResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, APISaveCommentResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APISaveCommentResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, APISaveCommentResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, APISaveCommentResponse - * - * @return The actual instance (APIError, APISaveCommentResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APISaveCommentResponse`. If the actual instance is not `APISaveCommentResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APISaveCommentResponse` - * @throws ClassCastException if the instance is not `APISaveCommentResponse` - */ - public APISaveCommentResponse getAPISaveCommentResponse() throws ClassCastException { - return (APISaveCommentResponse)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 SaveCommentResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APISaveCommentResponse - try { - APISaveCommentResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - 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 - 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 SaveCommentResponse 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 SaveCommentResponse 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 - */ - public static SaveCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SaveCommentResponse.class); - } - - /** - * Convert an instance of SaveCommentResponse 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/SearchUsersResponse1.java b/client/src/main/java/com/fastcomments/model/SearchUsersResponse1.java deleted file mode 100644 index 06570492..00000000 --- a/client/src/main/java/com/fastcomments/model/SearchUsersResponse1.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.SearchUsersResult; -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 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 SearchUsersResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(SearchUsersResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SearchUsersResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SearchUsersResponse1' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterSearchUsersResult = gson.getDelegateAdapter(this, TypeToken.get(SearchUsersResult.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SearchUsersResponse1 value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `SearchUsersResult` - if (value.getActualInstance() instanceof SearchUsersResult) { - JsonElement element = adapterSearchUsersResult.toJsonTree((SearchUsersResult)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, SearchUsersResult"); - } - - @Override - public SearchUsersResponse1 read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize SearchUsersResult - try { - // validate the JSON object to see if any exception is thrown - SearchUsersResult.validateJsonElement(jsonElement); - actualAdapter = adapterSearchUsersResult; - SearchUsersResponse1 ret = new SearchUsersResponse1(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SearchUsersResult failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'SearchUsersResult'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - SearchUsersResponse1 ret = new SearchUsersResponse1(); - 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 SearchUsersResponse1: 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 SearchUsersResponse1() { - super("anyOf", Boolean.FALSE); - } - - public SearchUsersResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("SearchUsersResult", SearchUsersResult.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return SearchUsersResponse1.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, SearchUsersResult - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof SearchUsersResult) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, SearchUsersResult"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, SearchUsersResult - * - * @return The actual instance (APIError, SearchUsersResult) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `SearchUsersResult`. If the actual instance is not `SearchUsersResult`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SearchUsersResult` - * @throws ClassCastException if the instance is not `SearchUsersResult` - */ - public SearchUsersResult getSearchUsersResult() throws ClassCastException { - return (SearchUsersResult)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 SearchUsersResponse1 - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with SearchUsersResult - try { - SearchUsersResult.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SearchUsersResult 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 SearchUsersResponse1 with anyOf schemas: APIError, SearchUsersResult. 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 SearchUsersResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of SearchUsersResponse1 - * @throws IOException if the JSON string is invalid with respect to SearchUsersResponse1 - */ - public static SearchUsersResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SearchUsersResponse1.class); - } - - /** - * Convert an instance of SearchUsersResponse1 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/SendInviteResponse.java b/client/src/main/java/com/fastcomments/model/SendInviteResponse.java deleted file mode 100644 index 588cdeba..00000000 --- a/client/src/main/java/com/fastcomments/model/SendInviteResponse.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.23.0-SNAPSHOT") -public class SendInviteResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(SendInviteResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SendInviteResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SendInviteResponse' 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, SendInviteResponse 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 SendInviteResponse 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; - SendInviteResponse ret = new SendInviteResponse(); - 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; - SendInviteResponse ret = new SendInviteResponse(); - 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 SendInviteResponse: 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 SendInviteResponse() { - super("anyOf", Boolean.FALSE); - } - - public SendInviteResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return SendInviteResponse.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 SendInviteResponse - */ - 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 SendInviteResponse 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 SendInviteResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of SendInviteResponse - * @throws IOException if the JSON string is invalid with respect to SendInviteResponse - */ - public static SendInviteResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SendInviteResponse.class); - } - - /** - * Convert an instance of SendInviteResponse 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/SendLoginLinkResponse.java b/client/src/main/java/com/fastcomments/model/SendLoginLinkResponse.java deleted file mode 100644 index e063ee5f..00000000 --- a/client/src/main/java/com/fastcomments/model/SendLoginLinkResponse.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.23.0-SNAPSHOT") -public class SendLoginLinkResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(SendLoginLinkResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SendLoginLinkResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SendLoginLinkResponse' 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, SendLoginLinkResponse 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 SendLoginLinkResponse 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; - SendLoginLinkResponse ret = new SendLoginLinkResponse(); - 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; - SendLoginLinkResponse ret = new SendLoginLinkResponse(); - 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 SendLoginLinkResponse: 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 SendLoginLinkResponse() { - super("anyOf", Boolean.FALSE); - } - - public SendLoginLinkResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return SendLoginLinkResponse.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 SendLoginLinkResponse - */ - 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 SendLoginLinkResponse 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 SendLoginLinkResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of SendLoginLinkResponse - * @throws IOException if the JSON string is invalid with respect to SendLoginLinkResponse - */ - public static SendLoginLinkResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SendLoginLinkResponse.class); - } - - /** - * Convert an instance of SendLoginLinkResponse 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/SetCommentTextResponse1.java b/client/src/main/java/com/fastcomments/model/SetCommentTextResponse1.java deleted file mode 100644 index c17c7cbb..00000000 --- a/client/src/main/java/com/fastcomments/model/SetCommentTextResponse1.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.23.0-SNAPSHOT") -public class SetCommentTextResponse1 extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(SetCommentTextResponse1.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetCommentTextResponse1.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetCommentTextResponse1' 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, SetCommentTextResponse1 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 SetCommentTextResponse1 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; - SetCommentTextResponse1 ret = new SetCommentTextResponse1(); - 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; - SetCommentTextResponse1 ret = new SetCommentTextResponse1(); - 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 SetCommentTextResponse1: 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 SetCommentTextResponse1() { - super("anyOf", Boolean.FALSE); - } - - public SetCommentTextResponse1(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("PublicAPISetCommentTextResponse", PublicAPISetCommentTextResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return SetCommentTextResponse1.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 SetCommentTextResponse1 - */ - 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 SetCommentTextResponse1 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 SetCommentTextResponse1 given an JSON string - * - * @param jsonString JSON string - * @return An instance of SetCommentTextResponse1 - * @throws IOException if the JSON string is invalid with respect to SetCommentTextResponse1 - */ - public static SetCommentTextResponse1 fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SetCommentTextResponse1.class); - } - - /** - * Convert an instance of SetCommentTextResponse1 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/SetTrustFactorResponse.java b/client/src/main/java/com/fastcomments/model/SetTrustFactorResponse.java deleted file mode 100644 index 8c8954fc..00000000 --- a/client/src/main/java/com/fastcomments/model/SetTrustFactorResponse.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.SetUserTrustFactorResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 SetTrustFactorResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(SetTrustFactorResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetTrustFactorResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetTrustFactorResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterSetUserTrustFactorResponse = gson.getDelegateAdapter(this, TypeToken.get(SetUserTrustFactorResponse.class)); - final TypeAdapter adapterAPIError = gson.getDelegateAdapter(this, TypeToken.get(APIError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetTrustFactorResponse value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `SetUserTrustFactorResponse` - if (value.getActualInstance() instanceof SetUserTrustFactorResponse) { - JsonElement element = adapterSetUserTrustFactorResponse.toJsonTree((SetUserTrustFactorResponse)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, SetUserTrustFactorResponse"); - } - - @Override - public SetTrustFactorResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize SetUserTrustFactorResponse - try { - // validate the JSON object to see if any exception is thrown - SetUserTrustFactorResponse.validateJsonElement(jsonElement); - actualAdapter = adapterSetUserTrustFactorResponse; - SetTrustFactorResponse ret = new SetTrustFactorResponse(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetUserTrustFactorResponse failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'SetUserTrustFactorResponse'", e); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - SetTrustFactorResponse ret = new SetTrustFactorResponse(); - 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 SetTrustFactorResponse: 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 SetTrustFactorResponse() { - super("anyOf", Boolean.FALSE); - } - - public SetTrustFactorResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("SetUserTrustFactorResponse", SetUserTrustFactorResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return SetTrustFactorResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIError, SetUserTrustFactorResponse - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof SetUserTrustFactorResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIError, SetUserTrustFactorResponse"); - } - - /** - * Get the actual instance, which can be the following: - * APIError, SetUserTrustFactorResponse - * - * @return The actual instance (APIError, SetUserTrustFactorResponse) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `SetUserTrustFactorResponse`. If the actual instance is not `SetUserTrustFactorResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `SetUserTrustFactorResponse` - * @throws ClassCastException if the instance is not `SetUserTrustFactorResponse` - */ - public SetUserTrustFactorResponse getSetUserTrustFactorResponse() throws ClassCastException { - return (SetUserTrustFactorResponse)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 SetTrustFactorResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with SetUserTrustFactorResponse - try { - SetUserTrustFactorResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for SetUserTrustFactorResponse 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 SetTrustFactorResponse with anyOf schemas: APIError, SetUserTrustFactorResponse. 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 SetTrustFactorResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of SetTrustFactorResponse - * @throws IOException if the JSON string is invalid with respect to SetTrustFactorResponse - */ - public static SetTrustFactorResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SetTrustFactorResponse.class); - } - - /** - * Convert an instance of SetTrustFactorResponse 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/UnBlockCommentPublicResponse.java b/client/src/main/java/com/fastcomments/model/UnBlockCommentPublicResponse.java deleted file mode 100644 index c9116877..00000000 --- a/client/src/main/java/com/fastcomments/model/UnBlockCommentPublicResponse.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.23.0-SNAPSHOT") -public class UnBlockCommentPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UnBlockCommentPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UnBlockCommentPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UnBlockCommentPublicResponse' 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, UnBlockCommentPublicResponse 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 UnBlockCommentPublicResponse 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; - UnBlockCommentPublicResponse ret = new UnBlockCommentPublicResponse(); - 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; - UnBlockCommentPublicResponse ret = new UnBlockCommentPublicResponse(); - 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 UnBlockCommentPublicResponse: 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 UnBlockCommentPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public UnBlockCommentPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("UnblockSuccess", UnblockSuccess.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UnBlockCommentPublicResponse.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 UnBlockCommentPublicResponse - */ - 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 UnBlockCommentPublicResponse 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 UnBlockCommentPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UnBlockCommentPublicResponse - * @throws IOException if the JSON string is invalid with respect to UnBlockCommentPublicResponse - */ - public static UnBlockCommentPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UnBlockCommentPublicResponse.class); - } - - /** - * Convert an instance of UnBlockCommentPublicResponse 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/UnBlockUserFromCommentResponse.java b/client/src/main/java/com/fastcomments/model/UnBlockUserFromCommentResponse.java deleted file mode 100644 index 8d89033c..00000000 --- a/client/src/main/java/com/fastcomments/model/UnBlockUserFromCommentResponse.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.23.0-SNAPSHOT") -public class UnBlockUserFromCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UnBlockUserFromCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UnBlockUserFromCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UnBlockUserFromCommentResponse' 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, UnBlockUserFromCommentResponse 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 UnBlockUserFromCommentResponse 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; - UnBlockUserFromCommentResponse ret = new UnBlockUserFromCommentResponse(); - 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; - UnBlockUserFromCommentResponse ret = new UnBlockUserFromCommentResponse(); - 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 UnBlockUserFromCommentResponse: 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 UnBlockUserFromCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public UnBlockUserFromCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("UnblockSuccess", UnblockSuccess.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UnBlockUserFromCommentResponse.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 UnBlockUserFromCommentResponse - */ - 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 UnBlockUserFromCommentResponse 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 UnBlockUserFromCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UnBlockUserFromCommentResponse - * @throws IOException if the JSON string is invalid with respect to UnBlockUserFromCommentResponse - */ - public static UnBlockUserFromCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UnBlockUserFromCommentResponse.class); - } - - /** - * Convert an instance of UnBlockUserFromCommentResponse 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/UnFlagCommentResponse.java b/client/src/main/java/com/fastcomments/model/UnFlagCommentResponse.java deleted file mode 100644 index 18f0cb7c..00000000 --- a/client/src/main/java/com/fastcomments/model/UnFlagCommentResponse.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.23.0-SNAPSHOT") -public class UnFlagCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UnFlagCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UnFlagCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UnFlagCommentResponse' 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, UnFlagCommentResponse 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 UnFlagCommentResponse 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; - UnFlagCommentResponse ret = new UnFlagCommentResponse(); - 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; - UnFlagCommentResponse ret = new UnFlagCommentResponse(); - 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 UnFlagCommentResponse: 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 UnFlagCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public UnFlagCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("FlagCommentResponse", FlagCommentResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UnFlagCommentResponse.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 UnFlagCommentResponse - */ - 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 UnFlagCommentResponse 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 UnFlagCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UnFlagCommentResponse - * @throws IOException if the JSON string is invalid with respect to UnFlagCommentResponse - */ - public static UnFlagCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UnFlagCommentResponse.class); - } - - /** - * Convert an instance of UnFlagCommentResponse 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/UnLockCommentResponse.java b/client/src/main/java/com/fastcomments/model/UnLockCommentResponse.java deleted file mode 100644 index 6252be4c..00000000 --- a/client/src/main/java/com/fastcomments/model/UnLockCommentResponse.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.23.0-SNAPSHOT") -public class UnLockCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UnLockCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UnLockCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UnLockCommentResponse' 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, UnLockCommentResponse 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 UnLockCommentResponse 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; - UnLockCommentResponse ret = new UnLockCommentResponse(); - 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; - UnLockCommentResponse ret = new UnLockCommentResponse(); - 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 UnLockCommentResponse: 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 UnLockCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public UnLockCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIError", APIError.class); - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - } - - @Override - public Map> getSchemas() { - return UnLockCommentResponse.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 UnLockCommentResponse - */ - 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 UnLockCommentResponse 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 UnLockCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UnLockCommentResponse - * @throws IOException if the JSON string is invalid with respect to UnLockCommentResponse - */ - public static UnLockCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UnLockCommentResponse.class); - } - - /** - * Convert an instance of UnLockCommentResponse 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/UnPinCommentResponse.java b/client/src/main/java/com/fastcomments/model/UnPinCommentResponse.java deleted file mode 100644 index 29cbc849..00000000 --- a/client/src/main/java/com/fastcomments/model/UnPinCommentResponse.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.23.0-SNAPSHOT") -public class UnPinCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UnPinCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UnPinCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UnPinCommentResponse' 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, UnPinCommentResponse 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 UnPinCommentResponse 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; - UnPinCommentResponse ret = new UnPinCommentResponse(); - 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; - UnPinCommentResponse ret = new UnPinCommentResponse(); - 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 UnPinCommentResponse: 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 UnPinCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public UnPinCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ChangeCommentPinStatusResponse", ChangeCommentPinStatusResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UnPinCommentResponse.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 UnPinCommentResponse - */ - 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 UnPinCommentResponse 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 UnPinCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UnPinCommentResponse - * @throws IOException if the JSON string is invalid with respect to UnPinCommentResponse - */ - public static UnPinCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UnPinCommentResponse.class); - } - - /** - * Convert an instance of UnPinCommentResponse 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/UpdateCommentResponse.java b/client/src/main/java/com/fastcomments/model/UpdateCommentResponse.java deleted file mode 100644 index f597dac1..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateCommentResponse.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.23.0-SNAPSHOT") -public class UpdateCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateCommentResponse' 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, UpdateCommentResponse 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 UpdateCommentResponse 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; - UpdateCommentResponse ret = new UpdateCommentResponse(); - 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; - UpdateCommentResponse ret = new UpdateCommentResponse(); - 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 UpdateCommentResponse: 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 UpdateCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateCommentResponse.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 UpdateCommentResponse - */ - 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 UpdateCommentResponse 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 UpdateCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateCommentResponse - * @throws IOException if the JSON string is invalid with respect to UpdateCommentResponse - */ - public static UpdateCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateCommentResponse.class); - } - - /** - * Convert an instance of UpdateCommentResponse 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/UpdateEmailTemplateResponse.java b/client/src/main/java/com/fastcomments/model/UpdateEmailTemplateResponse.java deleted file mode 100644 index e506fe12..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateEmailTemplateResponse.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.23.0-SNAPSHOT") -public class UpdateEmailTemplateResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateEmailTemplateResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateEmailTemplateResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateEmailTemplateResponse' 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, UpdateEmailTemplateResponse 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 UpdateEmailTemplateResponse 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; - UpdateEmailTemplateResponse ret = new UpdateEmailTemplateResponse(); - 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; - UpdateEmailTemplateResponse ret = new UpdateEmailTemplateResponse(); - 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 UpdateEmailTemplateResponse: 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 UpdateEmailTemplateResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateEmailTemplateResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateEmailTemplateResponse.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 UpdateEmailTemplateResponse - */ - 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 UpdateEmailTemplateResponse 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 UpdateEmailTemplateResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateEmailTemplateResponse - * @throws IOException if the JSON string is invalid with respect to UpdateEmailTemplateResponse - */ - public static UpdateEmailTemplateResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateEmailTemplateResponse.class); - } - - /** - * Convert an instance of UpdateEmailTemplateResponse 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/UpdateFeedPostPublicResponse.java b/client/src/main/java/com/fastcomments/model/UpdateFeedPostPublicResponse.java deleted file mode 100644 index 21a3321e..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateFeedPostPublicResponse.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.23.0-SNAPSHOT") -public class UpdateFeedPostPublicResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateFeedPostPublicResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateFeedPostPublicResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateFeedPostPublicResponse' 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, UpdateFeedPostPublicResponse 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 UpdateFeedPostPublicResponse 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; - UpdateFeedPostPublicResponse ret = new UpdateFeedPostPublicResponse(); - 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; - UpdateFeedPostPublicResponse ret = new UpdateFeedPostPublicResponse(); - 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 UpdateFeedPostPublicResponse: 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 UpdateFeedPostPublicResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateFeedPostPublicResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("CreateFeedPostResponse", CreateFeedPostResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateFeedPostPublicResponse.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 UpdateFeedPostPublicResponse - */ - 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 UpdateFeedPostPublicResponse 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 UpdateFeedPostPublicResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateFeedPostPublicResponse - * @throws IOException if the JSON string is invalid with respect to UpdateFeedPostPublicResponse - */ - public static UpdateFeedPostPublicResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateFeedPostPublicResponse.class); - } - - /** - * Convert an instance of UpdateFeedPostPublicResponse 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/UpdateFeedPostResponse.java b/client/src/main/java/com/fastcomments/model/UpdateFeedPostResponse.java deleted file mode 100644 index 8e8a6195..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateFeedPostResponse.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.23.0-SNAPSHOT") -public class UpdateFeedPostResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateFeedPostResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateFeedPostResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateFeedPostResponse' 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, UpdateFeedPostResponse 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 UpdateFeedPostResponse 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; - UpdateFeedPostResponse ret = new UpdateFeedPostResponse(); - 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; - UpdateFeedPostResponse ret = new UpdateFeedPostResponse(); - 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 UpdateFeedPostResponse: 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 UpdateFeedPostResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateFeedPostResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateFeedPostResponse.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 UpdateFeedPostResponse - */ - 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 UpdateFeedPostResponse 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 UpdateFeedPostResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateFeedPostResponse - * @throws IOException if the JSON string is invalid with respect to UpdateFeedPostResponse - */ - public static UpdateFeedPostResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateFeedPostResponse.class); - } - - /** - * Convert an instance of UpdateFeedPostResponse 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/UpdateModeratorResponse.java b/client/src/main/java/com/fastcomments/model/UpdateModeratorResponse.java deleted file mode 100644 index 67f48b15..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateModeratorResponse.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.23.0-SNAPSHOT") -public class UpdateModeratorResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateModeratorResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateModeratorResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateModeratorResponse' 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, UpdateModeratorResponse 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 UpdateModeratorResponse 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; - UpdateModeratorResponse ret = new UpdateModeratorResponse(); - 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; - UpdateModeratorResponse ret = new UpdateModeratorResponse(); - 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 UpdateModeratorResponse: 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 UpdateModeratorResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateModeratorResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateModeratorResponse.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 UpdateModeratorResponse - */ - 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 UpdateModeratorResponse 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 UpdateModeratorResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateModeratorResponse - * @throws IOException if the JSON string is invalid with respect to UpdateModeratorResponse - */ - public static UpdateModeratorResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateModeratorResponse.class); - } - - /** - * Convert an instance of UpdateModeratorResponse 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/UpdateNotificationResponse.java b/client/src/main/java/com/fastcomments/model/UpdateNotificationResponse.java deleted file mode 100644 index 3eccfb70..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateNotificationResponse.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.23.0-SNAPSHOT") -public class UpdateNotificationResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateNotificationResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateNotificationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateNotificationResponse' 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, UpdateNotificationResponse 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 UpdateNotificationResponse 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; - UpdateNotificationResponse ret = new UpdateNotificationResponse(); - 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; - UpdateNotificationResponse ret = new UpdateNotificationResponse(); - 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 UpdateNotificationResponse: 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 UpdateNotificationResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateNotificationResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateNotificationResponse.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 UpdateNotificationResponse - */ - 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 UpdateNotificationResponse 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 UpdateNotificationResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateNotificationResponse - * @throws IOException if the JSON string is invalid with respect to UpdateNotificationResponse - */ - public static UpdateNotificationResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateNotificationResponse.class); - } - - /** - * Convert an instance of UpdateNotificationResponse 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/UpdateQuestionConfigResponse.java b/client/src/main/java/com/fastcomments/model/UpdateQuestionConfigResponse.java deleted file mode 100644 index 9ef8fbf2..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateQuestionConfigResponse.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.23.0-SNAPSHOT") -public class UpdateQuestionConfigResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateQuestionConfigResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateQuestionConfigResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateQuestionConfigResponse' 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, UpdateQuestionConfigResponse 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 UpdateQuestionConfigResponse 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; - UpdateQuestionConfigResponse ret = new UpdateQuestionConfigResponse(); - 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; - UpdateQuestionConfigResponse ret = new UpdateQuestionConfigResponse(); - 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 UpdateQuestionConfigResponse: 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 UpdateQuestionConfigResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateQuestionConfigResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateQuestionConfigResponse.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 UpdateQuestionConfigResponse - */ - 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 UpdateQuestionConfigResponse 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 UpdateQuestionConfigResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateQuestionConfigResponse - * @throws IOException if the JSON string is invalid with respect to UpdateQuestionConfigResponse - */ - public static UpdateQuestionConfigResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateQuestionConfigResponse.class); - } - - /** - * Convert an instance of UpdateQuestionConfigResponse 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/UpdateQuestionResultResponse.java b/client/src/main/java/com/fastcomments/model/UpdateQuestionResultResponse.java deleted file mode 100644 index 0672768a..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateQuestionResultResponse.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.23.0-SNAPSHOT") -public class UpdateQuestionResultResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateQuestionResultResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateQuestionResultResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateQuestionResultResponse' 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, UpdateQuestionResultResponse 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 UpdateQuestionResultResponse 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; - UpdateQuestionResultResponse ret = new UpdateQuestionResultResponse(); - 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; - UpdateQuestionResultResponse ret = new UpdateQuestionResultResponse(); - 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 UpdateQuestionResultResponse: 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 UpdateQuestionResultResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateQuestionResultResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateQuestionResultResponse.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 UpdateQuestionResultResponse - */ - 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 UpdateQuestionResultResponse 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 UpdateQuestionResultResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateQuestionResultResponse - * @throws IOException if the JSON string is invalid with respect to UpdateQuestionResultResponse - */ - public static UpdateQuestionResultResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateQuestionResultResponse.class); - } - - /** - * Convert an instance of UpdateQuestionResultResponse 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/UpdateTenantPackageResponse.java b/client/src/main/java/com/fastcomments/model/UpdateTenantPackageResponse.java deleted file mode 100644 index 116147f9..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateTenantPackageResponse.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.23.0-SNAPSHOT") -public class UpdateTenantPackageResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateTenantPackageResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateTenantPackageResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateTenantPackageResponse' 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, UpdateTenantPackageResponse 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 UpdateTenantPackageResponse 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; - UpdateTenantPackageResponse ret = new UpdateTenantPackageResponse(); - 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; - UpdateTenantPackageResponse ret = new UpdateTenantPackageResponse(); - 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 UpdateTenantPackageResponse: 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 UpdateTenantPackageResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateTenantPackageResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateTenantPackageResponse.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 UpdateTenantPackageResponse - */ - 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 UpdateTenantPackageResponse 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 UpdateTenantPackageResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateTenantPackageResponse - * @throws IOException if the JSON string is invalid with respect to UpdateTenantPackageResponse - */ - public static UpdateTenantPackageResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateTenantPackageResponse.class); - } - - /** - * Convert an instance of UpdateTenantPackageResponse 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/UpdateTenantResponse.java b/client/src/main/java/com/fastcomments/model/UpdateTenantResponse.java deleted file mode 100644 index f6a7e24a..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateTenantResponse.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.23.0-SNAPSHOT") -public class UpdateTenantResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateTenantResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateTenantResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateTenantResponse' 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, UpdateTenantResponse 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 UpdateTenantResponse 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; - UpdateTenantResponse ret = new UpdateTenantResponse(); - 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; - UpdateTenantResponse ret = new UpdateTenantResponse(); - 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 UpdateTenantResponse: 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 UpdateTenantResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateTenantResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateTenantResponse.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 UpdateTenantResponse - */ - 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 UpdateTenantResponse 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 UpdateTenantResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateTenantResponse - * @throws IOException if the JSON string is invalid with respect to UpdateTenantResponse - */ - public static UpdateTenantResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateTenantResponse.class); - } - - /** - * Convert an instance of UpdateTenantResponse 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/UpdateTenantUserResponse.java b/client/src/main/java/com/fastcomments/model/UpdateTenantUserResponse.java deleted file mode 100644 index 52fe10c4..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateTenantUserResponse.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.23.0-SNAPSHOT") -public class UpdateTenantUserResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateTenantUserResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateTenantUserResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateTenantUserResponse' 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, UpdateTenantUserResponse 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 UpdateTenantUserResponse 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; - UpdateTenantUserResponse ret = new UpdateTenantUserResponse(); - 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; - UpdateTenantUserResponse ret = new UpdateTenantUserResponse(); - 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 UpdateTenantUserResponse: 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 UpdateTenantUserResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateTenantUserResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptyResponse", APIEmptyResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateTenantUserResponse.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 UpdateTenantUserResponse - */ - 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 UpdateTenantUserResponse 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 UpdateTenantUserResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateTenantUserResponse - * @throws IOException if the JSON string is invalid with respect to UpdateTenantUserResponse - */ - public static UpdateTenantUserResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateTenantUserResponse.class); - } - - /** - * Convert an instance of UpdateTenantUserResponse 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/UpdateUserBadgeResponse.java b/client/src/main/java/com/fastcomments/model/UpdateUserBadgeResponse.java deleted file mode 100644 index 83eb59cd..00000000 --- a/client/src/main/java/com/fastcomments/model/UpdateUserBadgeResponse.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.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 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 UpdateUserBadgeResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(UpdateUserBadgeResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateUserBadgeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateUserBadgeResponse' 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)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateUserBadgeResponse 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()); - 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: APIEmptySuccessResponse, APIError"); - } - - @Override - public UpdateUserBadgeResponse read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize APIEmptySuccessResponse - try { - // validate the JSON object to see if any exception is thrown - APIEmptySuccessResponse.validateJsonElement(jsonElement); - actualAdapter = adapterAPIEmptySuccessResponse; - UpdateUserBadgeResponse ret = new UpdateUserBadgeResponse(); - 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); - } - // deserialize APIError - try { - // validate the JSON object to see if any exception is thrown - APIError.validateJsonElement(jsonElement); - actualAdapter = adapterAPIError; - UpdateUserBadgeResponse ret = new UpdateUserBadgeResponse(); - 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 UpdateUserBadgeResponse: 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 UpdateUserBadgeResponse() { - super("anyOf", Boolean.FALSE); - } - - public UpdateUserBadgeResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("APIEmptySuccessResponse", APIEmptySuccessResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return UpdateUserBadgeResponse.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check - * the instance parameter is valid against the anyOf child schemas: - * APIEmptySuccessResponse, APIError - * - * It could be an instance of the 'anyOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof APIEmptySuccessResponse) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof APIError) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be APIEmptySuccessResponse, APIError"); - } - - /** - * Get the actual instance, which can be the following: - * APIEmptySuccessResponse, APIError - * - * @return The actual instance (APIEmptySuccessResponse, APIError) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `APIEmptySuccessResponse`. If the actual instance is not `APIEmptySuccessResponse`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `APIEmptySuccessResponse` - * @throws ClassCastException if the instance is not `APIEmptySuccessResponse` - */ - public APIEmptySuccessResponse getAPIEmptySuccessResponse() throws ClassCastException { - return (APIEmptySuccessResponse)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 UpdateUserBadgeResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate anyOf schemas one by one - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with APIEmptySuccessResponse - try { - APIEmptySuccessResponse.validateJsonElement(jsonElement); - return; - } catch (Exception e) { - errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for APIEmptySuccessResponse 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 UpdateUserBadgeResponse 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())); - } - - /** - * Create an instance of UpdateUserBadgeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateUserBadgeResponse - * @throws IOException if the JSON string is invalid with respect to UpdateUserBadgeResponse - */ - public static UpdateUserBadgeResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateUserBadgeResponse.class); - } - - /** - * Convert an instance of UpdateUserBadgeResponse 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/UpdateUserNotificationCommentSubscriptionStatusResponse.java b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponse.java index eba9c6de..2508823a 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponse.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; @@ -76,7 +74,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { 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() { @Override @@ -98,13 +95,7 @@ public void write(JsonWriter out, UpdateUserNotificationCommentSubscriptionStatu 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 @@ -141,19 +132,6 @@ public UpdateUserNotificationCommentSubscriptionStatusResponse read(JsonReader i 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; - UpdateUserNotificationCommentSubscriptionStatusResponse ret = new UpdateUserNotificationCommentSubscriptionStatusResponse(); - 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 UpdateUserNotificationCommentSubscriptionStatusResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } @@ -176,7 +154,6 @@ public UpdateUserNotificationCommentSubscriptionStatusResponse(Object o) { static { schemas.put("UserNotificationWriteResponse", UserNotificationWriteResponse.class); schemas.put("IgnoredResponse", IgnoredResponse.class); - schemas.put("APIError", APIError.class); } @Override @@ -187,7 +164,7 @@ public Map> getSchemas() { /** * 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,17 +217,6 @@ 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 * @@ -281,15 +242,7 @@ 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 UpdateUserNotificationCommentSubscriptionStatusResponse 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())); } /** diff --git a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.java b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.java index 7014e5c3..5de6ac1f 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.java +++ b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponse.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; @@ -76,7 +74,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { 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() { @Override @@ -98,13 +95,7 @@ public void write(JsonWriter out, UpdateUserNotificationPageSubscriptionStatusRe 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 @@ -141,19 +132,6 @@ public UpdateUserNotificationPageSubscriptionStatusResponse read(JsonReader in) 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; - 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); - } 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())); } @@ -176,7 +154,6 @@ public UpdateUserNotificationPageSubscriptionStatusResponse(Object o) { static { schemas.put("UserNotificationWriteResponse", UserNotificationWriteResponse.class); schemas.put("IgnoredResponse", IgnoredResponse.class); - schemas.put("APIError", APIError.class); } @Override @@ -187,7 +164,7 @@ public Map> getSchemas() { /** * 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,17 +217,6 @@ 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 * @@ -281,15 +242,7 @@ 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 UpdateUserNotificationPageSubscriptionStatusResponse 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 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())); } /** diff --git a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.java b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.java index f9ad8d45..b65cc32d 100644 --- a/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.java +++ b/client/src/main/java/com/fastcomments/model/UpdateUserNotificationStatusResponse.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; @@ -76,7 +74,6 @@ public TypeAdapter create(Gson gson, TypeToken type) { 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() { @Override @@ -98,13 +95,7 @@ public void write(JsonWriter out, UpdateUserNotificationStatusResponse value) th 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 @@ -141,19 +132,6 @@ public UpdateUserNotificationStatusResponse read(JsonReader in) throws IOExcepti 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; - 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); - } 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())); } @@ -176,7 +154,6 @@ public UpdateUserNotificationStatusResponse(Object o) { static { schemas.put("UserNotificationWriteResponse", UserNotificationWriteResponse.class); schemas.put("IgnoredResponse", IgnoredResponse.class); - schemas.put("APIError", APIError.class); } @Override @@ -187,7 +164,7 @@ public Map> getSchemas() { /** * 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,17 +217,6 @@ 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 * @@ -281,15 +242,7 @@ 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 UpdateUserNotificationStatusResponse 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 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())); } /** diff --git a/client/src/main/java/com/fastcomments/model/VoteCommentResponse.java b/client/src/main/java/com/fastcomments/model/VoteCommentResponse.java deleted file mode 100644 index 952b74fc..00000000 --- a/client/src/main/java/com/fastcomments/model/VoteCommentResponse.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.23.0-SNAPSHOT") -public class VoteCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(VoteCommentResponse.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!VoteCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'VoteCommentResponse' 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, VoteCommentResponse 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 VoteCommentResponse 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; - VoteCommentResponse ret = new VoteCommentResponse(); - 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; - VoteCommentResponse ret = new VoteCommentResponse(); - 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 VoteCommentResponse: 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 VoteCommentResponse() { - super("anyOf", Boolean.FALSE); - } - - public VoteCommentResponse(Object o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("VoteResponse", VoteResponse.class); - schemas.put("APIError", APIError.class); - } - - @Override - public Map> getSchemas() { - return VoteCommentResponse.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 VoteCommentResponse - */ - 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 VoteCommentResponse 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 VoteCommentResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of VoteCommentResponse - * @throws IOException if the JSON string is invalid with respect to VoteCommentResponse - */ - public static VoteCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, VoteCommentResponse.class); - } - - /** - * Convert an instance of VoteCommentResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/client/src/test/java/com/fastcomments/api/DefaultApiTest.java b/client/src/test/java/com/fastcomments/api/DefaultApiTest.java index 2f1f4d15..1c90c411 100644 --- a/client/src/test/java/com/fastcomments/api/DefaultApiTest.java +++ b/client/src/test/java/com/fastcomments/api/DefaultApiTest.java @@ -14,167 +14,141 @@ package com.fastcomments.api; import com.fastcomments.invoker.ApiException; +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.AddDomainConfigResponse; -import com.fastcomments.model.AddHashTagResponse; -import com.fastcomments.model.AddHashTagsBulkResponse; import com.fastcomments.model.AddPageAPIResponse; import com.fastcomments.model.AddSSOUserAPIResponse; -import com.fastcomments.model.AggregateQuestionResultsResponse1; +import com.fastcomments.model.AggregateQuestionResultsResponse; import com.fastcomments.model.AggregateResponse; import com.fastcomments.model.AggregateTimeBucket; import com.fastcomments.model.AggregationRequest; import com.fastcomments.model.BlockFromCommentParams; -import com.fastcomments.model.BlockUserFromCommentResponse; +import com.fastcomments.model.BlockSuccess; import com.fastcomments.model.BulkAggregateQuestionResultsRequest; -import com.fastcomments.model.BulkAggregateQuestionResultsResponse1; +import com.fastcomments.model.BulkAggregateQuestionResultsResponse; import com.fastcomments.model.BulkCreateHashTagsBody; +import com.fastcomments.model.BulkCreateHashTagsResponse; import com.fastcomments.model.ChangeTicketStateBody; -import com.fastcomments.model.ChangeTicketStateResponse1; -import com.fastcomments.model.CombineCommentsWithQuestionResultsResponse; +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.CreateEmailTemplateBody; -import com.fastcomments.model.CreateEmailTemplateResponse1; +import com.fastcomments.model.CreateEmailTemplateResponse; import com.fastcomments.model.CreateFeedPostParams; -import com.fastcomments.model.CreateFeedPostResponse1; +import com.fastcomments.model.CreateFeedPostsResponse; import com.fastcomments.model.CreateHashTagBody; +import com.fastcomments.model.CreateHashTagResponse; import com.fastcomments.model.CreateModeratorBody; -import com.fastcomments.model.CreateModeratorResponse1; +import com.fastcomments.model.CreateModeratorResponse; import com.fastcomments.model.CreateQuestionConfigBody; -import com.fastcomments.model.CreateQuestionConfigResponse1; +import com.fastcomments.model.CreateQuestionConfigResponse; import com.fastcomments.model.CreateQuestionResultBody; -import com.fastcomments.model.CreateQuestionResultResponse1; +import com.fastcomments.model.CreateQuestionResultResponse; import com.fastcomments.model.CreateSubscriptionAPIResponse; import com.fastcomments.model.CreateTenantBody; import com.fastcomments.model.CreateTenantPackageBody; -import com.fastcomments.model.CreateTenantPackageResponse1; -import com.fastcomments.model.CreateTenantResponse1; +import com.fastcomments.model.CreateTenantPackageResponse; +import com.fastcomments.model.CreateTenantResponse; import com.fastcomments.model.CreateTenantUserBody; -import com.fastcomments.model.CreateTenantUserResponse1; +import com.fastcomments.model.CreateTenantUserResponse; import com.fastcomments.model.CreateTicketBody; -import com.fastcomments.model.CreateTicketResponse1; +import com.fastcomments.model.CreateTicketResponse; import com.fastcomments.model.CreateUserBadgeParams; -import com.fastcomments.model.CreateUserBadgeResponse; -import com.fastcomments.model.CreateVoteResponse; -import com.fastcomments.model.DeleteCommentResponse; +import com.fastcomments.model.DeleteCommentResult; import com.fastcomments.model.DeleteDomainConfigResponse; -import com.fastcomments.model.DeleteEmailTemplateRenderErrorResponse; -import com.fastcomments.model.DeleteEmailTemplateResponse; import com.fastcomments.model.DeleteHashTagRequestBody; -import com.fastcomments.model.DeleteHashTagResponse; -import com.fastcomments.model.DeleteModeratorResponse; -import com.fastcomments.model.DeleteNotificationCountResponse; import com.fastcomments.model.DeletePageAPIResponse; -import com.fastcomments.model.DeletePendingWebhookEventResponse; -import com.fastcomments.model.DeleteQuestionConfigResponse; -import com.fastcomments.model.DeleteQuestionResultResponse; import com.fastcomments.model.DeleteSSOUserAPIResponse; import com.fastcomments.model.DeleteSubscriptionAPIResponse; -import com.fastcomments.model.DeleteTenantPackageResponse; -import com.fastcomments.model.DeleteTenantResponse; -import com.fastcomments.model.DeleteTenantUserResponse; -import com.fastcomments.model.DeleteUserBadgeResponse; -import com.fastcomments.model.DeleteVoteResponse; import com.fastcomments.model.FeedPost; -import com.fastcomments.model.FlagCommentResponse1; -import com.fastcomments.model.GetAuditLogsResponse1; -import com.fastcomments.model.GetCachedNotificationCountResponse1; -import com.fastcomments.model.GetCommentResponse; -import com.fastcomments.model.GetCommentsResponse; +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.GetEmailTemplateDefinitionsResponse1; -import com.fastcomments.model.GetEmailTemplateRenderErrorsResponse1; -import com.fastcomments.model.GetEmailTemplateResponse1; -import com.fastcomments.model.GetEmailTemplatesResponse1; -import com.fastcomments.model.GetFeedPostsResponse1; -import com.fastcomments.model.GetHashTagsResponse1; -import com.fastcomments.model.GetModeratorResponse1; -import com.fastcomments.model.GetModeratorsResponse1; -import com.fastcomments.model.GetNotificationCountResponse1; -import com.fastcomments.model.GetNotificationsResponse1; +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.GetPendingWebhookEventCountResponse1; -import com.fastcomments.model.GetPendingWebhookEventsResponse1; -import com.fastcomments.model.GetQuestionConfigResponse1; -import com.fastcomments.model.GetQuestionConfigsResponse1; -import com.fastcomments.model.GetQuestionResultResponse1; -import com.fastcomments.model.GetQuestionResultsResponse1; +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.GetSSOUsersResponse; import com.fastcomments.model.GetSubscriptionsAPIResponse; -import com.fastcomments.model.GetTenantDailyUsagesResponse1; -import com.fastcomments.model.GetTenantPackageResponse1; -import com.fastcomments.model.GetTenantPackagesResponse1; -import com.fastcomments.model.GetTenantResponse1; -import com.fastcomments.model.GetTenantUserResponse1; -import com.fastcomments.model.GetTenantUsersResponse1; -import com.fastcomments.model.GetTenantsResponse1; -import com.fastcomments.model.GetTicketResponse1; -import com.fastcomments.model.GetTicketsResponse1; -import com.fastcomments.model.GetUserBadgeProgressByIdResponse; -import com.fastcomments.model.GetUserBadgeProgressByUserIdResponse; -import com.fastcomments.model.GetUserBadgeProgressListResponse; -import com.fastcomments.model.GetUserBadgeResponse; -import com.fastcomments.model.GetUserBadgesResponse; -import com.fastcomments.model.GetUserResponse1; -import com.fastcomments.model.GetVotesForUserResponse1; -import com.fastcomments.model.GetVotesResponse1; +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.PatchDomainConfigResponse; -import com.fastcomments.model.PatchHashTagResponse; import com.fastcomments.model.PatchPageAPIResponse; import com.fastcomments.model.PatchSSOUserAPIResponse; import com.fastcomments.model.PutDomainConfigResponse; import com.fastcomments.model.PutSSOUserAPIResponse; import com.fastcomments.model.RenderEmailTemplateBody; -import com.fastcomments.model.RenderEmailTemplateResponse1; +import com.fastcomments.model.RenderEmailTemplateResponse; import com.fastcomments.model.ReplaceTenantPackageBody; -import com.fastcomments.model.ReplaceTenantPackageResponse; import com.fastcomments.model.ReplaceTenantUserBody; -import com.fastcomments.model.ReplaceTenantUserResponse; import com.fastcomments.model.SORTDIR; -import com.fastcomments.model.SaveCommentResponse; import com.fastcomments.model.SaveCommentsBulkResponse; -import com.fastcomments.model.SendInviteResponse; -import com.fastcomments.model.SendLoginLinkResponse; import com.fastcomments.model.SortDirections; import com.fastcomments.model.UnBlockFromCommentParams; -import com.fastcomments.model.UnBlockUserFromCommentResponse; -import com.fastcomments.model.UnFlagCommentResponse; +import com.fastcomments.model.UnblockSuccess; import com.fastcomments.model.UpdatableCommentParams; import com.fastcomments.model.UpdateAPIPageData; import com.fastcomments.model.UpdateAPISSOUserData; import com.fastcomments.model.UpdateAPIUserSubscriptionData; -import com.fastcomments.model.UpdateCommentResponse; import com.fastcomments.model.UpdateDomainConfigParams; import com.fastcomments.model.UpdateEmailTemplateBody; -import com.fastcomments.model.UpdateEmailTemplateResponse; -import com.fastcomments.model.UpdateFeedPostResponse; import com.fastcomments.model.UpdateHashTagBody; +import com.fastcomments.model.UpdateHashTagResponse; import com.fastcomments.model.UpdateModeratorBody; -import com.fastcomments.model.UpdateModeratorResponse; import com.fastcomments.model.UpdateNotificationBody; -import com.fastcomments.model.UpdateNotificationResponse; import com.fastcomments.model.UpdateQuestionConfigBody; -import com.fastcomments.model.UpdateQuestionConfigResponse; import com.fastcomments.model.UpdateQuestionResultBody; -import com.fastcomments.model.UpdateQuestionResultResponse; import com.fastcomments.model.UpdateSubscriptionAPIResponse; import com.fastcomments.model.UpdateTenantBody; import com.fastcomments.model.UpdateTenantPackageBody; -import com.fastcomments.model.UpdateTenantPackageResponse; -import com.fastcomments.model.UpdateTenantResponse; import com.fastcomments.model.UpdateTenantUserBody; -import com.fastcomments.model.UpdateTenantUserResponse; import com.fastcomments.model.UpdateUserBadgeParams; -import com.fastcomments.model.UpdateUserBadgeResponse; +import com.fastcomments.model.VoteDeleteResponse; +import com.fastcomments.model.VoteResponse; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -210,7 +184,7 @@ public void addDomainConfigTest() throws ApiException { public void addHashTagTest() throws ApiException { String tenantId = null; CreateHashTagBody createHashTagBody = null; - AddHashTagResponse response = api.addHashTag() + CreateHashTagResponse response = api.addHashTag() .tenantId(tenantId) .createHashTagBody(createHashTagBody) .execute(); @@ -224,7 +198,7 @@ public void addHashTagTest() throws ApiException { public void addHashTagsBulkTest() throws ApiException { String tenantId = null; BulkCreateHashTagsBody bulkCreateHashTagsBody = null; - AddHashTagsBulkResponse response = api.addHashTagsBulk() + BulkCreateHashTagsResponse response = api.addHashTagsBulk() .tenantId(tenantId) .bulkCreateHashTagsBody(bulkCreateHashTagsBody) .execute(); @@ -285,7 +259,7 @@ public void aggregateQuestionResultsTest() throws ApiException { AggregateTimeBucket timeBucket = null; OffsetDateTime startDate = null; Boolean forceRecalculate = null; - AggregateQuestionResultsResponse1 response = api.aggregateQuestionResults(tenantId) + AggregateQuestionResultsResponse response = api.aggregateQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -306,7 +280,7 @@ public void blockUserFromCommentTest() throws ApiException { BlockFromCommentParams blockFromCommentParams = null; String userId = null; String anonUserId = null; - BlockUserFromCommentResponse response = api.blockUserFromComment(tenantId, id, blockFromCommentParams) + BlockSuccess response = api.blockUserFromComment(tenantId, id, blockFromCommentParams) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -321,7 +295,7 @@ public void bulkAggregateQuestionResultsTest() throws ApiException { String tenantId = null; BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest = null; Boolean forceRecalculate = null; - BulkAggregateQuestionResultsResponse1 response = api.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest) + BulkAggregateQuestionResultsResponse response = api.bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest) .forceRecalculate(forceRecalculate) .execute(); // TODO: test validations @@ -336,7 +310,7 @@ public void changeTicketStateTest() throws ApiException { String userId = null; String id = null; ChangeTicketStateBody changeTicketStateBody = null; - ChangeTicketStateResponse1 response = api.changeTicketState(tenantId, userId, id, changeTicketStateBody) + ChangeTicketStateResponse response = api.changeTicketState(tenantId, userId, id, changeTicketStateBody) .execute(); // TODO: test validations } @@ -355,7 +329,7 @@ public void combineCommentsWithQuestionResultsTest() throws ApiException { Double minValue = null; Double maxValue = null; Double limit = null; - CombineCommentsWithQuestionResultsResponse response = api.combineCommentsWithQuestionResults(tenantId) + CombineQuestionResultsWithCommentsResponse response = api.combineCommentsWithQuestionResults(tenantId) .questionId(questionId) .questionIds(questionIds) .urlId(urlId) @@ -375,7 +349,7 @@ public void combineCommentsWithQuestionResultsTest() throws ApiException { public void createEmailTemplateTest() throws ApiException { String tenantId = null; CreateEmailTemplateBody createEmailTemplateBody = null; - CreateEmailTemplateResponse1 response = api.createEmailTemplate(tenantId, createEmailTemplateBody) + CreateEmailTemplateResponse response = api.createEmailTemplate(tenantId, createEmailTemplateBody) .execute(); // TODO: test validations } @@ -391,7 +365,7 @@ public void createFeedPostTest() throws ApiException { Boolean isLive = null; Boolean doSpamCheck = null; Boolean skipDupCheck = null; - CreateFeedPostResponse1 response = api.createFeedPost(tenantId, createFeedPostParams) + CreateFeedPostsResponse response = api.createFeedPost(tenantId, createFeedPostParams) .broadcastId(broadcastId) .isLive(isLive) .doSpamCheck(doSpamCheck) @@ -407,7 +381,7 @@ public void createFeedPostTest() throws ApiException { public void createModeratorTest() throws ApiException { String tenantId = null; CreateModeratorBody createModeratorBody = null; - CreateModeratorResponse1 response = api.createModerator(tenantId, createModeratorBody) + CreateModeratorResponse response = api.createModerator(tenantId, createModeratorBody) .execute(); // TODO: test validations } @@ -419,7 +393,7 @@ public void createModeratorTest() throws ApiException { public void createQuestionConfigTest() throws ApiException { String tenantId = null; CreateQuestionConfigBody createQuestionConfigBody = null; - CreateQuestionConfigResponse1 response = api.createQuestionConfig(tenantId, createQuestionConfigBody) + CreateQuestionConfigResponse response = api.createQuestionConfig(tenantId, createQuestionConfigBody) .execute(); // TODO: test validations } @@ -431,7 +405,7 @@ public void createQuestionConfigTest() throws ApiException { public void createQuestionResultTest() throws ApiException { String tenantId = null; CreateQuestionResultBody createQuestionResultBody = null; - CreateQuestionResultResponse1 response = api.createQuestionResult(tenantId, createQuestionResultBody) + CreateQuestionResultResponse response = api.createQuestionResult(tenantId, createQuestionResultBody) .execute(); // TODO: test validations } @@ -455,7 +429,7 @@ public void createSubscriptionTest() throws ApiException { public void createTenantTest() throws ApiException { String tenantId = null; CreateTenantBody createTenantBody = null; - CreateTenantResponse1 response = api.createTenant(tenantId, createTenantBody) + CreateTenantResponse response = api.createTenant(tenantId, createTenantBody) .execute(); // TODO: test validations } @@ -467,7 +441,7 @@ public void createTenantTest() throws ApiException { public void createTenantPackageTest() throws ApiException { String tenantId = null; CreateTenantPackageBody createTenantPackageBody = null; - CreateTenantPackageResponse1 response = api.createTenantPackage(tenantId, createTenantPackageBody) + CreateTenantPackageResponse response = api.createTenantPackage(tenantId, createTenantPackageBody) .execute(); // TODO: test validations } @@ -479,7 +453,7 @@ public void createTenantPackageTest() throws ApiException { public void createTenantUserTest() throws ApiException { String tenantId = null; CreateTenantUserBody createTenantUserBody = null; - CreateTenantUserResponse1 response = api.createTenantUser(tenantId, createTenantUserBody) + CreateTenantUserResponse response = api.createTenantUser(tenantId, createTenantUserBody) .execute(); // TODO: test validations } @@ -492,7 +466,7 @@ public void createTicketTest() throws ApiException { String tenantId = null; String userId = null; CreateTicketBody createTicketBody = null; - CreateTicketResponse1 response = api.createTicket(tenantId, userId, createTicketBody) + CreateTicketResponse response = api.createTicket(tenantId, userId, createTicketBody) .execute(); // TODO: test validations } @@ -504,7 +478,7 @@ public void createTicketTest() throws ApiException { public void createUserBadgeTest() throws ApiException { String tenantId = null; CreateUserBadgeParams createUserBadgeParams = null; - CreateUserBadgeResponse response = api.createUserBadge(tenantId, createUserBadgeParams) + APICreateUserBadgeResponse response = api.createUserBadge(tenantId, createUserBadgeParams) .execute(); // TODO: test validations } @@ -519,7 +493,7 @@ public void createVoteTest() throws ApiException { String direction = null; String userId = null; String anonUserId = null; - CreateVoteResponse response = api.createVote(tenantId, commentId, direction) + VoteResponse response = api.createVote(tenantId, commentId, direction) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -535,7 +509,7 @@ public void deleteCommentTest() throws ApiException { String id = null; String contextUserId = null; Boolean isLive = null; - DeleteCommentResponse response = api.deleteComment(tenantId, id) + DeleteCommentResult response = api.deleteComment(tenantId, id) .contextUserId(contextUserId) .isLive(isLive) .execute(); @@ -561,7 +535,7 @@ public void deleteDomainConfigTest() throws ApiException { public void deleteEmailTemplateTest() throws ApiException { String tenantId = null; String id = null; - DeleteEmailTemplateResponse response = api.deleteEmailTemplate(tenantId, id) + APIEmptyResponse response = api.deleteEmailTemplate(tenantId, id) .execute(); // TODO: test validations } @@ -574,7 +548,7 @@ public void deleteEmailTemplateRenderErrorTest() throws ApiException { String tenantId = null; String id = null; String errorId = null; - DeleteEmailTemplateRenderErrorResponse response = api.deleteEmailTemplateRenderError(tenantId, id, errorId) + APIEmptyResponse response = api.deleteEmailTemplateRenderError(tenantId, id, errorId) .execute(); // TODO: test validations } @@ -587,7 +561,7 @@ public void deleteHashTagTest() throws ApiException { String tag = null; String tenantId = null; DeleteHashTagRequestBody deleteHashTagRequestBody = null; - DeleteHashTagResponse response = api.deleteHashTag(tag) + APIEmptyResponse response = api.deleteHashTag(tag) .tenantId(tenantId) .deleteHashTagRequestBody(deleteHashTagRequestBody) .execute(); @@ -602,7 +576,7 @@ public void deleteModeratorTest() throws ApiException { String tenantId = null; String id = null; String sendEmail = null; - DeleteModeratorResponse response = api.deleteModerator(tenantId, id) + APIEmptyResponse response = api.deleteModerator(tenantId, id) .sendEmail(sendEmail) .execute(); // TODO: test validations @@ -615,7 +589,7 @@ public void deleteModeratorTest() throws ApiException { public void deleteNotificationCountTest() throws ApiException { String tenantId = null; String id = null; - DeleteNotificationCountResponse response = api.deleteNotificationCount(tenantId, id) + APIEmptyResponse response = api.deleteNotificationCount(tenantId, id) .execute(); // TODO: test validations } @@ -639,7 +613,7 @@ public void deletePageTest() throws ApiException { public void deletePendingWebhookEventTest() throws ApiException { String tenantId = null; String id = null; - DeletePendingWebhookEventResponse response = api.deletePendingWebhookEvent(tenantId, id) + APIEmptyResponse response = api.deletePendingWebhookEvent(tenantId, id) .execute(); // TODO: test validations } @@ -651,7 +625,7 @@ public void deletePendingWebhookEventTest() throws ApiException { public void deleteQuestionConfigTest() throws ApiException { String tenantId = null; String id = null; - DeleteQuestionConfigResponse response = api.deleteQuestionConfig(tenantId, id) + APIEmptyResponse response = api.deleteQuestionConfig(tenantId, id) .execute(); // TODO: test validations } @@ -663,7 +637,7 @@ public void deleteQuestionConfigTest() throws ApiException { public void deleteQuestionResultTest() throws ApiException { String tenantId = null; String id = null; - DeleteQuestionResultResponse response = api.deleteQuestionResult(tenantId, id) + APIEmptyResponse response = api.deleteQuestionResult(tenantId, id) .execute(); // TODO: test validations } @@ -706,7 +680,7 @@ public void deleteTenantTest() throws ApiException { String tenantId = null; String id = null; String sure = null; - DeleteTenantResponse response = api.deleteTenant(tenantId, id) + APIEmptyResponse response = api.deleteTenant(tenantId, id) .sure(sure) .execute(); // TODO: test validations @@ -719,7 +693,7 @@ public void deleteTenantTest() throws ApiException { public void deleteTenantPackageTest() throws ApiException { String tenantId = null; String id = null; - DeleteTenantPackageResponse response = api.deleteTenantPackage(tenantId, id) + APIEmptyResponse response = api.deleteTenantPackage(tenantId, id) .execute(); // TODO: test validations } @@ -733,7 +707,7 @@ public void deleteTenantUserTest() throws ApiException { String id = null; String deleteComments = null; String commentDeleteMode = null; - DeleteTenantUserResponse response = api.deleteTenantUser(tenantId, id) + APIEmptyResponse response = api.deleteTenantUser(tenantId, id) .deleteComments(deleteComments) .commentDeleteMode(commentDeleteMode) .execute(); @@ -747,7 +721,7 @@ public void deleteTenantUserTest() throws ApiException { public void deleteUserBadgeTest() throws ApiException { String tenantId = null; String id = null; - DeleteUserBadgeResponse response = api.deleteUserBadge(tenantId, id) + APIEmptySuccessResponse response = api.deleteUserBadge(tenantId, id) .execute(); // TODO: test validations } @@ -760,7 +734,7 @@ public void deleteVoteTest() throws ApiException { String tenantId = null; String id = null; String editKey = null; - DeleteVoteResponse response = api.deleteVote(tenantId, id) + VoteDeleteResponse response = api.deleteVote(tenantId, id) .editKey(editKey) .execute(); // TODO: test validations @@ -775,7 +749,7 @@ public void flagCommentTest() throws ApiException { String id = null; String userId = null; String anonUserId = null; - FlagCommentResponse1 response = api.flagComment(tenantId, id) + FlagCommentResponse response = api.flagComment(tenantId, id) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -793,7 +767,7 @@ public void getAuditLogsTest() throws ApiException { SORTDIR order = null; Double after = null; Double before = null; - GetAuditLogsResponse1 response = api.getAuditLogs(tenantId) + GetAuditLogsResponse response = api.getAuditLogs(tenantId) .limit(limit) .skip(skip) .order(order) @@ -810,7 +784,7 @@ public void getAuditLogsTest() throws ApiException { public void getCachedNotificationCountTest() throws ApiException { String tenantId = null; String id = null; - GetCachedNotificationCountResponse1 response = api.getCachedNotificationCount(tenantId, id) + GetCachedNotificationCountResponse response = api.getCachedNotificationCount(tenantId, id) .execute(); // TODO: test validations } @@ -822,7 +796,7 @@ public void getCachedNotificationCountTest() throws ApiException { public void getCommentTest() throws ApiException { String tenantId = null; String id = null; - GetCommentResponse response = api.getComment(tenantId, id) + APIGetCommentResponse response = api.getComment(tenantId, id) .execute(); // TODO: test validations } @@ -849,7 +823,7 @@ public void getCommentsTest() throws ApiException { SortDirections direction = null; Long fromDate = null; Long toDate = null; - GetCommentsResponse response = api.getComments(tenantId) + APIGetCommentsResponse response = api.getComments(tenantId) .page(page) .limit(limit) .skip(skip) @@ -900,7 +874,7 @@ public void getDomainConfigsTest() throws ApiException { public void getEmailTemplateTest() throws ApiException { String tenantId = null; String id = null; - GetEmailTemplateResponse1 response = api.getEmailTemplate(tenantId, id) + GetEmailTemplateResponse response = api.getEmailTemplate(tenantId, id) .execute(); // TODO: test validations } @@ -911,7 +885,7 @@ public void getEmailTemplateTest() throws ApiException { @Test public void getEmailTemplateDefinitionsTest() throws ApiException { String tenantId = null; - GetEmailTemplateDefinitionsResponse1 response = api.getEmailTemplateDefinitions(tenantId) + GetEmailTemplateDefinitionsResponse response = api.getEmailTemplateDefinitions(tenantId) .execute(); // TODO: test validations } @@ -924,7 +898,7 @@ public void getEmailTemplateRenderErrorsTest() throws ApiException { String tenantId = null; String id = null; Double skip = null; - GetEmailTemplateRenderErrorsResponse1 response = api.getEmailTemplateRenderErrors(tenantId, id) + GetEmailTemplateRenderErrorsResponse response = api.getEmailTemplateRenderErrors(tenantId, id) .skip(skip) .execute(); // TODO: test validations @@ -937,7 +911,7 @@ public void getEmailTemplateRenderErrorsTest() throws ApiException { public void getEmailTemplatesTest() throws ApiException { String tenantId = null; Double skip = null; - GetEmailTemplatesResponse1 response = api.getEmailTemplates(tenantId) + GetEmailTemplatesResponse response = api.getEmailTemplates(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -954,7 +928,7 @@ public void getFeedPostsTest() throws ApiException { String afterId = null; Integer limit = null; List tags = null; - GetFeedPostsResponse1 response = api.getFeedPosts(tenantId) + GetFeedPostsResponse response = api.getFeedPosts(tenantId) .afterId(afterId) .limit(limit) .tags(tags) @@ -969,7 +943,7 @@ public void getFeedPostsTest() throws ApiException { public void getHashTagsTest() throws ApiException { String tenantId = null; Double page = null; - GetHashTagsResponse1 response = api.getHashTags(tenantId) + GetHashTagsResponse response = api.getHashTags(tenantId) .page(page) .execute(); // TODO: test validations @@ -982,7 +956,7 @@ public void getHashTagsTest() throws ApiException { public void getModeratorTest() throws ApiException { String tenantId = null; String id = null; - GetModeratorResponse1 response = api.getModerator(tenantId, id) + GetModeratorResponse response = api.getModerator(tenantId, id) .execute(); // TODO: test validations } @@ -994,7 +968,7 @@ public void getModeratorTest() throws ApiException { public void getModeratorsTest() throws ApiException { String tenantId = null; Double skip = null; - GetModeratorsResponse1 response = api.getModerators(tenantId) + GetModeratorsResponse response = api.getModerators(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -1011,7 +985,7 @@ public void getNotificationCountTest() throws ApiException { String fromCommentId = null; Boolean viewed = null; String type = null; - GetNotificationCountResponse1 response = api.getNotificationCount(tenantId) + GetNotificationCountResponse response = api.getNotificationCount(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -1033,7 +1007,7 @@ public void getNotificationsTest() throws ApiException { Boolean viewed = null; String type = null; Double skip = null; - GetNotificationsResponse1 response = api.getNotifications(tenantId) + GetNotificationsResponse response = api.getNotifications(tenantId) .userId(userId) .urlId(urlId) .fromCommentId(fromCommentId) @@ -1079,7 +1053,7 @@ public void getPendingWebhookEventCountTest() throws ApiException { String type = null; String domain = null; Double attemptCountGT = null; - GetPendingWebhookEventCountResponse1 response = api.getPendingWebhookEventCount(tenantId) + GetPendingWebhookEventCountResponse response = api.getPendingWebhookEventCount(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -1103,7 +1077,7 @@ public void getPendingWebhookEventsTest() throws ApiException { String domain = null; Double attemptCountGT = null; Double skip = null; - GetPendingWebhookEventsResponse1 response = api.getPendingWebhookEvents(tenantId) + GetPendingWebhookEventsResponse response = api.getPendingWebhookEvents(tenantId) .commentId(commentId) .externalId(externalId) .eventType(eventType) @@ -1122,7 +1096,7 @@ public void getPendingWebhookEventsTest() throws ApiException { public void getQuestionConfigTest() throws ApiException { String tenantId = null; String id = null; - GetQuestionConfigResponse1 response = api.getQuestionConfig(tenantId, id) + GetQuestionConfigResponse response = api.getQuestionConfig(tenantId, id) .execute(); // TODO: test validations } @@ -1134,7 +1108,7 @@ public void getQuestionConfigTest() throws ApiException { public void getQuestionConfigsTest() throws ApiException { String tenantId = null; Double skip = null; - GetQuestionConfigsResponse1 response = api.getQuestionConfigs(tenantId) + GetQuestionConfigsResponse response = api.getQuestionConfigs(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -1147,7 +1121,7 @@ public void getQuestionConfigsTest() throws ApiException { public void getQuestionResultTest() throws ApiException { String tenantId = null; String id = null; - GetQuestionResultResponse1 response = api.getQuestionResult(tenantId, id) + GetQuestionResultResponse response = api.getQuestionResult(tenantId, id) .execute(); // TODO: test validations } @@ -1164,7 +1138,7 @@ public void getQuestionResultsTest() throws ApiException { String questionId = null; String questionIds = null; Double skip = null; - GetQuestionResultsResponse1 response = api.getQuestionResults(tenantId) + GetQuestionResultsResponse response = api.getQuestionResults(tenantId) .urlId(urlId) .userId(userId) .startDate(startDate) @@ -1232,7 +1206,7 @@ public void getSubscriptionsTest() throws ApiException { public void getTenantTest() throws ApiException { String tenantId = null; String id = null; - GetTenantResponse1 response = api.getTenant(tenantId, id) + GetTenantResponse response = api.getTenant(tenantId, id) .execute(); // TODO: test validations } @@ -1247,7 +1221,7 @@ public void getTenantDailyUsagesTest() throws ApiException { Double monthNumber = null; Double dayNumber = null; Double skip = null; - GetTenantDailyUsagesResponse1 response = api.getTenantDailyUsages(tenantId) + GetTenantDailyUsagesResponse response = api.getTenantDailyUsages(tenantId) .yearNumber(yearNumber) .monthNumber(monthNumber) .dayNumber(dayNumber) @@ -1263,7 +1237,7 @@ public void getTenantDailyUsagesTest() throws ApiException { public void getTenantPackageTest() throws ApiException { String tenantId = null; String id = null; - GetTenantPackageResponse1 response = api.getTenantPackage(tenantId, id) + GetTenantPackageResponse response = api.getTenantPackage(tenantId, id) .execute(); // TODO: test validations } @@ -1275,7 +1249,7 @@ public void getTenantPackageTest() throws ApiException { public void getTenantPackagesTest() throws ApiException { String tenantId = null; Double skip = null; - GetTenantPackagesResponse1 response = api.getTenantPackages(tenantId) + GetTenantPackagesResponse response = api.getTenantPackages(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -1288,7 +1262,7 @@ public void getTenantPackagesTest() throws ApiException { public void getTenantUserTest() throws ApiException { String tenantId = null; String id = null; - GetTenantUserResponse1 response = api.getTenantUser(tenantId, id) + GetTenantUserResponse response = api.getTenantUser(tenantId, id) .execute(); // TODO: test validations } @@ -1300,7 +1274,7 @@ public void getTenantUserTest() throws ApiException { public void getTenantUsersTest() throws ApiException { String tenantId = null; Double skip = null; - GetTenantUsersResponse1 response = api.getTenantUsers(tenantId) + GetTenantUsersResponse response = api.getTenantUsers(tenantId) .skip(skip) .execute(); // TODO: test validations @@ -1314,7 +1288,7 @@ public void getTenantsTest() throws ApiException { String tenantId = null; String meta = null; Double skip = null; - GetTenantsResponse1 response = api.getTenants(tenantId) + GetTenantsResponse response = api.getTenants(tenantId) .meta(meta) .skip(skip) .execute(); @@ -1329,7 +1303,7 @@ public void getTicketTest() throws ApiException { String tenantId = null; String id = null; String userId = null; - GetTicketResponse1 response = api.getTicket(tenantId, id) + GetTicketResponse response = api.getTicket(tenantId, id) .userId(userId) .execute(); // TODO: test validations @@ -1345,7 +1319,7 @@ public void getTicketsTest() throws ApiException { Double state = null; Double skip = null; Double limit = null; - GetTicketsResponse1 response = api.getTickets(tenantId) + GetTicketsResponse response = api.getTickets(tenantId) .userId(userId) .state(state) .skip(skip) @@ -1361,7 +1335,7 @@ public void getTicketsTest() throws ApiException { public void getUserTest() throws ApiException { String tenantId = null; String id = null; - GetUserResponse1 response = api.getUser(tenantId, id) + GetUserResponse response = api.getUser(tenantId, id) .execute(); // TODO: test validations } @@ -1373,7 +1347,7 @@ public void getUserTest() throws ApiException { public void getUserBadgeTest() throws ApiException { String tenantId = null; String id = null; - GetUserBadgeResponse response = api.getUserBadge(tenantId, id) + APIGetUserBadgeResponse response = api.getUserBadge(tenantId, id) .execute(); // TODO: test validations } @@ -1385,7 +1359,7 @@ public void getUserBadgeTest() throws ApiException { public void getUserBadgeProgressByIdTest() throws ApiException { String tenantId = null; String id = null; - GetUserBadgeProgressByIdResponse response = api.getUserBadgeProgressById(tenantId, id) + APIGetUserBadgeProgressResponse response = api.getUserBadgeProgressById(tenantId, id) .execute(); // TODO: test validations } @@ -1397,7 +1371,7 @@ public void getUserBadgeProgressByIdTest() throws ApiException { public void getUserBadgeProgressByUserIdTest() throws ApiException { String tenantId = null; String userId = null; - GetUserBadgeProgressByUserIdResponse response = api.getUserBadgeProgressByUserId(tenantId, userId) + APIGetUserBadgeProgressResponse response = api.getUserBadgeProgressByUserId(tenantId, userId) .execute(); // TODO: test validations } @@ -1411,7 +1385,7 @@ public void getUserBadgeProgressListTest() throws ApiException { String userId = null; Double limit = null; Double skip = null; - GetUserBadgeProgressListResponse response = api.getUserBadgeProgressList(tenantId) + APIGetUserBadgeProgressListResponse response = api.getUserBadgeProgressList(tenantId) .userId(userId) .limit(limit) .skip(skip) @@ -1431,7 +1405,7 @@ public void getUserBadgesTest() throws ApiException { Boolean displayedOnComments = null; Double limit = null; Double skip = null; - GetUserBadgesResponse response = api.getUserBadges(tenantId) + APIGetUserBadgesResponse response = api.getUserBadges(tenantId) .userId(userId) .badgeId(badgeId) .type(type) @@ -1449,7 +1423,7 @@ public void getUserBadgesTest() throws ApiException { public void getVotesTest() throws ApiException { String tenantId = null; String urlId = null; - GetVotesResponse1 response = api.getVotes(tenantId, urlId) + GetVotesResponse response = api.getVotes(tenantId, urlId) .execute(); // TODO: test validations } @@ -1463,7 +1437,7 @@ public void getVotesForUserTest() throws ApiException { String urlId = null; String userId = null; String anonUserId = null; - GetVotesForUserResponse1 response = api.getVotesForUser(tenantId, urlId) + GetVotesForUserResponse response = api.getVotesForUser(tenantId, urlId) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -1491,7 +1465,7 @@ public void patchHashTagTest() throws ApiException { String tag = null; String tenantId = null; UpdateHashTagBody updateHashTagBody = null; - PatchHashTagResponse response = api.patchHashTag(tag) + UpdateHashTagResponse response = api.patchHashTag(tag) .tenantId(tenantId) .updateHashTagBody(updateHashTagBody) .execute(); @@ -1562,7 +1536,7 @@ public void renderEmailTemplateTest() throws ApiException { String tenantId = null; RenderEmailTemplateBody renderEmailTemplateBody = null; String locale = null; - RenderEmailTemplateResponse1 response = api.renderEmailTemplate(tenantId, renderEmailTemplateBody) + RenderEmailTemplateResponse response = api.renderEmailTemplate(tenantId, renderEmailTemplateBody) .locale(locale) .execute(); // TODO: test validations @@ -1576,7 +1550,7 @@ public void replaceTenantPackageTest() throws ApiException { String tenantId = null; String id = null; ReplaceTenantPackageBody replaceTenantPackageBody = null; - ReplaceTenantPackageResponse response = api.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) + APIEmptyResponse response = api.replaceTenantPackage(tenantId, id, replaceTenantPackageBody) .execute(); // TODO: test validations } @@ -1590,7 +1564,7 @@ public void replaceTenantUserTest() throws ApiException { String id = null; ReplaceTenantUserBody replaceTenantUserBody = null; String updateComments = null; - ReplaceTenantUserResponse response = api.replaceTenantUser(tenantId, id, replaceTenantUserBody) + APIEmptyResponse response = api.replaceTenantUser(tenantId, id, replaceTenantUserBody) .updateComments(updateComments) .execute(); // TODO: test validations @@ -1607,7 +1581,7 @@ public void saveCommentTest() throws ApiException { Boolean doSpamCheck = null; Boolean sendEmails = null; Boolean populateNotifications = null; - SaveCommentResponse response = api.saveComment(tenantId, createCommentParams) + APISaveCommentResponse response = api.saveComment(tenantId, createCommentParams) .isLive(isLive) .doSpamCheck(doSpamCheck) .sendEmails(sendEmails) @@ -1644,7 +1618,7 @@ public void sendInviteTest() throws ApiException { String tenantId = null; String id = null; String fromName = null; - SendInviteResponse response = api.sendInvite(tenantId, id, fromName) + APIEmptyResponse response = api.sendInvite(tenantId, id, fromName) .execute(); // TODO: test validations } @@ -1657,7 +1631,7 @@ public void sendLoginLinkTest() throws ApiException { String tenantId = null; String id = null; String redirectURL = null; - SendLoginLinkResponse response = api.sendLoginLink(tenantId, id) + APIEmptyResponse response = api.sendLoginLink(tenantId, id) .redirectURL(redirectURL) .execute(); // TODO: test validations @@ -1673,7 +1647,7 @@ public void unBlockUserFromCommentTest() throws ApiException { UnBlockFromCommentParams unBlockFromCommentParams = null; String userId = null; String anonUserId = null; - UnBlockUserFromCommentResponse response = api.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) + UnblockSuccess response = api.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -1689,7 +1663,7 @@ public void unFlagCommentTest() throws ApiException { String id = null; String userId = null; String anonUserId = null; - UnFlagCommentResponse response = api.unFlagComment(tenantId, id) + FlagCommentResponse response = api.unFlagComment(tenantId, id) .userId(userId) .anonUserId(anonUserId) .execute(); @@ -1707,7 +1681,7 @@ public void updateCommentTest() throws ApiException { String contextUserId = null; Boolean doSpamCheck = null; Boolean isLive = null; - UpdateCommentResponse response = api.updateComment(tenantId, id, updatableCommentParams) + APIEmptyResponse response = api.updateComment(tenantId, id, updatableCommentParams) .contextUserId(contextUserId) .doSpamCheck(doSpamCheck) .isLive(isLive) @@ -1723,7 +1697,7 @@ public void updateEmailTemplateTest() throws ApiException { String tenantId = null; String id = null; UpdateEmailTemplateBody updateEmailTemplateBody = null; - UpdateEmailTemplateResponse response = api.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) + APIEmptyResponse response = api.updateEmailTemplate(tenantId, id, updateEmailTemplateBody) .execute(); // TODO: test validations } @@ -1736,7 +1710,7 @@ public void updateFeedPostTest() throws ApiException { String tenantId = null; String id = null; FeedPost feedPost = null; - UpdateFeedPostResponse response = api.updateFeedPost(tenantId, id, feedPost) + APIEmptyResponse response = api.updateFeedPost(tenantId, id, feedPost) .execute(); // TODO: test validations } @@ -1749,7 +1723,7 @@ public void updateModeratorTest() throws ApiException { String tenantId = null; String id = null; UpdateModeratorBody updateModeratorBody = null; - UpdateModeratorResponse response = api.updateModerator(tenantId, id, updateModeratorBody) + APIEmptyResponse response = api.updateModerator(tenantId, id, updateModeratorBody) .execute(); // TODO: test validations } @@ -1763,7 +1737,7 @@ public void updateNotificationTest() throws ApiException { String id = null; UpdateNotificationBody updateNotificationBody = null; String userId = null; - UpdateNotificationResponse response = api.updateNotification(tenantId, id, updateNotificationBody) + APIEmptyResponse response = api.updateNotification(tenantId, id, updateNotificationBody) .userId(userId) .execute(); // TODO: test validations @@ -1777,7 +1751,7 @@ public void updateQuestionConfigTest() throws ApiException { String tenantId = null; String id = null; UpdateQuestionConfigBody updateQuestionConfigBody = null; - UpdateQuestionConfigResponse response = api.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) + APIEmptyResponse response = api.updateQuestionConfig(tenantId, id, updateQuestionConfigBody) .execute(); // TODO: test validations } @@ -1790,7 +1764,7 @@ public void updateQuestionResultTest() throws ApiException { String tenantId = null; String id = null; UpdateQuestionResultBody updateQuestionResultBody = null; - UpdateQuestionResultResponse response = api.updateQuestionResult(tenantId, id, updateQuestionResultBody) + APIEmptyResponse response = api.updateQuestionResult(tenantId, id, updateQuestionResultBody) .execute(); // TODO: test validations } @@ -1818,7 +1792,7 @@ public void updateTenantTest() throws ApiException { String tenantId = null; String id = null; UpdateTenantBody updateTenantBody = null; - UpdateTenantResponse response = api.updateTenant(tenantId, id, updateTenantBody) + APIEmptyResponse response = api.updateTenant(tenantId, id, updateTenantBody) .execute(); // TODO: test validations } @@ -1831,7 +1805,7 @@ public void updateTenantPackageTest() throws ApiException { String tenantId = null; String id = null; UpdateTenantPackageBody updateTenantPackageBody = null; - UpdateTenantPackageResponse response = api.updateTenantPackage(tenantId, id, updateTenantPackageBody) + APIEmptyResponse response = api.updateTenantPackage(tenantId, id, updateTenantPackageBody) .execute(); // TODO: test validations } @@ -1845,7 +1819,7 @@ public void updateTenantUserTest() throws ApiException { String id = null; UpdateTenantUserBody updateTenantUserBody = null; String updateComments = null; - UpdateTenantUserResponse response = api.updateTenantUser(tenantId, id, updateTenantUserBody) + APIEmptyResponse response = api.updateTenantUser(tenantId, id, updateTenantUserBody) .updateComments(updateComments) .execute(); // TODO: test validations @@ -1859,7 +1833,7 @@ public void updateUserBadgeTest() throws ApiException { String tenantId = null; String id = null; UpdateUserBadgeParams updateUserBadgeParams = null; - UpdateUserBadgeResponse 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 index 900b40fb..0809640a 100644 --- a/client/src/test/java/com/fastcomments/api/ModerationApiTest.java +++ b/client/src/test/java/com/fastcomments/api/ModerationApiTest.java @@ -14,54 +14,47 @@ 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.DeleteModerationVoteResponse; -import com.fastcomments.model.GetApiCommentsResponse; -import com.fastcomments.model.GetApiExportStatusResponse; -import com.fastcomments.model.GetApiIdsResponse; -import com.fastcomments.model.GetBanUsersFromCommentResponse; -import com.fastcomments.model.GetCommentBanStatusResponse1; -import com.fastcomments.model.GetCommentChildrenResponse; -import com.fastcomments.model.GetCountResponse; -import com.fastcomments.model.GetCountsResponse; -import com.fastcomments.model.GetLogsResponse; -import com.fastcomments.model.GetManualBadgesForUserResponse; -import com.fastcomments.model.GetManualBadgesResponse; -import com.fastcomments.model.GetModerationCommentResponse; -import com.fastcomments.model.GetModerationCommentTextResponse; -import com.fastcomments.model.GetPreBanSummaryResponse; -import com.fastcomments.model.GetSearchCommentsSummaryResponse; -import com.fastcomments.model.GetSearchPagesResponse; -import com.fastcomments.model.GetSearchSitesResponse; -import com.fastcomments.model.GetSearchSuggestResponse; -import com.fastcomments.model.GetSearchUsersResponse; -import com.fastcomments.model.GetTrustFactorResponse; -import com.fastcomments.model.GetUserBanPreferenceResponse; -import com.fastcomments.model.GetUserInternalProfileResponse1; -import com.fastcomments.model.PostAdjustCommentVotesResponse; -import com.fastcomments.model.PostApiExportResponse; -import com.fastcomments.model.PostBanUserFromCommentResponse; -import com.fastcomments.model.PostBanUserUndoResponse; -import com.fastcomments.model.PostBulkPreBanSummaryResponse; -import com.fastcomments.model.PostCommentsByIdsResponse; -import com.fastcomments.model.PostFlagCommentResponse; +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.PostRestoreDeletedCommentResponse; -import com.fastcomments.model.PostSetCommentApprovalStatusResponse; -import com.fastcomments.model.PostSetCommentReviewStatusResponse; -import com.fastcomments.model.PostSetCommentSpamStatusResponse; -import com.fastcomments.model.PostSetCommentTextResponse; -import com.fastcomments.model.PostUnFlagCommentResponse; -import com.fastcomments.model.PostVoteResponse; -import com.fastcomments.model.PutAwardBadgeResponse; -import com.fastcomments.model.PutCloseThreadResponse; -import com.fastcomments.model.PutRemoveBadgeResponse; -import com.fastcomments.model.PutReopenThreadResponse; +import com.fastcomments.model.PreBanSummary; +import com.fastcomments.model.RemoveUserBadgeResponse; +import com.fastcomments.model.SetCommentApprovedResponse; import com.fastcomments.model.SetCommentTextParams; -import com.fastcomments.model.SetTrustFactorResponse; +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; @@ -88,7 +81,7 @@ public void deleteModerationVoteTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - DeleteModerationVoteResponse response = api.deleteModerationVote(commentId, voteId) + VoteDeleteResponse response = api.deleteModerationVote(commentId, voteId) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -111,7 +104,7 @@ public void getApiCommentsTest() throws ApiException { Boolean demo = null; String tenantId = null; String sso = null; - GetApiCommentsResponse response = api.getApiComments() + ModerationAPIGetCommentsResponse response = api.getApiComments() .page(page) .count(count) .textSearch(textSearch) @@ -134,7 +127,7 @@ public void getApiExportStatusTest() throws ApiException { String batchJobId = null; String tenantId = null; String sso = null; - GetApiExportStatusResponse response = api.getApiExportStatus() + ModerationExportStatusResponse response = api.getApiExportStatus() .batchJobId(batchJobId) .tenantId(tenantId) .sso(sso) @@ -155,7 +148,7 @@ public void getApiIdsTest() throws ApiException { Boolean demo = null; String tenantId = null; String sso = null; - GetApiIdsResponse response = api.getApiIds() + ModerationAPIGetCommentIdsResponse response = api.getApiIds() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) @@ -176,7 +169,7 @@ public void getBanUsersFromCommentTest() throws ApiException { String commentId = null; String tenantId = null; String sso = null; - GetBanUsersFromCommentResponse response = api.getBanUsersFromComment(commentId) + GetBannedUsersFromCommentResponse response = api.getBanUsersFromComment(commentId) .tenantId(tenantId) .sso(sso) .execute(); @@ -191,7 +184,7 @@ public void getCommentBanStatusTest() throws ApiException { String commentId = null; String tenantId = null; String sso = null; - GetCommentBanStatusResponse1 response = api.getCommentBanStatus(commentId) + GetCommentBanStatusResponse response = api.getCommentBanStatus(commentId) .tenantId(tenantId) .sso(sso) .execute(); @@ -206,7 +199,7 @@ public void getCommentChildrenTest() throws ApiException { String commentId = null; String tenantId = null; String sso = null; - GetCommentChildrenResponse response = api.getCommentChildren(commentId) + ModerationAPIChildCommentsResponse response = api.getCommentChildren(commentId) .tenantId(tenantId) .sso(sso) .execute(); @@ -225,7 +218,7 @@ public void getCountTest() throws ApiException { Boolean demo = null; String tenantId = null; String sso = null; - GetCountResponse response = api.getCount() + ModerationAPICountCommentsResponse response = api.getCount() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filter(filter) @@ -244,7 +237,7 @@ public void getCountTest() throws ApiException { public void getCountsTest() throws ApiException { String tenantId = null; String sso = null; - GetCountsResponse response = api.getCounts() + GetBannedUsersCountResponse response = api.getCounts() .tenantId(tenantId) .sso(sso) .execute(); @@ -259,7 +252,7 @@ public void getLogsTest() throws ApiException { String commentId = null; String tenantId = null; String sso = null; - GetLogsResponse response = api.getLogs(commentId) + ModerationAPIGetLogsResponse response = api.getLogs(commentId) .tenantId(tenantId) .sso(sso) .execute(); @@ -273,7 +266,7 @@ public void getLogsTest() throws ApiException { public void getManualBadgesTest() throws ApiException { String tenantId = null; String sso = null; - GetManualBadgesResponse response = api.getManualBadges() + GetTenantManualBadgesResponse response = api.getManualBadges() .tenantId(tenantId) .sso(sso) .execute(); @@ -289,7 +282,7 @@ public void getManualBadgesForUserTest() throws ApiException { String commentId = null; String tenantId = null; String sso = null; - GetManualBadgesForUserResponse response = api.getManualBadgesForUser() + GetUserManualBadgesResponse response = api.getManualBadgesForUser() .badgesUserId(badgesUserId) .commentId(commentId) .tenantId(tenantId) @@ -308,7 +301,7 @@ public void getModerationCommentTest() throws ApiException { Boolean includeIP = null; String tenantId = null; String sso = null; - GetModerationCommentResponse response = api.getModerationComment(commentId) + ModerationAPICommentResponse response = api.getModerationComment(commentId) .includeEmail(includeEmail) .includeIP(includeIP) .tenantId(tenantId) @@ -325,7 +318,7 @@ public void getModerationCommentTextTest() throws ApiException { String commentId = null; String tenantId = null; String sso = null; - GetModerationCommentTextResponse response = api.getModerationCommentText(commentId) + GetCommentTextResponse response = api.getModerationCommentText(commentId) .tenantId(tenantId) .sso(sso) .execute(); @@ -343,7 +336,7 @@ public void getPreBanSummaryTest() throws ApiException { Boolean includeByEmailDomain = null; String tenantId = null; String sso = null; - GetPreBanSummaryResponse response = api.getPreBanSummary(commentId) + PreBanSummary response = api.getPreBanSummary(commentId) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) @@ -363,7 +356,7 @@ public void getSearchCommentsSummaryTest() throws ApiException { String searchFilters = null; String tenantId = null; String sso = null; - GetSearchCommentsSummaryResponse response = api.getSearchCommentsSummary() + ModerationCommentSearchResponse response = api.getSearchCommentsSummary() .value(value) .filters(filters) .searchFilters(searchFilters) @@ -381,7 +374,7 @@ public void getSearchPagesTest() throws ApiException { String value = null; String tenantId = null; String sso = null; - GetSearchPagesResponse response = api.getSearchPages() + ModerationPageSearchResponse response = api.getSearchPages() .value(value) .tenantId(tenantId) .sso(sso) @@ -397,7 +390,7 @@ public void getSearchSitesTest() throws ApiException { String value = null; String tenantId = null; String sso = null; - GetSearchSitesResponse response = api.getSearchSites() + ModerationSiteSearchResponse response = api.getSearchSites() .value(value) .tenantId(tenantId) .sso(sso) @@ -413,7 +406,7 @@ public void getSearchSuggestTest() throws ApiException { String textSearch = null; String tenantId = null; String sso = null; - GetSearchSuggestResponse response = api.getSearchSuggest() + ModerationSuggestResponse response = api.getSearchSuggest() .textSearch(textSearch) .tenantId(tenantId) .sso(sso) @@ -429,7 +422,7 @@ public void getSearchUsersTest() throws ApiException { String value = null; String tenantId = null; String sso = null; - GetSearchUsersResponse response = api.getSearchUsers() + ModerationUserSearchResponse response = api.getSearchUsers() .value(value) .tenantId(tenantId) .sso(sso) @@ -445,7 +438,7 @@ public void getTrustFactorTest() throws ApiException { String userId = null; String tenantId = null; String sso = null; - GetTrustFactorResponse response = api.getTrustFactor() + GetUserTrustFactorResponse response = api.getTrustFactor() .userId(userId) .tenantId(tenantId) .sso(sso) @@ -460,7 +453,7 @@ public void getTrustFactorTest() throws ApiException { public void getUserBanPreferenceTest() throws ApiException { String tenantId = null; String sso = null; - GetUserBanPreferenceResponse response = api.getUserBanPreference() + APIModerateGetUserBanPreferencesResponse response = api.getUserBanPreference() .tenantId(tenantId) .sso(sso) .execute(); @@ -475,7 +468,7 @@ public void getUserInternalProfileTest() throws ApiException { String commentId = null; String tenantId = null; String sso = null; - GetUserInternalProfileResponse1 response = api.getUserInternalProfile() + GetUserInternalProfileResponse response = api.getUserInternalProfile() .commentId(commentId) .tenantId(tenantId) .sso(sso) @@ -493,7 +486,7 @@ public void postAdjustCommentVotesTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - PostAdjustCommentVotesResponse response = api.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + AdjustVotesResponse response = api.postAdjustCommentVotes(commentId, adjustCommentVotesParams) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -513,7 +506,7 @@ public void postApiExportTest() throws ApiException { String sorts = null; String tenantId = null; String sso = null; - PostApiExportResponse response = api.postApiExport() + ModerationExportResponse response = api.postApiExport() .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) @@ -541,7 +534,7 @@ public void postBanUserFromCommentTest() throws ApiException { String banReason = null; String tenantId = null; String sso = null; - PostBanUserFromCommentResponse response = api.postBanUserFromComment(commentId) + BanUserFromCommentResult response = api.postBanUserFromComment(commentId) .banEmail(banEmail) .banEmailDomain(banEmailDomain) .banIP(banIP) @@ -564,7 +557,7 @@ public void postBanUserUndoTest() throws ApiException { BanUserUndoParams banUserUndoParams = null; String tenantId = null; String sso = null; - PostBanUserUndoResponse response = api.postBanUserUndo(banUserUndoParams) + APIEmptyResponse response = api.postBanUserUndo(banUserUndoParams) .tenantId(tenantId) .sso(sso) .execute(); @@ -582,7 +575,7 @@ public void postBulkPreBanSummaryTest() throws ApiException { Boolean includeByEmailDomain = null; String tenantId = null; String sso = null; - PostBulkPreBanSummaryResponse response = api.postBulkPreBanSummary(bulkPreBanParams) + BulkPreBanSummary response = api.postBulkPreBanSummary(bulkPreBanParams) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) @@ -600,7 +593,7 @@ public void postCommentsByIdsTest() throws ApiException { CommentsByIdsParams commentsByIdsParams = null; String tenantId = null; String sso = null; - PostCommentsByIdsResponse response = api.postCommentsByIds(commentsByIdsParams) + ModerationAPIChildCommentsResponse response = api.postCommentsByIds(commentsByIdsParams) .tenantId(tenantId) .sso(sso) .execute(); @@ -616,7 +609,7 @@ public void postFlagCommentTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - PostFlagCommentResponse response = api.postFlagComment(commentId) + APIEmptyResponse response = api.postFlagComment(commentId) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -650,7 +643,7 @@ public void postRestoreDeletedCommentTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - PostRestoreDeletedCommentResponse response = api.postRestoreDeletedComment(commentId) + APIEmptyResponse response = api.postRestoreDeletedComment(commentId) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -668,7 +661,7 @@ public void postSetCommentApprovalStatusTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - PostSetCommentApprovalStatusResponse response = api.postSetCommentApprovalStatus(commentId) + SetCommentApprovedResponse response = api.postSetCommentApprovalStatus(commentId) .approved(approved) .broadcastId(broadcastId) .tenantId(tenantId) @@ -687,7 +680,7 @@ public void postSetCommentReviewStatusTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - PostSetCommentReviewStatusResponse response = api.postSetCommentReviewStatus(commentId) + APIEmptyResponse response = api.postSetCommentReviewStatus(commentId) .reviewed(reviewed) .broadcastId(broadcastId) .tenantId(tenantId) @@ -707,7 +700,7 @@ public void postSetCommentSpamStatusTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - PostSetCommentSpamStatusResponse response = api.postSetCommentSpamStatus(commentId) + APIEmptyResponse response = api.postSetCommentSpamStatus(commentId) .spam(spam) .permNotSpam(permNotSpam) .broadcastId(broadcastId) @@ -727,7 +720,7 @@ public void postSetCommentTextTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - PostSetCommentTextResponse response = api.postSetCommentText(commentId, setCommentTextParams) + SetCommentTextResponse response = api.postSetCommentText(commentId, setCommentTextParams) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -744,7 +737,7 @@ public void postUnFlagCommentTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - PostUnFlagCommentResponse response = api.postUnFlagComment(commentId) + APIEmptyResponse response = api.postUnFlagComment(commentId) .broadcastId(broadcastId) .tenantId(tenantId) .sso(sso) @@ -762,7 +755,7 @@ public void postVoteTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - PostVoteResponse response = api.postVote(commentId) + VoteResponse response = api.postVote(commentId) .direction(direction) .broadcastId(broadcastId) .tenantId(tenantId) @@ -782,7 +775,7 @@ public void putAwardBadgeTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - PutAwardBadgeResponse response = api.putAwardBadge(badgeId) + AwardUserBadgeResponse response = api.putAwardBadge(badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) @@ -800,7 +793,7 @@ public void putCloseThreadTest() throws ApiException { String urlId = null; String tenantId = null; String sso = null; - PutCloseThreadResponse response = api.putCloseThread(urlId) + APIEmptyResponse response = api.putCloseThread(urlId) .tenantId(tenantId) .sso(sso) .execute(); @@ -818,7 +811,7 @@ public void putRemoveBadgeTest() throws ApiException { String broadcastId = null; String tenantId = null; String sso = null; - PutRemoveBadgeResponse response = api.putRemoveBadge(badgeId) + RemoveUserBadgeResponse response = api.putRemoveBadge(badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) @@ -836,7 +829,7 @@ public void putReopenThreadTest() throws ApiException { String urlId = null; String tenantId = null; String sso = null; - PutReopenThreadResponse response = api.putReopenThread(urlId) + APIEmptyResponse response = api.putReopenThread(urlId) .tenantId(tenantId) .sso(sso) .execute(); @@ -852,7 +845,7 @@ public void setTrustFactorTest() throws ApiException { String trustFactor = null; String tenantId = null; String sso = null; - SetTrustFactorResponse response = api.setTrustFactor() + SetUserTrustFactorResponse response = api.setTrustFactor() .userId(userId) .trustFactor(trustFactor) .tenantId(tenantId) diff --git a/client/src/test/java/com/fastcomments/api/PublicApiTest.java b/client/src/test/java/com/fastcomments/api/PublicApiTest.java index f1179a0a..05eb90e0 100644 --- a/client/src/test/java/com/fastcomments/api/PublicApiTest.java +++ b/client/src/test/java/com/fastcomments/api/PublicApiTest.java @@ -16,68 +16,58 @@ import com.fastcomments.invoker.ApiException; import com.fastcomments.model.APIEmptyResponse; import com.fastcomments.model.APIError; -import com.fastcomments.model.BlockFromCommentPublicResponse; -import com.fastcomments.model.CheckedCommentsForBlockedResponse; +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.CreateCommentPublicResponse; import com.fastcomments.model.CreateFeedPostParams; -import com.fastcomments.model.CreateFeedPostPublicResponse; -import com.fastcomments.model.CreateV1PageReactResponse; -import com.fastcomments.model.CreateV2PageReactResponse; -import com.fastcomments.model.DeleteCommentPublicResponse; -import com.fastcomments.model.DeleteCommentVoteResponse; +import com.fastcomments.model.CreateFeedPostResponse; +import com.fastcomments.model.CreateV1PageReact; import com.fastcomments.model.DeleteFeedPostPublicResponse; -import com.fastcomments.model.DeleteV1PageReactResponse; -import com.fastcomments.model.DeleteV2PageReactResponse; +import com.fastcomments.model.FeedPostsStatsResponse; import java.io.File; -import com.fastcomments.model.FlagCommentPublicResponse; -import com.fastcomments.model.GetCommentTextResponse1; -import com.fastcomments.model.GetCommentVoteUserNamesResponse; -import com.fastcomments.model.GetCommentsForUserResponse1; -import com.fastcomments.model.GetCommentsPublicResponse; -import com.fastcomments.model.GetEventLogResponse1; -import com.fastcomments.model.GetFeedPostsPublicResponse; -import com.fastcomments.model.GetFeedPostsStatsResponse; -import com.fastcomments.model.GetGifLargeResponse; +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.GetGlobalEventLogResponse; -import com.fastcomments.model.GetOfflineUsersResponse; -import com.fastcomments.model.GetOnlineUsersResponse; -import com.fastcomments.model.GetPagesPublicResponse; -import com.fastcomments.model.GetTranslationsResponse1; -import com.fastcomments.model.GetUserNotificationCountResponse1; -import com.fastcomments.model.GetUserNotificationsResponse; -import com.fastcomments.model.GetUserPresenceStatusesResponse1; -import com.fastcomments.model.GetUserReactsPublicResponse; -import com.fastcomments.model.GetUsersInfoResponse; -import com.fastcomments.model.GetV1PageLikesResponse; -import com.fastcomments.model.GetV2PageReactUsersResponse1; -import com.fastcomments.model.GetV2PageReactsResponse; -import com.fastcomments.model.LockCommentResponse; +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.PinCommentResponse; +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.ReactFeedPostPublicResponse; -import com.fastcomments.model.ResetUserNotificationCountResponse; -import com.fastcomments.model.ResetUserNotificationsResponse1; -import com.fastcomments.model.SearchUsersResponse1; -import com.fastcomments.model.SetCommentTextResponse1; +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.UnBlockCommentPublicResponse; -import com.fastcomments.model.UnLockCommentResponse; -import com.fastcomments.model.UnPinCommentResponse; +import com.fastcomments.model.UnblockSuccess; import com.fastcomments.model.UpdateFeedPostParams; -import com.fastcomments.model.UpdateFeedPostPublicResponse; 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.VoteCommentResponse; +import com.fastcomments.model.VoteDeleteResponse; +import com.fastcomments.model.VoteResponse; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -103,7 +93,7 @@ public void blockFromCommentPublicTest() throws ApiException { String commentId = null; PublicBlockFromCommentParams publicBlockFromCommentParams = null; String sso = null; - BlockFromCommentPublicResponse response = api.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + BlockSuccess response = api.blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); // TODO: test validations @@ -117,7 +107,7 @@ public void checkedCommentsForBlockedTest() throws ApiException { String tenantId = null; String commentIds = null; String sso = null; - CheckedCommentsForBlockedResponse response = api.checkedCommentsForBlocked(tenantId, commentIds) + CheckBlockedCommentsResponse response = api.checkedCommentsForBlocked(tenantId, commentIds) .sso(sso) .execute(); // TODO: test validations @@ -134,7 +124,7 @@ public void createCommentPublicTest() throws ApiException { CommentData commentData = null; String sessionId = null; String sso = null; - CreateCommentPublicResponse response = api.createCommentPublic(tenantId, urlId, broadcastId, commentData) + SaveCommentsResponseWithPresence response = api.createCommentPublic(tenantId, urlId, broadcastId, commentData) .sessionId(sessionId) .sso(sso) .execute(); @@ -150,7 +140,7 @@ public void createFeedPostPublicTest() throws ApiException { CreateFeedPostParams createFeedPostParams = null; String broadcastId = null; String sso = null; - CreateFeedPostPublicResponse response = api.createFeedPostPublic(tenantId, createFeedPostParams) + CreateFeedPostResponse response = api.createFeedPostPublic(tenantId, createFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); @@ -165,7 +155,7 @@ public void createV1PageReactTest() throws ApiException { String tenantId = null; String urlId = null; String title = null; - CreateV1PageReactResponse response = api.createV1PageReact(tenantId, urlId) + CreateV1PageReact response = api.createV1PageReact(tenantId, urlId) .title(title) .execute(); // TODO: test validations @@ -180,7 +170,7 @@ public void createV2PageReactTest() throws ApiException { String urlId = null; String id = null; String title = null; - CreateV2PageReactResponse response = api.createV2PageReact(tenantId, urlId, id) + CreateV1PageReact response = api.createV2PageReact(tenantId, urlId, id) .title(title) .execute(); // TODO: test validations @@ -196,7 +186,7 @@ public void deleteCommentPublicTest() throws ApiException { String broadcastId = null; String editKey = null; String sso = null; - DeleteCommentPublicResponse response = api.deleteCommentPublic(tenantId, commentId, broadcastId) + PublicAPIDeleteCommentResponse response = api.deleteCommentPublic(tenantId, commentId, broadcastId) .editKey(editKey) .sso(sso) .execute(); @@ -215,7 +205,7 @@ public void deleteCommentVoteTest() throws ApiException { String broadcastId = null; String editKey = null; String sso = null; - DeleteCommentVoteResponse response = api.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) + VoteDeleteResponse response = api.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId) .editKey(editKey) .sso(sso) .execute(); @@ -245,7 +235,7 @@ public void deleteFeedPostPublicTest() throws ApiException { public void deleteV1PageReactTest() throws ApiException { String tenantId = null; String urlId = null; - DeleteV1PageReactResponse response = api.deleteV1PageReact(tenantId, urlId) + CreateV1PageReact response = api.deleteV1PageReact(tenantId, urlId) .execute(); // TODO: test validations } @@ -258,7 +248,7 @@ public void deleteV2PageReactTest() throws ApiException { String tenantId = null; String urlId = null; String id = null; - DeleteV2PageReactResponse response = api.deleteV2PageReact(tenantId, urlId, id) + CreateV1PageReact response = api.deleteV2PageReact(tenantId, urlId, id) .execute(); // TODO: test validations } @@ -272,7 +262,7 @@ public void flagCommentPublicTest() throws ApiException { String commentId = null; Boolean isFlagged = null; String sso = null; - FlagCommentPublicResponse response = api.flagCommentPublic(tenantId, commentId, isFlagged) + APIEmptyResponse response = api.flagCommentPublic(tenantId, commentId, isFlagged) .sso(sso) .execute(); // TODO: test validations @@ -287,7 +277,7 @@ public void getCommentTextTest() throws ApiException { String commentId = null; String editKey = null; String sso = null; - GetCommentTextResponse1 response = api.getCommentText(tenantId, commentId) + PublicAPIGetCommentTextResponse response = api.getCommentText(tenantId, commentId) .editKey(editKey) .sso(sso) .execute(); @@ -303,7 +293,7 @@ public void getCommentVoteUserNamesTest() throws ApiException { String commentId = null; Integer dir = null; String sso = null; - GetCommentVoteUserNamesResponse response = api.getCommentVoteUserNames(tenantId, commentId, dir) + GetCommentVoteUserNamesSuccessResponse response = api.getCommentVoteUserNames(tenantId, commentId, dir) .sso(sso) .execute(); // TODO: test validations @@ -321,7 +311,7 @@ public void getCommentsForUserTest() throws ApiException { Boolean includei10n = null; String locale = null; Boolean isCrawler = null; - GetCommentsForUserResponse1 response = api.getCommentsForUser() + GetCommentsForUserResponse response = api.getCommentsForUser() .userId(userId) .direction(direction) .repliesToUserId(repliesToUserId) @@ -368,7 +358,7 @@ public void getCommentsPublicTest() throws ApiException { String customConfigStr = null; String afterCommentId = null; String beforeCommentId = null; - GetCommentsPublicResponse response = api.getCommentsPublic(tenantId, urlId) + GetCommentsResponseWithPresencePublicComment response = api.getCommentsPublic(tenantId, urlId) .page(page) .direction(direction) .sso(sso) @@ -411,7 +401,7 @@ public void getEventLogTest() throws ApiException { String userIdWS = null; Long startTime = null; Long endTime = null; - GetEventLogResponse1 response = api.getEventLog(tenantId, urlId, userIdWS, startTime) + GetEventLogResponse response = api.getEventLog(tenantId, urlId, userIdWS, startTime) .endTime(endTime) .execute(); // TODO: test validations @@ -431,7 +421,7 @@ public void getFeedPostsPublicTest() throws ApiException { String sso = null; Boolean isCrawler = null; Boolean includeUserInfo = null; - GetFeedPostsPublicResponse response = api.getFeedPostsPublic(tenantId) + PublicFeedPostsResponse response = api.getFeedPostsPublic(tenantId) .afterId(afterId) .limit(limit) .tags(tags) @@ -450,7 +440,7 @@ public void getFeedPostsStatsTest() throws ApiException { String tenantId = null; List postIds = null; String sso = null; - GetFeedPostsStatsResponse response = api.getFeedPostsStats(tenantId, postIds) + FeedPostsStatsResponse response = api.getFeedPostsStats(tenantId, postIds) .sso(sso) .execute(); // TODO: test validations @@ -463,7 +453,7 @@ public void getFeedPostsStatsTest() throws ApiException { public void getGifLargeTest() throws ApiException { String tenantId = null; String largeInternalURLSanitized = null; - GetGifLargeResponse response = api.getGifLarge(tenantId, largeInternalURLSanitized) + GifGetLargeResponse response = api.getGifLarge(tenantId, largeInternalURLSanitized) .execute(); // TODO: test validations } @@ -515,7 +505,7 @@ public void getGlobalEventLogTest() throws ApiException { String userIdWS = null; Long startTime = null; Long endTime = null; - GetGlobalEventLogResponse response = api.getGlobalEventLog(tenantId, urlId, userIdWS, startTime) + GetEventLogResponse response = api.getGlobalEventLog(tenantId, urlId, userIdWS, startTime) .endTime(endTime) .execute(); // TODO: test validations @@ -532,7 +522,7 @@ public void getOfflineUsersTest() throws ApiException { String urlId = null; String afterName = null; String afterUserId = null; - GetOfflineUsersResponse response = api.getOfflineUsers(tenantId, urlId) + PageUsersOfflineResponse response = api.getOfflineUsers(tenantId, urlId) .afterName(afterName) .afterUserId(afterUserId) .execute(); @@ -550,7 +540,7 @@ public void getOnlineUsersTest() throws ApiException { String urlId = null; String afterName = null; String afterUserId = null; - GetOnlineUsersResponse response = api.getOnlineUsers(tenantId, urlId) + PageUsersOnlineResponse response = api.getOnlineUsers(tenantId, urlId) .afterName(afterName) .afterUserId(afterUserId) .execute(); @@ -570,7 +560,7 @@ public void getPagesPublicTest() throws ApiException { String q = null; PagesSortBy sortBy = null; Boolean hasComments = null; - GetPagesPublicResponse response = api.getPagesPublic(tenantId) + GetPublicPagesResponse response = api.getPagesPublic(tenantId) .cursor(cursor) .limit(limit) .q(q) @@ -589,7 +579,7 @@ public void getTranslationsTest() throws ApiException { String component = null; String locale = null; Boolean useFullTranslationIds = null; - GetTranslationsResponse1 response = api.getTranslations(namespace, component) + GetTranslationsResponse response = api.getTranslations(namespace, component) .locale(locale) .useFullTranslationIds(useFullTranslationIds) .execute(); @@ -603,7 +593,7 @@ public void getTranslationsTest() throws ApiException { public void getUserNotificationCountTest() throws ApiException { String tenantId = null; String sso = null; - GetUserNotificationCountResponse1 response = api.getUserNotificationCount(tenantId) + GetUserNotificationCountResponse response = api.getUserNotificationCount(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -626,7 +616,7 @@ public void getUserNotificationsTest() throws ApiException { Boolean includeTranslations = null; Boolean includeTenantNotifications = null; String sso = null; - GetUserNotificationsResponse response = api.getUserNotifications(tenantId) + GetMyNotificationsResponse response = api.getUserNotifications(tenantId) .urlId(urlId) .pageSize(pageSize) .afterId(afterId) @@ -650,7 +640,7 @@ public void getUserPresenceStatusesTest() throws ApiException { String tenantId = null; String urlIdWS = null; String userIds = null; - GetUserPresenceStatusesResponse1 response = api.getUserPresenceStatuses(tenantId, urlIdWS, userIds) + GetUserPresenceStatusesResponse response = api.getUserPresenceStatuses(tenantId, urlIdWS, userIds) .execute(); // TODO: test validations } @@ -663,7 +653,7 @@ public void getUserReactsPublicTest() throws ApiException { String tenantId = null; List postIds = null; String sso = null; - GetUserReactsPublicResponse response = api.getUserReactsPublic(tenantId) + UserReactsResponse response = api.getUserReactsPublic(tenantId) .postIds(postIds) .sso(sso) .execute(); @@ -679,7 +669,7 @@ public void getUserReactsPublicTest() throws ApiException { public void getUsersInfoTest() throws ApiException { String tenantId = null; String ids = null; - GetUsersInfoResponse response = api.getUsersInfo(tenantId, ids) + PageUsersInfoResponse response = api.getUsersInfo(tenantId, ids) .execute(); // TODO: test validations } @@ -691,7 +681,7 @@ public void getUsersInfoTest() throws ApiException { public void getV1PageLikesTest() throws ApiException { String tenantId = null; String urlId = null; - GetV1PageLikesResponse response = api.getV1PageLikes(tenantId, urlId) + GetV1PageLikes response = api.getV1PageLikes(tenantId, urlId) .execute(); // TODO: test validations } @@ -704,7 +694,7 @@ public void getV2PageReactUsersTest() throws ApiException { String tenantId = null; String urlId = null; String id = null; - GetV2PageReactUsersResponse1 response = api.getV2PageReactUsers(tenantId, urlId, id) + GetV2PageReactUsersResponse response = api.getV2PageReactUsers(tenantId, urlId, id) .execute(); // TODO: test validations } @@ -716,7 +706,7 @@ public void getV2PageReactUsersTest() throws ApiException { public void getV2PageReactsTest() throws ApiException { String tenantId = null; String urlId = null; - GetV2PageReactsResponse response = api.getV2PageReacts(tenantId, urlId) + GetV2PageReacts response = api.getV2PageReacts(tenantId, urlId) .execute(); // TODO: test validations } @@ -730,7 +720,7 @@ public void lockCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - LockCommentResponse response = api.lockComment(tenantId, commentId, broadcastId) + APIEmptyResponse response = api.lockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -755,7 +745,7 @@ public void pinCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - PinCommentResponse response = api.pinComment(tenantId, commentId, broadcastId) + ChangeCommentPinStatusResponse response = api.pinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -772,7 +762,7 @@ public void reactFeedPostPublicTest() throws ApiException { Boolean isUndo = null; String broadcastId = null; String sso = null; - ReactFeedPostPublicResponse response = api.reactFeedPostPublic(tenantId, postId, reactBodyParams) + ReactFeedPostResponse response = api.reactFeedPostPublic(tenantId, postId, reactBodyParams) .isUndo(isUndo) .broadcastId(broadcastId) .sso(sso) @@ -787,7 +777,7 @@ public void reactFeedPostPublicTest() throws ApiException { public void resetUserNotificationCountTest() throws ApiException { String tenantId = null; String sso = null; - ResetUserNotificationCountResponse response = api.resetUserNotificationCount(tenantId) + ResetUserNotificationsResponse response = api.resetUserNotificationCount(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -805,7 +795,7 @@ public void resetUserNotificationsTest() throws ApiException { Boolean dmOnly = null; Boolean noDm = null; String sso = null; - ResetUserNotificationsResponse1 response = api.resetUserNotifications(tenantId) + ResetUserNotificationsResponse response = api.resetUserNotifications(tenantId) .afterId(afterId) .afterCreatedAt(afterCreatedAt) .unreadOnly(unreadOnly) @@ -827,7 +817,7 @@ public void searchUsersTest() throws ApiException { List mentionGroupIds = null; String sso = null; String searchSection = null; - SearchUsersResponse1 response = api.searchUsers(tenantId, urlId) + SearchUsersResult response = api.searchUsers(tenantId, urlId) .usernameStartsWith(usernameStartsWith) .mentionGroupIds(mentionGroupIds) .sso(sso) @@ -847,7 +837,7 @@ public void setCommentTextTest() throws ApiException { CommentTextUpdateRequest commentTextUpdateRequest = null; String editKey = null; String sso = null; - SetCommentTextResponse1 response = api.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) + PublicAPISetCommentTextResponse response = api.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest) .editKey(editKey) .sso(sso) .execute(); @@ -863,7 +853,7 @@ public void unBlockCommentPublicTest() throws ApiException { String commentId = null; PublicBlockFromCommentParams publicBlockFromCommentParams = null; String sso = null; - UnBlockCommentPublicResponse response = api.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) + UnblockSuccess response = api.unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams) .sso(sso) .execute(); // TODO: test validations @@ -878,7 +868,7 @@ public void unLockCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - UnLockCommentResponse response = api.unLockComment(tenantId, commentId, broadcastId) + APIEmptyResponse response = api.unLockComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -893,7 +883,7 @@ public void unPinCommentTest() throws ApiException { String commentId = null; String broadcastId = null; String sso = null; - UnPinCommentResponse response = api.unPinComment(tenantId, commentId, broadcastId) + ChangeCommentPinStatusResponse response = api.unPinComment(tenantId, commentId, broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -909,7 +899,7 @@ public void updateFeedPostPublicTest() throws ApiException { UpdateFeedPostParams updateFeedPostParams = null; String broadcastId = null; String sso = null; - UpdateFeedPostPublicResponse response = api.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) + CreateFeedPostResponse response = api.updateFeedPostPublic(tenantId, postId, updateFeedPostParams) .broadcastId(broadcastId) .sso(sso) .execute(); @@ -998,7 +988,7 @@ public void voteCommentTest() throws ApiException { VoteBodyParams voteBodyParams = null; String sessionId = null; String sso = null; - VoteCommentResponse 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/AddHashTagResponseTest.java b/client/src/test/java/com/fastcomments/model/AddHashTagResponseTest.java deleted file mode 100644 index 6d28212d..00000000 --- a/client/src/test/java/com/fastcomments/model/AddHashTagResponseTest.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.CreateHashTagResponse; -import com.fastcomments.model.CustomConfigParameters; -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.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AddHashTagResponse - */ -public class AddHashTagResponseTest { - private final AddHashTagResponse model = new AddHashTagResponse(); - - /** - * Model tests for AddHashTagResponse - */ - @Test - public void testAddHashTagResponse() { - // TODO: test AddHashTagResponse - } - - /** - * 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/AddHashTagsBulkResponseTest.java b/client/src/test/java/com/fastcomments/model/AddHashTagsBulkResponseTest.java deleted file mode 100644 index 3e4832ba..00000000 --- a/client/src/test/java/com/fastcomments/model/AddHashTagsBulkResponseTest.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.BulkCreateHashTagsResponse; -import com.fastcomments.model.BulkCreateHashTagsResponseResultsInner; -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 AddHashTagsBulkResponse - */ -public class AddHashTagsBulkResponseTest { - private final AddHashTagsBulkResponse model = new AddHashTagsBulkResponse(); - - /** - * Model tests for AddHashTagsBulkResponse - */ - @Test - public void testAddHashTagsBulkResponse() { - // TODO: test AddHashTagsBulkResponse - } - - /** - * 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/AggregateQuestionResultsResponse1Test.java b/client/src/test/java/com/fastcomments/model/AggregateQuestionResultsResponse1Test.java deleted file mode 100644 index 8123a2b5..00000000 --- a/client/src/test/java/com/fastcomments/model/AggregateQuestionResultsResponse1Test.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 AggregateQuestionResultsResponse1 - */ -public class AggregateQuestionResultsResponse1Test { - private final AggregateQuestionResultsResponse1 model = new AggregateQuestionResultsResponse1(); - - /** - * Model tests for AggregateQuestionResultsResponse1 - */ - @Test - public void testAggregateQuestionResultsResponse1() { - // TODO: test AggregateQuestionResultsResponse1 - } - - /** - * 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/BlockFromCommentPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/BlockFromCommentPublicResponseTest.java deleted file mode 100644 index 7bac4d9e..00000000 --- a/client/src/test/java/com/fastcomments/model/BlockFromCommentPublicResponseTest.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 BlockFromCommentPublicResponse - */ -public class BlockFromCommentPublicResponseTest { - private final BlockFromCommentPublicResponse model = new BlockFromCommentPublicResponse(); - - /** - * Model tests for BlockFromCommentPublicResponse - */ - @Test - public void testBlockFromCommentPublicResponse() { - // TODO: test BlockFromCommentPublicResponse - } - - /** - * 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/BlockUserFromCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/BlockUserFromCommentResponseTest.java deleted file mode 100644 index f9e9f814..00000000 --- a/client/src/test/java/com/fastcomments/model/BlockUserFromCommentResponseTest.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 BlockUserFromCommentResponse - */ -public class BlockUserFromCommentResponseTest { - private final BlockUserFromCommentResponse model = new BlockUserFromCommentResponse(); - - /** - * Model tests for BlockUserFromCommentResponse - */ - @Test - public void testBlockUserFromCommentResponse() { - // TODO: test BlockUserFromCommentResponse - } - - /** - * 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/BulkAggregateQuestionResultsResponse1Test.java b/client/src/test/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1Test.java deleted file mode 100644 index 6eac601e..00000000 --- a/client/src/test/java/com/fastcomments/model/BulkAggregateQuestionResultsResponse1Test.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 BulkAggregateQuestionResultsResponse1 - */ -public class BulkAggregateQuestionResultsResponse1Test { - private final BulkAggregateQuestionResultsResponse1 model = new BulkAggregateQuestionResultsResponse1(); - - /** - * Model tests for BulkAggregateQuestionResultsResponse1 - */ - @Test - public void testBulkAggregateQuestionResultsResponse1() { - // TODO: test BulkAggregateQuestionResultsResponse1 - } - - /** - * 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/ChangeTicketStateResponse1Test.java b/client/src/test/java/com/fastcomments/model/ChangeTicketStateResponse1Test.java deleted file mode 100644 index 81c65ca4..00000000 --- a/client/src/test/java/com/fastcomments/model/ChangeTicketStateResponse1Test.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 ChangeTicketStateResponse1 - */ -public class ChangeTicketStateResponse1Test { - private final ChangeTicketStateResponse1 model = new ChangeTicketStateResponse1(); - - /** - * Model tests for ChangeTicketStateResponse1 - */ - @Test - public void testChangeTicketStateResponse1() { - // TODO: test ChangeTicketStateResponse1 - } - - /** - * 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/CheckedCommentsForBlockedResponseTest.java b/client/src/test/java/com/fastcomments/model/CheckedCommentsForBlockedResponseTest.java deleted file mode 100644 index 8a626e6d..00000000 --- a/client/src/test/java/com/fastcomments/model/CheckedCommentsForBlockedResponseTest.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 CheckedCommentsForBlockedResponse - */ -public class CheckedCommentsForBlockedResponseTest { - private final CheckedCommentsForBlockedResponse model = new CheckedCommentsForBlockedResponse(); - - /** - * Model tests for CheckedCommentsForBlockedResponse - */ - @Test - public void testCheckedCommentsForBlockedResponse() { - // TODO: test CheckedCommentsForBlockedResponse - } - - /** - * 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/CombineCommentsWithQuestionResultsResponseTest.java b/client/src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponseTest.java deleted file mode 100644 index d7be10ff..00000000 --- a/client/src/test/java/com/fastcomments/model/CombineCommentsWithQuestionResultsResponseTest.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 CombineCommentsWithQuestionResultsResponse - */ -public class CombineCommentsWithQuestionResultsResponseTest { - private final CombineCommentsWithQuestionResultsResponse model = new CombineCommentsWithQuestionResultsResponse(); - - /** - * Model tests for CombineCommentsWithQuestionResultsResponse - */ - @Test - public void testCombineCommentsWithQuestionResultsResponse() { - // TODO: test CombineCommentsWithQuestionResultsResponse - } - - /** - * 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/CreateCommentPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateCommentPublicResponseTest.java deleted file mode 100644 index 957f7abc..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateCommentPublicResponseTest.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 CreateCommentPublicResponse - */ -public class CreateCommentPublicResponseTest { - private final CreateCommentPublicResponse model = new CreateCommentPublicResponse(); - - /** - * Model tests for CreateCommentPublicResponse - */ - @Test - public void testCreateCommentPublicResponse() { - // TODO: test CreateCommentPublicResponse - } - - /** - * 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/CreateEmailTemplateResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateEmailTemplateResponse1Test.java deleted file mode 100644 index 054c21a9..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateEmailTemplateResponse1Test.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 CreateEmailTemplateResponse1 - */ -public class CreateEmailTemplateResponse1Test { - private final CreateEmailTemplateResponse1 model = new CreateEmailTemplateResponse1(); - - /** - * Model tests for CreateEmailTemplateResponse1 - */ - @Test - public void testCreateEmailTemplateResponse1() { - // TODO: test CreateEmailTemplateResponse1 - } - - /** - * 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/CreateFeedPostPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateFeedPostPublicResponseTest.java deleted file mode 100644 index b967e8ee..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateFeedPostPublicResponseTest.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 CreateFeedPostPublicResponse - */ -public class CreateFeedPostPublicResponseTest { - private final CreateFeedPostPublicResponse model = new CreateFeedPostPublicResponse(); - - /** - * Model tests for CreateFeedPostPublicResponse - */ - @Test - public void testCreateFeedPostPublicResponse() { - // TODO: test CreateFeedPostPublicResponse - } - - /** - * 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/CreateFeedPostResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateFeedPostResponse1Test.java deleted file mode 100644 index ecfb5f9e..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateFeedPostResponse1Test.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 CreateFeedPostResponse1 - */ -public class CreateFeedPostResponse1Test { - private final CreateFeedPostResponse1 model = new CreateFeedPostResponse1(); - - /** - * Model tests for CreateFeedPostResponse1 - */ - @Test - public void testCreateFeedPostResponse1() { - // TODO: test CreateFeedPostResponse1 - } - - /** - * 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/CreateModeratorResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateModeratorResponse1Test.java deleted file mode 100644 index c29508fa..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateModeratorResponse1Test.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 CreateModeratorResponse1 - */ -public class CreateModeratorResponse1Test { - private final CreateModeratorResponse1 model = new CreateModeratorResponse1(); - - /** - * Model tests for CreateModeratorResponse1 - */ - @Test - public void testCreateModeratorResponse1() { - // TODO: test CreateModeratorResponse1 - } - - /** - * 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/CreateQuestionConfigResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateQuestionConfigResponse1Test.java deleted file mode 100644 index ea6dcbfd..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateQuestionConfigResponse1Test.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 CreateQuestionConfigResponse1 - */ -public class CreateQuestionConfigResponse1Test { - private final CreateQuestionConfigResponse1 model = new CreateQuestionConfigResponse1(); - - /** - * Model tests for CreateQuestionConfigResponse1 - */ - @Test - public void testCreateQuestionConfigResponse1() { - // TODO: test CreateQuestionConfigResponse1 - } - - /** - * 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/CreateQuestionResultResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateQuestionResultResponse1Test.java deleted file mode 100644 index 152853a0..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateQuestionResultResponse1Test.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 CreateQuestionResultResponse1 - */ -public class CreateQuestionResultResponse1Test { - private final CreateQuestionResultResponse1 model = new CreateQuestionResultResponse1(); - - /** - * Model tests for CreateQuestionResultResponse1 - */ - @Test - public void testCreateQuestionResultResponse1() { - // TODO: test CreateQuestionResultResponse1 - } - - /** - * 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/CreateTenantPackageResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateTenantPackageResponse1Test.java deleted file mode 100644 index d2f5b9ba..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateTenantPackageResponse1Test.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 CreateTenantPackageResponse1 - */ -public class CreateTenantPackageResponse1Test { - private final CreateTenantPackageResponse1 model = new CreateTenantPackageResponse1(); - - /** - * Model tests for CreateTenantPackageResponse1 - */ - @Test - public void testCreateTenantPackageResponse1() { - // TODO: test CreateTenantPackageResponse1 - } - - /** - * 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/CreateTenantResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateTenantResponse1Test.java deleted file mode 100644 index 3c370492..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateTenantResponse1Test.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 CreateTenantResponse1 - */ -public class CreateTenantResponse1Test { - private final CreateTenantResponse1 model = new CreateTenantResponse1(); - - /** - * Model tests for CreateTenantResponse1 - */ - @Test - public void testCreateTenantResponse1() { - // TODO: test CreateTenantResponse1 - } - - /** - * 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/CreateTenantUserResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateTenantUserResponse1Test.java deleted file mode 100644 index a4a6d76c..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateTenantUserResponse1Test.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 CreateTenantUserResponse1 - */ -public class CreateTenantUserResponse1Test { - private final CreateTenantUserResponse1 model = new CreateTenantUserResponse1(); - - /** - * Model tests for CreateTenantUserResponse1 - */ - @Test - public void testCreateTenantUserResponse1() { - // TODO: test CreateTenantUserResponse1 - } - - /** - * 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/CreateTicketResponse1Test.java b/client/src/test/java/com/fastcomments/model/CreateTicketResponse1Test.java deleted file mode 100644 index 085f39cf..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateTicketResponse1Test.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 CreateTicketResponse1 - */ -public class CreateTicketResponse1Test { - private final CreateTicketResponse1 model = new CreateTicketResponse1(); - - /** - * Model tests for CreateTicketResponse1 - */ - @Test - public void testCreateTicketResponse1() { - // TODO: test CreateTicketResponse1 - } - - /** - * 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/CreateUserBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateUserBadgeResponseTest.java deleted file mode 100644 index 5f0098d7..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateUserBadgeResponseTest.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 CreateUserBadgeResponse - */ -public class CreateUserBadgeResponseTest { - private final CreateUserBadgeResponse model = new CreateUserBadgeResponse(); - - /** - * Model tests for CreateUserBadgeResponse - */ - @Test - public void testCreateUserBadgeResponse() { - // TODO: test CreateUserBadgeResponse - } - - /** - * 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/CreateV1PageReactResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateV1PageReactResponseTest.java deleted file mode 100644 index c1b4d802..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateV1PageReactResponseTest.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.CreateV1PageReact; -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 CreateV1PageReactResponse - */ -public class CreateV1PageReactResponseTest { - private final CreateV1PageReactResponse model = new CreateV1PageReactResponse(); - - /** - * Model tests for CreateV1PageReactResponse - */ - @Test - public void testCreateV1PageReactResponse() { - // TODO: test CreateV1PageReactResponse - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * 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 '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/CreateV2PageReactResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateV2PageReactResponseTest.java deleted file mode 100644 index 360e2c06..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateV2PageReactResponseTest.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.CreateV1PageReact; -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 CreateV2PageReactResponse - */ -public class CreateV2PageReactResponseTest { - private final CreateV2PageReactResponse model = new CreateV2PageReactResponse(); - - /** - * Model tests for CreateV2PageReactResponse - */ - @Test - public void testCreateV2PageReactResponse() { - // TODO: test CreateV2PageReactResponse - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * 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 '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/CreateVoteResponseTest.java b/client/src/test/java/com/fastcomments/model/CreateVoteResponseTest.java deleted file mode 100644 index 6d3cbb15..00000000 --- a/client/src/test/java/com/fastcomments/model/CreateVoteResponseTest.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 CreateVoteResponse - */ -public class CreateVoteResponseTest { - private final CreateVoteResponse model = new CreateVoteResponse(); - - /** - * Model tests for CreateVoteResponse - */ - @Test - public void testCreateVoteResponse() { - // TODO: test CreateVoteResponse - } - - /** - * 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/client/src/test/java/com/fastcomments/model/DeleteCommentPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteCommentPublicResponseTest.java deleted file mode 100644 index 86a8a465..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteCommentPublicResponseTest.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 DeleteCommentPublicResponse - */ -public class DeleteCommentPublicResponseTest { - private final DeleteCommentPublicResponse model = new DeleteCommentPublicResponse(); - - /** - * Model tests for DeleteCommentPublicResponse - */ - @Test - public void testDeleteCommentPublicResponse() { - // TODO: test DeleteCommentPublicResponse - } - - /** - * 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/DeleteCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteCommentResponseTest.java deleted file mode 100644 index 227c4f63..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteCommentResponseTest.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 DeleteCommentResponse - */ -public class DeleteCommentResponseTest { - private final DeleteCommentResponse model = new DeleteCommentResponse(); - - /** - * Model tests for DeleteCommentResponse - */ - @Test - public void testDeleteCommentResponse() { - // TODO: test DeleteCommentResponse - } - - /** - * 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/DeleteCommentVoteResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteCommentVoteResponseTest.java deleted file mode 100644 index 5a83c08c..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteCommentVoteResponseTest.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 DeleteCommentVoteResponse - */ -public class DeleteCommentVoteResponseTest { - private final DeleteCommentVoteResponse model = new DeleteCommentVoteResponse(); - - /** - * Model tests for DeleteCommentVoteResponse - */ - @Test - public void testDeleteCommentVoteResponse() { - // TODO: test DeleteCommentVoteResponse - } - - /** - * 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/DeleteEmailTemplateRenderErrorResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponseTest.java deleted file mode 100644 index 127573f1..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteEmailTemplateRenderErrorResponseTest.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 DeleteEmailTemplateRenderErrorResponse - */ -public class DeleteEmailTemplateRenderErrorResponseTest { - private final DeleteEmailTemplateRenderErrorResponse model = new DeleteEmailTemplateRenderErrorResponse(); - - /** - * Model tests for DeleteEmailTemplateRenderErrorResponse - */ - @Test - public void testDeleteEmailTemplateRenderErrorResponse() { - // TODO: test DeleteEmailTemplateRenderErrorResponse - } - - /** - * 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/DeleteEmailTemplateResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteEmailTemplateResponseTest.java deleted file mode 100644 index 32282758..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteEmailTemplateResponseTest.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 DeleteEmailTemplateResponse - */ -public class DeleteEmailTemplateResponseTest { - private final DeleteEmailTemplateResponse model = new DeleteEmailTemplateResponse(); - - /** - * Model tests for DeleteEmailTemplateResponse - */ - @Test - public void testDeleteEmailTemplateResponse() { - // TODO: test DeleteEmailTemplateResponse - } - - /** - * 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/DeleteFeedPostPublicResponseAnyOfTest.java b/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOfTest.java deleted file mode 100644 index db126ee5..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseAnyOfTest.java +++ /dev/null @@ -1,49 +0,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.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 DeleteFeedPostPublicResponseAnyOf - */ -public class DeleteFeedPostPublicResponseAnyOfTest { - private final DeleteFeedPostPublicResponseAnyOf model = new DeleteFeedPostPublicResponseAnyOf(); - - /** - * Model tests for DeleteFeedPostPublicResponseAnyOf - */ - @Test - public void testDeleteFeedPostPublicResponseAnyOf() { - // TODO: test DeleteFeedPostPublicResponseAnyOf - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - -} diff --git a/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java index 26c9142e..5257f9e1 100644 --- a/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/DeleteFeedPostPublicResponseTest.java @@ -13,10 +13,7 @@ package com.fastcomments.model; -import com.fastcomments.model.APIError; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.DeleteFeedPostPublicResponseAnyOf; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,60 +46,4 @@ 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/DeleteHashTagResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteHashTagResponseTest.java deleted file mode 100644 index fb8d90b3..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteHashTagResponseTest.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 DeleteHashTagResponse - */ -public class DeleteHashTagResponseTest { - private final DeleteHashTagResponse model = new DeleteHashTagResponse(); - - /** - * Model tests for DeleteHashTagResponse - */ - @Test - public void testDeleteHashTagResponse() { - // TODO: test DeleteHashTagResponse - } - - /** - * 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/DeleteModerationVoteResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteModerationVoteResponseTest.java deleted file mode 100644 index 704ad58e..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteModerationVoteResponseTest.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 DeleteModerationVoteResponse - */ -public class DeleteModerationVoteResponseTest { - private final DeleteModerationVoteResponse model = new DeleteModerationVoteResponse(); - - /** - * Model tests for DeleteModerationVoteResponse - */ - @Test - public void testDeleteModerationVoteResponse() { - // TODO: test DeleteModerationVoteResponse - } - - /** - * 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/DeleteModeratorResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteModeratorResponseTest.java deleted file mode 100644 index 2e88ca2a..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteModeratorResponseTest.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 DeleteModeratorResponse - */ -public class DeleteModeratorResponseTest { - private final DeleteModeratorResponse model = new DeleteModeratorResponse(); - - /** - * Model tests for DeleteModeratorResponse - */ - @Test - public void testDeleteModeratorResponse() { - // TODO: test DeleteModeratorResponse - } - - /** - * 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/DeleteNotificationCountResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteNotificationCountResponseTest.java deleted file mode 100644 index d04635c6..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteNotificationCountResponseTest.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 DeleteNotificationCountResponse - */ -public class DeleteNotificationCountResponseTest { - private final DeleteNotificationCountResponse model = new DeleteNotificationCountResponse(); - - /** - * Model tests for DeleteNotificationCountResponse - */ - @Test - public void testDeleteNotificationCountResponse() { - // TODO: test DeleteNotificationCountResponse - } - - /** - * 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/DeletePendingWebhookEventResponseTest.java b/client/src/test/java/com/fastcomments/model/DeletePendingWebhookEventResponseTest.java deleted file mode 100644 index f131906d..00000000 --- a/client/src/test/java/com/fastcomments/model/DeletePendingWebhookEventResponseTest.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 DeletePendingWebhookEventResponse - */ -public class DeletePendingWebhookEventResponseTest { - private final DeletePendingWebhookEventResponse model = new DeletePendingWebhookEventResponse(); - - /** - * Model tests for DeletePendingWebhookEventResponse - */ - @Test - public void testDeletePendingWebhookEventResponse() { - // TODO: test DeletePendingWebhookEventResponse - } - - /** - * 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/DeleteQuestionConfigResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteQuestionConfigResponseTest.java deleted file mode 100644 index 9d1c9517..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteQuestionConfigResponseTest.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 DeleteQuestionConfigResponse - */ -public class DeleteQuestionConfigResponseTest { - private final DeleteQuestionConfigResponse model = new DeleteQuestionConfigResponse(); - - /** - * Model tests for DeleteQuestionConfigResponse - */ - @Test - public void testDeleteQuestionConfigResponse() { - // TODO: test DeleteQuestionConfigResponse - } - - /** - * 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/DeleteQuestionResultResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteQuestionResultResponseTest.java deleted file mode 100644 index 0ccd9dcb..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteQuestionResultResponseTest.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 DeleteQuestionResultResponse - */ -public class DeleteQuestionResultResponseTest { - private final DeleteQuestionResultResponse model = new DeleteQuestionResultResponse(); - - /** - * Model tests for DeleteQuestionResultResponse - */ - @Test - public void testDeleteQuestionResultResponse() { - // TODO: test DeleteQuestionResultResponse - } - - /** - * 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/DeleteTenantPackageResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteTenantPackageResponseTest.java deleted file mode 100644 index 7c5161ff..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteTenantPackageResponseTest.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 DeleteTenantPackageResponse - */ -public class DeleteTenantPackageResponseTest { - private final DeleteTenantPackageResponse model = new DeleteTenantPackageResponse(); - - /** - * Model tests for DeleteTenantPackageResponse - */ - @Test - public void testDeleteTenantPackageResponse() { - // TODO: test DeleteTenantPackageResponse - } - - /** - * 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/DeleteTenantResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteTenantResponseTest.java deleted file mode 100644 index d4fcda14..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteTenantResponseTest.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 DeleteTenantResponse - */ -public class DeleteTenantResponseTest { - private final DeleteTenantResponse model = new DeleteTenantResponse(); - - /** - * Model tests for DeleteTenantResponse - */ - @Test - public void testDeleteTenantResponse() { - // TODO: test DeleteTenantResponse - } - - /** - * 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/DeleteTenantUserResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteTenantUserResponseTest.java deleted file mode 100644 index 68f1f7e9..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteTenantUserResponseTest.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 DeleteTenantUserResponse - */ -public class DeleteTenantUserResponseTest { - private final DeleteTenantUserResponse model = new DeleteTenantUserResponse(); - - /** - * Model tests for DeleteTenantUserResponse - */ - @Test - public void testDeleteTenantUserResponse() { - // TODO: test DeleteTenantUserResponse - } - - /** - * 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/DeleteUserBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteUserBadgeResponseTest.java deleted file mode 100644 index 731edb00..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteUserBadgeResponseTest.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 DeleteUserBadgeResponse - */ -public class DeleteUserBadgeResponseTest { - private final DeleteUserBadgeResponse model = new DeleteUserBadgeResponse(); - - /** - * Model tests for DeleteUserBadgeResponse - */ - @Test - public void testDeleteUserBadgeResponse() { - // TODO: test DeleteUserBadgeResponse - } - - /** - * 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/DeleteV1PageReactResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteV1PageReactResponseTest.java deleted file mode 100644 index 0a3527bf..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteV1PageReactResponseTest.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.CreateV1PageReact; -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 DeleteV1PageReactResponse - */ -public class DeleteV1PageReactResponseTest { - private final DeleteV1PageReactResponse model = new DeleteV1PageReactResponse(); - - /** - * Model tests for DeleteV1PageReactResponse - */ - @Test - public void testDeleteV1PageReactResponse() { - // TODO: test DeleteV1PageReactResponse - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * 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 '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/DeleteV2PageReactResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteV2PageReactResponseTest.java deleted file mode 100644 index 06bb704f..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteV2PageReactResponseTest.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.CreateV1PageReact; -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 DeleteV2PageReactResponse - */ -public class DeleteV2PageReactResponseTest { - private final DeleteV2PageReactResponse model = new DeleteV2PageReactResponse(); - - /** - * Model tests for DeleteV2PageReactResponse - */ - @Test - public void testDeleteV2PageReactResponse() { - // TODO: test DeleteV2PageReactResponse - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - - /** - * 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 '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/DeleteVoteResponseTest.java b/client/src/test/java/com/fastcomments/model/DeleteVoteResponseTest.java deleted file mode 100644 index e55cd70d..00000000 --- a/client/src/test/java/com/fastcomments/model/DeleteVoteResponseTest.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 DeleteVoteResponse - */ -public class DeleteVoteResponseTest { - private final DeleteVoteResponse model = new DeleteVoteResponse(); - - /** - * Model tests for DeleteVoteResponse - */ - @Test - public void testDeleteVoteResponse() { - // TODO: test DeleteVoteResponse - } - - /** - * 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/FlagCommentPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/FlagCommentPublicResponseTest.java deleted file mode 100644 index 9f7bd685..00000000 --- a/client/src/test/java/com/fastcomments/model/FlagCommentPublicResponseTest.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 FlagCommentPublicResponse - */ -public class FlagCommentPublicResponseTest { - private final FlagCommentPublicResponse model = new FlagCommentPublicResponse(); - - /** - * Model tests for FlagCommentPublicResponse - */ - @Test - public void testFlagCommentPublicResponse() { - // TODO: test FlagCommentPublicResponse - } - - /** - * 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/FlagCommentResponse1Test.java b/client/src/test/java/com/fastcomments/model/FlagCommentResponse1Test.java deleted file mode 100644 index c5ce412f..00000000 --- a/client/src/test/java/com/fastcomments/model/FlagCommentResponse1Test.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 FlagCommentResponse1 - */ -public class FlagCommentResponse1Test { - private final FlagCommentResponse1 model = new FlagCommentResponse1(); - - /** - * Model tests for FlagCommentResponse1 - */ - @Test - public void testFlagCommentResponse1() { - // TODO: test FlagCommentResponse1 - } - - /** - * 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/GetApiCommentsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetApiCommentsResponseTest.java deleted file mode 100644 index c24c56c8..00000000 --- a/client/src/test/java/com/fastcomments/model/GetApiCommentsResponseTest.java +++ /dev/null @@ -1,136 +0,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.ModerationAPIComment; -import com.fastcomments.model.ModerationAPIGetCommentsResponse; -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 GetApiCommentsResponse - */ -public class GetApiCommentsResponseTest { - private final GetApiCommentsResponse model = new GetApiCommentsResponse(); - - /** - * Model tests for GetApiCommentsResponse - */ - @Test - public void testGetApiCommentsResponse() { - // TODO: test GetApiCommentsResponse - } - - /** - * 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 - } - - /** - * 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/GetApiExportStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/GetApiExportStatusResponseTest.java deleted file mode 100644 index d91eabb1..00000000 --- a/client/src/test/java/com/fastcomments/model/GetApiExportStatusResponseTest.java +++ /dev/null @@ -1,132 +0,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.ModerationExportStatusResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetApiExportStatusResponse - */ -public class GetApiExportStatusResponseTest { - private final GetApiExportStatusResponse model = new GetApiExportStatusResponse(); - - /** - * Model tests for GetApiExportStatusResponse - */ - @Test - public void testGetApiExportStatusResponse() { - // TODO: test GetApiExportStatusResponse - } - - /** - * 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 - } - - /** - * 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/GetApiIdsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetApiIdsResponseTest.java deleted file mode 100644 index 026c7c07..00000000 --- a/client/src/test/java/com/fastcomments/model/GetApiIdsResponseTest.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.ModerationAPIGetCommentIdsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetApiIdsResponse - */ -public class GetApiIdsResponseTest { - private final GetApiIdsResponse model = new GetApiIdsResponse(); - - /** - * Model tests for GetApiIdsResponse - */ - @Test - public void testGetApiIdsResponse() { - // TODO: test GetApiIdsResponse - } - - /** - * 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 - } - - /** - * 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/GetAuditLogsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetAuditLogsResponse1Test.java deleted file mode 100644 index 21a1da79..00000000 --- a/client/src/test/java/com/fastcomments/model/GetAuditLogsResponse1Test.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 GetAuditLogsResponse1 - */ -public class GetAuditLogsResponse1Test { - private final GetAuditLogsResponse1 model = new GetAuditLogsResponse1(); - - /** - * Model tests for GetAuditLogsResponse1 - */ - @Test - public void testGetAuditLogsResponse1() { - // TODO: test GetAuditLogsResponse1 - } - - /** - * 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/GetBanUsersFromCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/GetBanUsersFromCommentResponseTest.java deleted file mode 100644 index c8d61873..00000000 --- a/client/src/test/java/com/fastcomments/model/GetBanUsersFromCommentResponseTest.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.APIBannedUserWithMultiMatchInfo; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.GetBannedUsersFromCommentResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetBanUsersFromCommentResponse - */ -public class GetBanUsersFromCommentResponseTest { - private final GetBanUsersFromCommentResponse model = new GetBanUsersFromCommentResponse(); - - /** - * Model tests for GetBanUsersFromCommentResponse - */ - @Test - public void testGetBanUsersFromCommentResponse() { - // TODO: test GetBanUsersFromCommentResponse - } - - /** - * 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 - } - - /** - * 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/GetCachedNotificationCountResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetCachedNotificationCountResponse1Test.java deleted file mode 100644 index aad3b09b..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCachedNotificationCountResponse1Test.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 GetCachedNotificationCountResponse1 - */ -public class GetCachedNotificationCountResponse1Test { - private final GetCachedNotificationCountResponse1 model = new GetCachedNotificationCountResponse1(); - - /** - * Model tests for GetCachedNotificationCountResponse1 - */ - @Test - public void testGetCachedNotificationCountResponse1() { - // TODO: test GetCachedNotificationCountResponse1 - } - - /** - * 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/GetCommentBanStatusResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetCommentBanStatusResponse1Test.java deleted file mode 100644 index f9799d03..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCommentBanStatusResponse1Test.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.GetCommentBanStatusResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetCommentBanStatusResponse1 - */ -public class GetCommentBanStatusResponse1Test { - private final GetCommentBanStatusResponse1 model = new GetCommentBanStatusResponse1(); - - /** - * Model tests for GetCommentBanStatusResponse1 - */ - @Test - public void testGetCommentBanStatusResponse1() { - // TODO: test GetCommentBanStatusResponse1 - } - - /** - * 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 - } - - /** - * 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/GetCommentChildrenResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentChildrenResponseTest.java deleted file mode 100644 index 466631e7..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCommentChildrenResponseTest.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.ModerationAPIChildCommentsResponse; -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 GetCommentChildrenResponse - */ -public class GetCommentChildrenResponseTest { - private final GetCommentChildrenResponse model = new GetCommentChildrenResponse(); - - /** - * Model tests for GetCommentChildrenResponse - */ - @Test - public void testGetCommentChildrenResponse() { - // TODO: test GetCommentChildrenResponse - } - - /** - * Test the property 'comments' - */ - @Test - public void commentsTest() { - // TODO: test comments - } - - /** - * 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/GetCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentResponseTest.java deleted file mode 100644 index 76e42c23..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCommentResponseTest.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 GetCommentResponse - */ -public class GetCommentResponseTest { - private final GetCommentResponse model = new GetCommentResponse(); - - /** - * Model tests for GetCommentResponse - */ - @Test - public void testGetCommentResponse() { - // TODO: test GetCommentResponse - } - - /** - * 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/GetCommentTextResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetCommentTextResponse1Test.java deleted file mode 100644 index b44b67b1..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCommentTextResponse1Test.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 GetCommentTextResponse1 - */ -public class GetCommentTextResponse1Test { - private final GetCommentTextResponse1 model = new GetCommentTextResponse1(); - - /** - * Model tests for GetCommentTextResponse1 - */ - @Test - public void testGetCommentTextResponse1() { - // TODO: test GetCommentTextResponse1 - } - - /** - * 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/GetCommentVoteUserNamesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentVoteUserNamesResponseTest.java deleted file mode 100644 index dc26beac..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCommentVoteUserNamesResponseTest.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 GetCommentVoteUserNamesResponse - */ -public class GetCommentVoteUserNamesResponseTest { - private final GetCommentVoteUserNamesResponse model = new GetCommentVoteUserNamesResponse(); - - /** - * Model tests for GetCommentVoteUserNamesResponse - */ - @Test - public void testGetCommentVoteUserNamesResponse() { - // TODO: test GetCommentVoteUserNamesResponse - } - - /** - * 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/GetCommentsForUserResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetCommentsForUserResponse1Test.java deleted file mode 100644 index 3e1333f0..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCommentsForUserResponse1Test.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.GetCommentsForUserResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetCommentsForUserResponse1 - */ -public class GetCommentsForUserResponse1Test { - private final GetCommentsForUserResponse1 model = new GetCommentsForUserResponse1(); - - /** - * Model tests for GetCommentsForUserResponse1 - */ - @Test - public void testGetCommentsForUserResponse1() { - // TODO: test GetCommentsForUserResponse1 - } - - /** - * Test the property 'moderatingTenantIds' - */ - @Test - public void moderatingTenantIdsTest() { - // TODO: test moderatingTenantIds - } - - /** - * 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/GetCommentsPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentsPublicResponseTest.java deleted file mode 100644 index c0a09a88..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCommentsPublicResponseTest.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 GetCommentsPublicResponse - */ -public class GetCommentsPublicResponseTest { - private final GetCommentsPublicResponse model = new GetCommentsPublicResponse(); - - /** - * Model tests for GetCommentsPublicResponse - */ - @Test - public void testGetCommentsPublicResponse() { - // TODO: test GetCommentsPublicResponse - } - - /** - * 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/GetCommentsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCommentsResponseTest.java deleted file mode 100644 index 54427995..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCommentsResponseTest.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 GetCommentsResponse - */ -public class GetCommentsResponseTest { - private final GetCommentsResponse model = new GetCommentsResponse(); - - /** - * Model tests for GetCommentsResponse - */ - @Test - public void testGetCommentsResponse() { - // TODO: test GetCommentsResponse - } - - /** - * 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/GetCountResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCountResponseTest.java deleted file mode 100644 index 97a6b12b..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCountResponseTest.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.ModerationAPICountCommentsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetCountResponse - */ -public class GetCountResponseTest { - private final GetCountResponse model = new GetCountResponse(); - - /** - * Model tests for GetCountResponse - */ - @Test - public void testGetCountResponse() { - // TODO: test GetCountResponse - } - - /** - * 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/GetCountsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetCountsResponseTest.java deleted file mode 100644 index 92bc542c..00000000 --- a/client/src/test/java/com/fastcomments/model/GetCountsResponseTest.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.GetBannedUsersCountResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetCountsResponse - */ -public class GetCountsResponseTest { - private final GetCountsResponse model = new GetCountsResponse(); - - /** - * Model tests for GetCountsResponse - */ - @Test - public void testGetCountsResponse() { - // TODO: test GetCountsResponse - } - - /** - * Test the property 'totalCount' - */ - @Test - public void totalCountTest() { - // TODO: test totalCount - } - - /** - * 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/GetEmailTemplateDefinitionsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1Test.java deleted file mode 100644 index 52139eaa..00000000 --- a/client/src/test/java/com/fastcomments/model/GetEmailTemplateDefinitionsResponse1Test.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 GetEmailTemplateDefinitionsResponse1 - */ -public class GetEmailTemplateDefinitionsResponse1Test { - private final GetEmailTemplateDefinitionsResponse1 model = new GetEmailTemplateDefinitionsResponse1(); - - /** - * Model tests for GetEmailTemplateDefinitionsResponse1 - */ - @Test - public void testGetEmailTemplateDefinitionsResponse1() { - // TODO: test GetEmailTemplateDefinitionsResponse1 - } - - /** - * 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/GetEmailTemplateRenderErrorsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1Test.java deleted file mode 100644 index f382dfbb..00000000 --- a/client/src/test/java/com/fastcomments/model/GetEmailTemplateRenderErrorsResponse1Test.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 GetEmailTemplateRenderErrorsResponse1 - */ -public class GetEmailTemplateRenderErrorsResponse1Test { - private final GetEmailTemplateRenderErrorsResponse1 model = new GetEmailTemplateRenderErrorsResponse1(); - - /** - * Model tests for GetEmailTemplateRenderErrorsResponse1 - */ - @Test - public void testGetEmailTemplateRenderErrorsResponse1() { - // TODO: test GetEmailTemplateRenderErrorsResponse1 - } - - /** - * 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/GetEmailTemplateResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplateResponse1Test.java deleted file mode 100644 index aac218b1..00000000 --- a/client/src/test/java/com/fastcomments/model/GetEmailTemplateResponse1Test.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 GetEmailTemplateResponse1 - */ -public class GetEmailTemplateResponse1Test { - private final GetEmailTemplateResponse1 model = new GetEmailTemplateResponse1(); - - /** - * Model tests for GetEmailTemplateResponse1 - */ - @Test - public void testGetEmailTemplateResponse1() { - // TODO: test GetEmailTemplateResponse1 - } - - /** - * 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/GetEmailTemplatesResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetEmailTemplatesResponse1Test.java deleted file mode 100644 index 8468172a..00000000 --- a/client/src/test/java/com/fastcomments/model/GetEmailTemplatesResponse1Test.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 GetEmailTemplatesResponse1 - */ -public class GetEmailTemplatesResponse1Test { - private final GetEmailTemplatesResponse1 model = new GetEmailTemplatesResponse1(); - - /** - * Model tests for GetEmailTemplatesResponse1 - */ - @Test - public void testGetEmailTemplatesResponse1() { - // TODO: test GetEmailTemplatesResponse1 - } - - /** - * 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/GetEventLogResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetEventLogResponse1Test.java deleted file mode 100644 index a4726491..00000000 --- a/client/src/test/java/com/fastcomments/model/GetEventLogResponse1Test.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 GetEventLogResponse1 - */ -public class GetEventLogResponse1Test { - private final GetEventLogResponse1 model = new GetEventLogResponse1(); - - /** - * Model tests for GetEventLogResponse1 - */ - @Test - public void testGetEventLogResponse1() { - // TODO: test GetEventLogResponse1 - } - - /** - * 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/GetFeedPostsPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/GetFeedPostsPublicResponseTest.java deleted file mode 100644 index 04cad375..00000000 --- a/client/src/test/java/com/fastcomments/model/GetFeedPostsPublicResponseTest.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 GetFeedPostsPublicResponse - */ -public class GetFeedPostsPublicResponseTest { - private final GetFeedPostsPublicResponse model = new GetFeedPostsPublicResponse(); - - /** - * Model tests for GetFeedPostsPublicResponse - */ - @Test - public void testGetFeedPostsPublicResponse() { - // TODO: test GetFeedPostsPublicResponse - } - - /** - * 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/GetFeedPostsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetFeedPostsResponse1Test.java deleted file mode 100644 index 92462b26..00000000 --- a/client/src/test/java/com/fastcomments/model/GetFeedPostsResponse1Test.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 GetFeedPostsResponse1 - */ -public class GetFeedPostsResponse1Test { - private final GetFeedPostsResponse1 model = new GetFeedPostsResponse1(); - - /** - * Model tests for GetFeedPostsResponse1 - */ - @Test - public void testGetFeedPostsResponse1() { - // TODO: test GetFeedPostsResponse1 - } - - /** - * 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/GetFeedPostsStatsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetFeedPostsStatsResponseTest.java deleted file mode 100644 index 04b40948..00000000 --- a/client/src/test/java/com/fastcomments/model/GetFeedPostsStatsResponseTest.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 GetFeedPostsStatsResponse - */ -public class GetFeedPostsStatsResponseTest { - private final GetFeedPostsStatsResponse model = new GetFeedPostsStatsResponse(); - - /** - * Model tests for GetFeedPostsStatsResponse - */ - @Test - public void testGetFeedPostsStatsResponse() { - // TODO: test GetFeedPostsStatsResponse - } - - /** - * 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/GetGifLargeResponseTest.java b/client/src/test/java/com/fastcomments/model/GetGifLargeResponseTest.java deleted file mode 100644 index a3db14f0..00000000 --- a/client/src/test/java/com/fastcomments/model/GetGifLargeResponseTest.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.GifGetLargeResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetGifLargeResponse - */ -public class GetGifLargeResponseTest { - private final GetGifLargeResponse model = new GetGifLargeResponse(); - - /** - * Model tests for GetGifLargeResponse - */ - @Test - public void testGetGifLargeResponse() { - // TODO: test GetGifLargeResponse - } - - /** - * Test the property 'src' - */ - @Test - public void srcTest() { - // TODO: test src - } - - /** - * 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/GetGifsSearchResponseTest.java b/client/src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java index 5061a2fe..08a299d5 100644 --- a/client/src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/GetGifsSearchResponseTest.java @@ -13,9 +13,7 @@ package com.fastcomments.model; -import com.fastcomments.model.APIError; import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; import com.fastcomments.model.GifSearchInternalError; import com.fastcomments.model.GifSearchResponse; import com.fastcomments.model.GifSearchResponseImagesInnerInner; @@ -69,52 +67,4 @@ 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/GetGlobalEventLogResponseTest.java b/client/src/test/java/com/fastcomments/model/GetGlobalEventLogResponseTest.java deleted file mode 100644 index 127ac7be..00000000 --- a/client/src/test/java/com/fastcomments/model/GetGlobalEventLogResponseTest.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 GetGlobalEventLogResponse - */ -public class GetGlobalEventLogResponseTest { - private final GetGlobalEventLogResponse model = new GetGlobalEventLogResponse(); - - /** - * Model tests for GetGlobalEventLogResponse - */ - @Test - public void testGetGlobalEventLogResponse() { - // TODO: test GetGlobalEventLogResponse - } - - /** - * 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/GetHashTagsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetHashTagsResponse1Test.java deleted file mode 100644 index 1078b400..00000000 --- a/client/src/test/java/com/fastcomments/model/GetHashTagsResponse1Test.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 GetHashTagsResponse1 - */ -public class GetHashTagsResponse1Test { - private final GetHashTagsResponse1 model = new GetHashTagsResponse1(); - - /** - * Model tests for GetHashTagsResponse1 - */ - @Test - public void testGetHashTagsResponse1() { - // TODO: test GetHashTagsResponse1 - } - - /** - * 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/GetLogsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetLogsResponseTest.java deleted file mode 100644 index c73c90d9..00000000 --- a/client/src/test/java/com/fastcomments/model/GetLogsResponseTest.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.ModerationAPICommentLog; -import com.fastcomments.model.ModerationAPIGetLogsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetLogsResponse - */ -public class GetLogsResponseTest { - private final GetLogsResponse model = new GetLogsResponse(); - - /** - * Model tests for GetLogsResponse - */ - @Test - public void testGetLogsResponse() { - // TODO: test GetLogsResponse - } - - /** - * Test the property 'logs' - */ - @Test - public void logsTest() { - // TODO: test logs - } - - /** - * 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/GetManualBadgesForUserResponseTest.java b/client/src/test/java/com/fastcomments/model/GetManualBadgesForUserResponseTest.java deleted file mode 100644 index 9f40078d..00000000 --- a/client/src/test/java/com/fastcomments/model/GetManualBadgesForUserResponseTest.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.GetUserManualBadgesResponse; -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 GetManualBadgesForUserResponse - */ -public class GetManualBadgesForUserResponseTest { - private final GetManualBadgesForUserResponse model = new GetManualBadgesForUserResponse(); - - /** - * Model tests for GetManualBadgesForUserResponse - */ - @Test - public void testGetManualBadgesForUserResponse() { - // TODO: test GetManualBadgesForUserResponse - } - - /** - * Test the property 'badges' - */ - @Test - public void badgesTest() { - // TODO: test badges - } - - /** - * 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/GetManualBadgesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetManualBadgesResponseTest.java deleted file mode 100644 index 9cc45899..00000000 --- a/client/src/test/java/com/fastcomments/model/GetManualBadgesResponseTest.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.GetTenantManualBadgesResponse; -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 GetManualBadgesResponse - */ -public class GetManualBadgesResponseTest { - private final GetManualBadgesResponse model = new GetManualBadgesResponse(); - - /** - * Model tests for GetManualBadgesResponse - */ - @Test - public void testGetManualBadgesResponse() { - // TODO: test GetManualBadgesResponse - } - - /** - * Test the property 'badges' - */ - @Test - public void badgesTest() { - // TODO: test badges - } - - /** - * 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/GetModerationCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/GetModerationCommentResponseTest.java deleted file mode 100644 index f1237ff4..00000000 --- a/client/src/test/java/com/fastcomments/model/GetModerationCommentResponseTest.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.ModerationAPIComment; -import com.fastcomments.model.ModerationAPICommentResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetModerationCommentResponse - */ -public class GetModerationCommentResponseTest { - private final GetModerationCommentResponse model = new GetModerationCommentResponse(); - - /** - * Model tests for GetModerationCommentResponse - */ - @Test - public void testGetModerationCommentResponse() { - // TODO: test GetModerationCommentResponse - } - - /** - * 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/GetModerationCommentTextResponseTest.java b/client/src/test/java/com/fastcomments/model/GetModerationCommentTextResponseTest.java deleted file mode 100644 index efee76ab..00000000 --- a/client/src/test/java/com/fastcomments/model/GetModerationCommentTextResponseTest.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.GetCommentTextResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetModerationCommentTextResponse - */ -public class GetModerationCommentTextResponseTest { - private final GetModerationCommentTextResponse model = new GetModerationCommentTextResponse(); - - /** - * Model tests for GetModerationCommentTextResponse - */ - @Test - public void testGetModerationCommentTextResponse() { - // TODO: test GetModerationCommentTextResponse - } - - /** - * 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/GetModeratorResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetModeratorResponse1Test.java deleted file mode 100644 index d2a6b98e..00000000 --- a/client/src/test/java/com/fastcomments/model/GetModeratorResponse1Test.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 GetModeratorResponse1 - */ -public class GetModeratorResponse1Test { - private final GetModeratorResponse1 model = new GetModeratorResponse1(); - - /** - * Model tests for GetModeratorResponse1 - */ - @Test - public void testGetModeratorResponse1() { - // TODO: test GetModeratorResponse1 - } - - /** - * 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/GetModeratorsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetModeratorsResponse1Test.java deleted file mode 100644 index 110cd489..00000000 --- a/client/src/test/java/com/fastcomments/model/GetModeratorsResponse1Test.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 GetModeratorsResponse1 - */ -public class GetModeratorsResponse1Test { - private final GetModeratorsResponse1 model = new GetModeratorsResponse1(); - - /** - * Model tests for GetModeratorsResponse1 - */ - @Test - public void testGetModeratorsResponse1() { - // TODO: test GetModeratorsResponse1 - } - - /** - * 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/GetNotificationCountResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetNotificationCountResponse1Test.java deleted file mode 100644 index 56aa6bf9..00000000 --- a/client/src/test/java/com/fastcomments/model/GetNotificationCountResponse1Test.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 GetNotificationCountResponse1 - */ -public class GetNotificationCountResponse1Test { - private final GetNotificationCountResponse1 model = new GetNotificationCountResponse1(); - - /** - * Model tests for GetNotificationCountResponse1 - */ - @Test - public void testGetNotificationCountResponse1() { - // TODO: test GetNotificationCountResponse1 - } - - /** - * 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/GetNotificationsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetNotificationsResponse1Test.java deleted file mode 100644 index 9af34873..00000000 --- a/client/src/test/java/com/fastcomments/model/GetNotificationsResponse1Test.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 GetNotificationsResponse1 - */ -public class GetNotificationsResponse1Test { - private final GetNotificationsResponse1 model = new GetNotificationsResponse1(); - - /** - * Model tests for GetNotificationsResponse1 - */ - @Test - public void testGetNotificationsResponse1() { - // TODO: test GetNotificationsResponse1 - } - - /** - * 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/GetOfflineUsersResponseTest.java b/client/src/test/java/com/fastcomments/model/GetOfflineUsersResponseTest.java deleted file mode 100644 index e632a27e..00000000 --- a/client/src/test/java/com/fastcomments/model/GetOfflineUsersResponseTest.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.PageUserEntry; -import com.fastcomments.model.PageUsersOfflineResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetOfflineUsersResponse - */ -public class GetOfflineUsersResponseTest { - private final GetOfflineUsersResponse model = new GetOfflineUsersResponse(); - - /** - * Model tests for GetOfflineUsersResponse - */ - @Test - public void testGetOfflineUsersResponse() { - // TODO: test GetOfflineUsersResponse - } - - /** - * 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 - } - - /** - * 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/GetOnlineUsersResponseTest.java b/client/src/test/java/com/fastcomments/model/GetOnlineUsersResponseTest.java deleted file mode 100644 index 39f12bc6..00000000 --- a/client/src/test/java/com/fastcomments/model/GetOnlineUsersResponseTest.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * Contact: support@fastcomments.com - * - * NOTE: This class is 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.PageUserEntry; -import com.fastcomments.model.PageUsersOnlineResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetOnlineUsersResponse - */ -public class GetOnlineUsersResponseTest { - private final GetOnlineUsersResponse model = new GetOnlineUsersResponse(); - - /** - * Model tests for GetOnlineUsersResponse - */ - @Test - public void testGetOnlineUsersResponse() { - // TODO: test GetOnlineUsersResponse - } - - /** - * 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 - } - - /** - * 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/GetPagesPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/GetPagesPublicResponseTest.java deleted file mode 100644 index 44ef2c6c..00000000 --- a/client/src/test/java/com/fastcomments/model/GetPagesPublicResponseTest.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.CustomConfigParameters; -import com.fastcomments.model.GetPublicPagesResponse; -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 GetPagesPublicResponse - */ -public class GetPagesPublicResponseTest { - private final GetPagesPublicResponse model = new GetPagesPublicResponse(); - - /** - * Model tests for GetPagesPublicResponse - */ - @Test - public void testGetPagesPublicResponse() { - // TODO: test GetPagesPublicResponse - } - - /** - * 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 - } - - /** - * 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/GetPendingWebhookEventCountResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1Test.java deleted file mode 100644 index 9c6ec337..00000000 --- a/client/src/test/java/com/fastcomments/model/GetPendingWebhookEventCountResponse1Test.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 GetPendingWebhookEventCountResponse1 - */ -public class GetPendingWebhookEventCountResponse1Test { - private final GetPendingWebhookEventCountResponse1 model = new GetPendingWebhookEventCountResponse1(); - - /** - * Model tests for GetPendingWebhookEventCountResponse1 - */ - @Test - public void testGetPendingWebhookEventCountResponse1() { - // TODO: test GetPendingWebhookEventCountResponse1 - } - - /** - * 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/GetPendingWebhookEventsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetPendingWebhookEventsResponse1Test.java deleted file mode 100644 index 5f7097f4..00000000 --- a/client/src/test/java/com/fastcomments/model/GetPendingWebhookEventsResponse1Test.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 GetPendingWebhookEventsResponse1 - */ -public class GetPendingWebhookEventsResponse1Test { - private final GetPendingWebhookEventsResponse1 model = new GetPendingWebhookEventsResponse1(); - - /** - * Model tests for GetPendingWebhookEventsResponse1 - */ - @Test - public void testGetPendingWebhookEventsResponse1() { - // TODO: test GetPendingWebhookEventsResponse1 - } - - /** - * 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/GetPreBanSummaryResponseTest.java b/client/src/test/java/com/fastcomments/model/GetPreBanSummaryResponseTest.java deleted file mode 100644 index 4d01367c..00000000 --- a/client/src/test/java/com/fastcomments/model/GetPreBanSummaryResponseTest.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.PreBanSummary; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetPreBanSummaryResponse - */ -public class GetPreBanSummaryResponseTest { - private final GetPreBanSummaryResponse model = new GetPreBanSummaryResponse(); - - /** - * Model tests for GetPreBanSummaryResponse - */ - @Test - public void testGetPreBanSummaryResponse() { - // TODO: test GetPreBanSummaryResponse - } - - /** - * 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 - } - - /** - * 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/GetQuestionConfigResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetQuestionConfigResponse1Test.java deleted file mode 100644 index c8bb89f2..00000000 --- a/client/src/test/java/com/fastcomments/model/GetQuestionConfigResponse1Test.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 GetQuestionConfigResponse1 - */ -public class GetQuestionConfigResponse1Test { - private final GetQuestionConfigResponse1 model = new GetQuestionConfigResponse1(); - - /** - * Model tests for GetQuestionConfigResponse1 - */ - @Test - public void testGetQuestionConfigResponse1() { - // TODO: test GetQuestionConfigResponse1 - } - - /** - * 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/GetQuestionConfigsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetQuestionConfigsResponse1Test.java deleted file mode 100644 index b2814d5e..00000000 --- a/client/src/test/java/com/fastcomments/model/GetQuestionConfigsResponse1Test.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 GetQuestionConfigsResponse1 - */ -public class GetQuestionConfigsResponse1Test { - private final GetQuestionConfigsResponse1 model = new GetQuestionConfigsResponse1(); - - /** - * Model tests for GetQuestionConfigsResponse1 - */ - @Test - public void testGetQuestionConfigsResponse1() { - // TODO: test GetQuestionConfigsResponse1 - } - - /** - * 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/GetQuestionResultResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetQuestionResultResponse1Test.java deleted file mode 100644 index 2d33d26a..00000000 --- a/client/src/test/java/com/fastcomments/model/GetQuestionResultResponse1Test.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 GetQuestionResultResponse1 - */ -public class GetQuestionResultResponse1Test { - private final GetQuestionResultResponse1 model = new GetQuestionResultResponse1(); - - /** - * Model tests for GetQuestionResultResponse1 - */ - @Test - public void testGetQuestionResultResponse1() { - // TODO: test GetQuestionResultResponse1 - } - - /** - * 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/GetQuestionResultsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetQuestionResultsResponse1Test.java deleted file mode 100644 index b4065700..00000000 --- a/client/src/test/java/com/fastcomments/model/GetQuestionResultsResponse1Test.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 GetQuestionResultsResponse1 - */ -public class GetQuestionResultsResponse1Test { - private final GetQuestionResultsResponse1 model = new GetQuestionResultsResponse1(); - - /** - * Model tests for GetQuestionResultsResponse1 - */ - @Test - public void testGetQuestionResultsResponse1() { - // TODO: test GetQuestionResultsResponse1 - } - - /** - * 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/GetSearchCommentsSummaryResponseTest.java b/client/src/test/java/com/fastcomments/model/GetSearchCommentsSummaryResponseTest.java deleted file mode 100644 index 67a71643..00000000 --- a/client/src/test/java/com/fastcomments/model/GetSearchCommentsSummaryResponseTest.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.ModerationCommentSearchResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetSearchCommentsSummaryResponse - */ -public class GetSearchCommentsSummaryResponseTest { - private final GetSearchCommentsSummaryResponse model = new GetSearchCommentsSummaryResponse(); - - /** - * Model tests for GetSearchCommentsSummaryResponse - */ - @Test - public void testGetSearchCommentsSummaryResponse() { - // TODO: test GetSearchCommentsSummaryResponse - } - - /** - * Test the property 'commentCount' - */ - @Test - public void commentCountTest() { - // TODO: test commentCount - } - - /** - * 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/GetSearchPagesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetSearchPagesResponseTest.java deleted file mode 100644 index 4ab3a37a..00000000 --- a/client/src/test/java/com/fastcomments/model/GetSearchPagesResponseTest.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.ModerationPageSearchProjected; -import com.fastcomments.model.ModerationPageSearchResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetSearchPagesResponse - */ -public class GetSearchPagesResponseTest { - private final GetSearchPagesResponse model = new GetSearchPagesResponse(); - - /** - * Model tests for GetSearchPagesResponse - */ - @Test - public void testGetSearchPagesResponse() { - // TODO: test GetSearchPagesResponse - } - - /** - * Test the property 'pages' - */ - @Test - public void pagesTest() { - // TODO: test pages - } - - /** - * 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/GetSearchSitesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetSearchSitesResponseTest.java deleted file mode 100644 index e89e183f..00000000 --- a/client/src/test/java/com/fastcomments/model/GetSearchSitesResponseTest.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.ModerationSiteSearchProjected; -import com.fastcomments.model.ModerationSiteSearchResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetSearchSitesResponse - */ -public class GetSearchSitesResponseTest { - private final GetSearchSitesResponse model = new GetSearchSitesResponse(); - - /** - * Model tests for GetSearchSitesResponse - */ - @Test - public void testGetSearchSitesResponse() { - // TODO: test GetSearchSitesResponse - } - - /** - * Test the property 'sites' - */ - @Test - public void sitesTest() { - // TODO: test sites - } - - /** - * 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/GetSearchSuggestResponseTest.java b/client/src/test/java/com/fastcomments/model/GetSearchSuggestResponseTest.java deleted file mode 100644 index 43326fe0..00000000 --- a/client/src/test/java/com/fastcomments/model/GetSearchSuggestResponseTest.java +++ /dev/null @@ -1,128 +0,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.ModerationPageSearchProjected; -import com.fastcomments.model.ModerationSuggestResponse; -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 GetSearchSuggestResponse - */ -public class GetSearchSuggestResponseTest { - private final GetSearchSuggestResponse model = new GetSearchSuggestResponse(); - - /** - * Model tests for GetSearchSuggestResponse - */ - @Test - public void testGetSearchSuggestResponse() { - // TODO: test GetSearchSuggestResponse - } - - /** - * 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 - } - - /** - * 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/GetSearchUsersResponseTest.java b/client/src/test/java/com/fastcomments/model/GetSearchUsersResponseTest.java deleted file mode 100644 index 6ac74dac..00000000 --- a/client/src/test/java/com/fastcomments/model/GetSearchUsersResponseTest.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.ModerationUserSearchProjected; -import com.fastcomments.model.ModerationUserSearchResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetSearchUsersResponse - */ -public class GetSearchUsersResponseTest { - private final GetSearchUsersResponse model = new GetSearchUsersResponse(); - - /** - * Model tests for GetSearchUsersResponse - */ - @Test - public void testGetSearchUsersResponse() { - // TODO: test GetSearchUsersResponse - } - - /** - * Test the property 'users' - */ - @Test - public void usersTest() { - // TODO: test users - } - - /** - * 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/GetTenantDailyUsagesResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantDailyUsagesResponse1Test.java deleted file mode 100644 index 6334f41c..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantDailyUsagesResponse1Test.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 GetTenantDailyUsagesResponse1 - */ -public class GetTenantDailyUsagesResponse1Test { - private final GetTenantDailyUsagesResponse1 model = new GetTenantDailyUsagesResponse1(); - - /** - * Model tests for GetTenantDailyUsagesResponse1 - */ - @Test - public void testGetTenantDailyUsagesResponse1() { - // TODO: test GetTenantDailyUsagesResponse1 - } - - /** - * 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/GetTenantPackageResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantPackageResponse1Test.java deleted file mode 100644 index 2061a576..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantPackageResponse1Test.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 GetTenantPackageResponse1 - */ -public class GetTenantPackageResponse1Test { - private final GetTenantPackageResponse1 model = new GetTenantPackageResponse1(); - - /** - * Model tests for GetTenantPackageResponse1 - */ - @Test - public void testGetTenantPackageResponse1() { - // TODO: test GetTenantPackageResponse1 - } - - /** - * 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/GetTenantPackagesResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantPackagesResponse1Test.java deleted file mode 100644 index fd3be3ac..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantPackagesResponse1Test.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 GetTenantPackagesResponse1 - */ -public class GetTenantPackagesResponse1Test { - private final GetTenantPackagesResponse1 model = new GetTenantPackagesResponse1(); - - /** - * Model tests for GetTenantPackagesResponse1 - */ - @Test - public void testGetTenantPackagesResponse1() { - // TODO: test GetTenantPackagesResponse1 - } - - /** - * 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/GetTenantResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantResponse1Test.java deleted file mode 100644 index 5b21a5c8..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantResponse1Test.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 GetTenantResponse1 - */ -public class GetTenantResponse1Test { - private final GetTenantResponse1 model = new GetTenantResponse1(); - - /** - * Model tests for GetTenantResponse1 - */ - @Test - public void testGetTenantResponse1() { - // TODO: test GetTenantResponse1 - } - - /** - * 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/GetTenantUserResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantUserResponse1Test.java deleted file mode 100644 index c6198429..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantUserResponse1Test.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 GetTenantUserResponse1 - */ -public class GetTenantUserResponse1Test { - private final GetTenantUserResponse1 model = new GetTenantUserResponse1(); - - /** - * Model tests for GetTenantUserResponse1 - */ - @Test - public void testGetTenantUserResponse1() { - // TODO: test GetTenantUserResponse1 - } - - /** - * 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/GetTenantUsersResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantUsersResponse1Test.java deleted file mode 100644 index f5d77845..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantUsersResponse1Test.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 GetTenantUsersResponse1 - */ -public class GetTenantUsersResponse1Test { - private final GetTenantUsersResponse1 model = new GetTenantUsersResponse1(); - - /** - * Model tests for GetTenantUsersResponse1 - */ - @Test - public void testGetTenantUsersResponse1() { - // TODO: test GetTenantUsersResponse1 - } - - /** - * 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/GetTenantsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTenantsResponse1Test.java deleted file mode 100644 index dee92d1d..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTenantsResponse1Test.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 GetTenantsResponse1 - */ -public class GetTenantsResponse1Test { - private final GetTenantsResponse1 model = new GetTenantsResponse1(); - - /** - * Model tests for GetTenantsResponse1 - */ - @Test - public void testGetTenantsResponse1() { - // TODO: test GetTenantsResponse1 - } - - /** - * 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/GetTicketResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTicketResponse1Test.java deleted file mode 100644 index 1e1295ac..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTicketResponse1Test.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 GetTicketResponse1 - */ -public class GetTicketResponse1Test { - private final GetTicketResponse1 model = new GetTicketResponse1(); - - /** - * Model tests for GetTicketResponse1 - */ - @Test - public void testGetTicketResponse1() { - // TODO: test GetTicketResponse1 - } - - /** - * 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/GetTicketsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTicketsResponse1Test.java deleted file mode 100644 index bfb20e37..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTicketsResponse1Test.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 GetTicketsResponse1 - */ -public class GetTicketsResponse1Test { - private final GetTicketsResponse1 model = new GetTicketsResponse1(); - - /** - * Model tests for GetTicketsResponse1 - */ - @Test - public void testGetTicketsResponse1() { - // TODO: test GetTicketsResponse1 - } - - /** - * 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/GetTranslationsResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetTranslationsResponse1Test.java deleted file mode 100644 index 54bf0372..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTranslationsResponse1Test.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.GetTranslationsResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetTranslationsResponse1 - */ -public class GetTranslationsResponse1Test { - private final GetTranslationsResponse1 model = new GetTranslationsResponse1(); - - /** - * Model tests for GetTranslationsResponse1 - */ - @Test - public void testGetTranslationsResponse1() { - // TODO: test GetTranslationsResponse1 - } - - /** - * Test the property 'translations' - */ - @Test - public void translationsTest() { - // TODO: test translations - } - - /** - * 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/GetTrustFactorResponseTest.java b/client/src/test/java/com/fastcomments/model/GetTrustFactorResponseTest.java deleted file mode 100644 index 0baa0905..00000000 --- a/client/src/test/java/com/fastcomments/model/GetTrustFactorResponseTest.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.GetUserTrustFactorResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetTrustFactorResponse - */ -public class GetTrustFactorResponseTest { - private final GetTrustFactorResponse model = new GetTrustFactorResponse(); - - /** - * Model tests for GetTrustFactorResponse - */ - @Test - public void testGetTrustFactorResponse() { - // TODO: test GetTrustFactorResponse - } - - /** - * 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 - } - - /** - * 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/GetUserBadgeProgressByIdResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByIdResponseTest.java deleted file mode 100644 index d0288855..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByIdResponseTest.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 GetUserBadgeProgressByIdResponse - */ -public class GetUserBadgeProgressByIdResponseTest { - private final GetUserBadgeProgressByIdResponse model = new GetUserBadgeProgressByIdResponse(); - - /** - * Model tests for GetUserBadgeProgressByIdResponse - */ - @Test - public void testGetUserBadgeProgressByIdResponse() { - // TODO: test GetUserBadgeProgressByIdResponse - } - - /** - * 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/GetUserBadgeProgressByUserIdResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponseTest.java deleted file mode 100644 index 1ff64dd2..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressByUserIdResponseTest.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 GetUserBadgeProgressByUserIdResponse - */ -public class GetUserBadgeProgressByUserIdResponseTest { - private final GetUserBadgeProgressByUserIdResponse model = new GetUserBadgeProgressByUserIdResponse(); - - /** - * Model tests for GetUserBadgeProgressByUserIdResponse - */ - @Test - public void testGetUserBadgeProgressByUserIdResponse() { - // TODO: test GetUserBadgeProgressByUserIdResponse - } - - /** - * 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/GetUserBadgeProgressListResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressListResponseTest.java deleted file mode 100644 index 6f91cdf2..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserBadgeProgressListResponseTest.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 GetUserBadgeProgressListResponse - */ -public class GetUserBadgeProgressListResponseTest { - private final GetUserBadgeProgressListResponse model = new GetUserBadgeProgressListResponse(); - - /** - * Model tests for GetUserBadgeProgressListResponse - */ - @Test - public void testGetUserBadgeProgressListResponse() { - // TODO: test GetUserBadgeProgressListResponse - } - - /** - * 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/GetUserBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgeResponseTest.java deleted file mode 100644 index 66bd4244..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserBadgeResponseTest.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 GetUserBadgeResponse - */ -public class GetUserBadgeResponseTest { - private final GetUserBadgeResponse model = new GetUserBadgeResponse(); - - /** - * Model tests for GetUserBadgeResponse - */ - @Test - public void testGetUserBadgeResponse() { - // TODO: test GetUserBadgeResponse - } - - /** - * 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/GetUserBadgesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBadgesResponseTest.java deleted file mode 100644 index fda21ebc..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserBadgesResponseTest.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 GetUserBadgesResponse - */ -public class GetUserBadgesResponseTest { - private final GetUserBadgesResponse model = new GetUserBadgesResponse(); - - /** - * Model tests for GetUserBadgesResponse - */ - @Test - public void testGetUserBadgesResponse() { - // TODO: test GetUserBadgesResponse - } - - /** - * 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/GetUserBanPreferenceResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserBanPreferenceResponseTest.java deleted file mode 100644 index 800bc98e..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserBanPreferenceResponseTest.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.APIModerateGetUserBanPreferencesResponse; -import com.fastcomments.model.APIModerateUserBanPreferences; -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 GetUserBanPreferenceResponse - */ -public class GetUserBanPreferenceResponseTest { - private final GetUserBanPreferenceResponse model = new GetUserBanPreferenceResponse(); - - /** - * Model tests for GetUserBanPreferenceResponse - */ - @Test - public void testGetUserBanPreferenceResponse() { - // TODO: test GetUserBanPreferenceResponse - } - - /** - * Test the property 'preferences' - */ - @Test - public void preferencesTest() { - // TODO: test preferences - } - - /** - * 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/GetUserInternalProfileResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponse1Test.java deleted file mode 100644 index f6b4cefd..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserInternalProfileResponse1Test.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.GetUserInternalProfileResponse; -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 GetUserInternalProfileResponse1 - */ -public class GetUserInternalProfileResponse1Test { - private final GetUserInternalProfileResponse1 model = new GetUserInternalProfileResponse1(); - - /** - * Model tests for GetUserInternalProfileResponse1 - */ - @Test - public void testGetUserInternalProfileResponse1() { - // TODO: test GetUserInternalProfileResponse1 - } - - /** - * Test the property 'profile' - */ - @Test - public void profileTest() { - // TODO: test profile - } - - /** - * 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/GetUserNotificationCountResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetUserNotificationCountResponse1Test.java deleted file mode 100644 index 7df7b838..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserNotificationCountResponse1Test.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 GetUserNotificationCountResponse1 - */ -public class GetUserNotificationCountResponse1Test { - private final GetUserNotificationCountResponse1 model = new GetUserNotificationCountResponse1(); - - /** - * Model tests for GetUserNotificationCountResponse1 - */ - @Test - public void testGetUserNotificationCountResponse1() { - // TODO: test GetUserNotificationCountResponse1 - } - - /** - * 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/GetUserNotificationsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserNotificationsResponseTest.java deleted file mode 100644 index 229f2165..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserNotificationsResponseTest.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 GetUserNotificationsResponse - */ -public class GetUserNotificationsResponseTest { - private final GetUserNotificationsResponse model = new GetUserNotificationsResponse(); - - /** - * Model tests for GetUserNotificationsResponse - */ - @Test - public void testGetUserNotificationsResponse() { - // TODO: test GetUserNotificationsResponse - } - - /** - * 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/GetUserPresenceStatusesResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetUserPresenceStatusesResponse1Test.java deleted file mode 100644 index c6917ddd..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserPresenceStatusesResponse1Test.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 GetUserPresenceStatusesResponse1 - */ -public class GetUserPresenceStatusesResponse1Test { - private final GetUserPresenceStatusesResponse1 model = new GetUserPresenceStatusesResponse1(); - - /** - * Model tests for GetUserPresenceStatusesResponse1 - */ - @Test - public void testGetUserPresenceStatusesResponse1() { - // TODO: test GetUserPresenceStatusesResponse1 - } - - /** - * 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/GetUserReactsPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUserReactsPublicResponseTest.java deleted file mode 100644 index b99f24a2..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserReactsPublicResponseTest.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 GetUserReactsPublicResponse - */ -public class GetUserReactsPublicResponseTest { - private final GetUserReactsPublicResponse model = new GetUserReactsPublicResponse(); - - /** - * Model tests for GetUserReactsPublicResponse - */ - @Test - public void testGetUserReactsPublicResponse() { - // TODO: test GetUserReactsPublicResponse - } - - /** - * 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/GetUserResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetUserResponse1Test.java deleted file mode 100644 index 5c646033..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUserResponse1Test.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 GetUserResponse1 - */ -public class GetUserResponse1Test { - private final GetUserResponse1 model = new GetUserResponse1(); - - /** - * Model tests for GetUserResponse1 - */ - @Test - public void testGetUserResponse1() { - // TODO: test GetUserResponse1 - } - - /** - * 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/GetUsersInfoResponseTest.java b/client/src/test/java/com/fastcomments/model/GetUsersInfoResponseTest.java deleted file mode 100644 index 4b0fa3d4..00000000 --- a/client/src/test/java/com/fastcomments/model/GetUsersInfoResponseTest.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.PageUserEntry; -import com.fastcomments.model.PageUsersInfoResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetUsersInfoResponse - */ -public class GetUsersInfoResponseTest { - private final GetUsersInfoResponse model = new GetUsersInfoResponse(); - - /** - * Model tests for GetUsersInfoResponse - */ - @Test - public void testGetUsersInfoResponse() { - // TODO: test GetUsersInfoResponse - } - - /** - * Test the property 'users' - */ - @Test - public void usersTest() { - // TODO: test users - } - - /** - * 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/GetV1PageLikesResponseTest.java b/client/src/test/java/com/fastcomments/model/GetV1PageLikesResponseTest.java deleted file mode 100644 index 57e7465a..00000000 --- a/client/src/test/java/com/fastcomments/model/GetV1PageLikesResponseTest.java +++ /dev/null @@ -1,140 +0,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.GetV1PageLikes; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetV1PageLikesResponse - */ -public class GetV1PageLikesResponseTest { - private final GetV1PageLikesResponse model = new GetV1PageLikesResponse(); - - /** - * Model tests for GetV1PageLikesResponse - */ - @Test - public void testGetV1PageLikesResponse() { - // TODO: test GetV1PageLikesResponse - } - - /** - * 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 - } - - /** - * 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/GetV2PageReactUsersResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetV2PageReactUsersResponse1Test.java deleted file mode 100644 index 90d7f7ff..00000000 --- a/client/src/test/java/com/fastcomments/model/GetV2PageReactUsersResponse1Test.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.GetV2PageReactUsersResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetV2PageReactUsersResponse1 - */ -public class GetV2PageReactUsersResponse1Test { - private final GetV2PageReactUsersResponse1 model = new GetV2PageReactUsersResponse1(); - - /** - * Model tests for GetV2PageReactUsersResponse1 - */ - @Test - public void testGetV2PageReactUsersResponse1() { - // TODO: test GetV2PageReactUsersResponse1 - } - - /** - * Test the property 'userNames' - */ - @Test - public void userNamesTest() { - // TODO: test userNames - } - - /** - * 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/GetV2PageReactsResponseTest.java b/client/src/test/java/com/fastcomments/model/GetV2PageReactsResponseTest.java deleted file mode 100644 index 79a776a0..00000000 --- a/client/src/test/java/com/fastcomments/model/GetV2PageReactsResponseTest.java +++ /dev/null @@ -1,128 +0,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.GetV2PageReacts; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 GetV2PageReactsResponse - */ -public class GetV2PageReactsResponseTest { - private final GetV2PageReactsResponse model = new GetV2PageReactsResponse(); - - /** - * Model tests for GetV2PageReactsResponse - */ - @Test - public void testGetV2PageReactsResponse() { - // TODO: test GetV2PageReactsResponse - } - - /** - * 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 - } - - /** - * 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/GetVotesForUserResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetVotesForUserResponse1Test.java deleted file mode 100644 index 363a816a..00000000 --- a/client/src/test/java/com/fastcomments/model/GetVotesForUserResponse1Test.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 GetVotesForUserResponse1 - */ -public class GetVotesForUserResponse1Test { - private final GetVotesForUserResponse1 model = new GetVotesForUserResponse1(); - - /** - * Model tests for GetVotesForUserResponse1 - */ - @Test - public void testGetVotesForUserResponse1() { - // TODO: test GetVotesForUserResponse1 - } - - /** - * 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/GetVotesResponse1Test.java b/client/src/test/java/com/fastcomments/model/GetVotesResponse1Test.java deleted file mode 100644 index 084c0df3..00000000 --- a/client/src/test/java/com/fastcomments/model/GetVotesResponse1Test.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 GetVotesResponse1 - */ -public class GetVotesResponse1Test { - private final GetVotesResponse1 model = new GetVotesResponse1(); - - /** - * Model tests for GetVotesResponse1 - */ - @Test - public void testGetVotesResponse1() { - // TODO: test GetVotesResponse1 - } - - /** - * 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/LockCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/LockCommentResponseTest.java deleted file mode 100644 index 28efb84d..00000000 --- a/client/src/test/java/com/fastcomments/model/LockCommentResponseTest.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 LockCommentResponse - */ -public class LockCommentResponseTest { - private final LockCommentResponse model = new LockCommentResponse(); - - /** - * Model tests for LockCommentResponse - */ - @Test - public void testLockCommentResponse() { - // TODO: test LockCommentResponse - } - - /** - * 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/PatchHashTagResponseTest.java b/client/src/test/java/com/fastcomments/model/PatchHashTagResponseTest.java deleted file mode 100644 index cf252df7..00000000 --- a/client/src/test/java/com/fastcomments/model/PatchHashTagResponseTest.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 PatchHashTagResponse - */ -public class PatchHashTagResponseTest { - private final PatchHashTagResponse model = new PatchHashTagResponse(); - - /** - * Model tests for PatchHashTagResponse - */ - @Test - public void testPatchHashTagResponse() { - // TODO: test PatchHashTagResponse - } - - /** - * 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/PinCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PinCommentResponseTest.java deleted file mode 100644 index d5321645..00000000 --- a/client/src/test/java/com/fastcomments/model/PinCommentResponseTest.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 PinCommentResponse - */ -public class PinCommentResponseTest { - private final PinCommentResponse model = new PinCommentResponse(); - - /** - * Model tests for PinCommentResponse - */ - @Test - public void testPinCommentResponse() { - // TODO: test PinCommentResponse - } - - /** - * 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/PostAdjustCommentVotesResponseTest.java b/client/src/test/java/com/fastcomments/model/PostAdjustCommentVotesResponseTest.java deleted file mode 100644 index c1400acb..00000000 --- a/client/src/test/java/com/fastcomments/model/PostAdjustCommentVotesResponseTest.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.AdjustVotesResponse; -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 PostAdjustCommentVotesResponse - */ -public class PostAdjustCommentVotesResponseTest { - private final PostAdjustCommentVotesResponse model = new PostAdjustCommentVotesResponse(); - - /** - * Model tests for PostAdjustCommentVotesResponse - */ - @Test - public void testPostAdjustCommentVotesResponse() { - // TODO: test PostAdjustCommentVotesResponse - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'newCommentVotes' - */ - @Test - public void newCommentVotesTest() { - // TODO: test newCommentVotes - } - - /** - * 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/PostApiExportResponseTest.java b/client/src/test/java/com/fastcomments/model/PostApiExportResponseTest.java deleted file mode 100644 index 5191e4cb..00000000 --- a/client/src/test/java/com/fastcomments/model/PostApiExportResponseTest.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.ModerationExportResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 PostApiExportResponse - */ -public class PostApiExportResponseTest { - private final PostApiExportResponse model = new PostApiExportResponse(); - - /** - * Model tests for PostApiExportResponse - */ - @Test - public void testPostApiExportResponse() { - // TODO: test PostApiExportResponse - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'batchJobId' - */ - @Test - public void batchJobIdTest() { - // TODO: test batchJobId - } - - /** - * 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/PostBanUserFromCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PostBanUserFromCommentResponseTest.java deleted file mode 100644 index bd00b157..00000000 --- a/client/src/test/java/com/fastcomments/model/PostBanUserFromCommentResponseTest.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.APIBanUserChangeLog; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.BanUserFromCommentResult; -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 PostBanUserFromCommentResponse - */ -public class PostBanUserFromCommentResponseTest { - private final PostBanUserFromCommentResponse model = new PostBanUserFromCommentResponse(); - - /** - * Model tests for PostBanUserFromCommentResponse - */ - @Test - public void testPostBanUserFromCommentResponse() { - // TODO: test PostBanUserFromCommentResponse - } - - /** - * 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 - } - - /** - * 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/PostBanUserUndoResponseTest.java b/client/src/test/java/com/fastcomments/model/PostBanUserUndoResponseTest.java deleted file mode 100644 index adde83f4..00000000 --- a/client/src/test/java/com/fastcomments/model/PostBanUserUndoResponseTest.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 PostBanUserUndoResponse - */ -public class PostBanUserUndoResponseTest { - private final PostBanUserUndoResponse model = new PostBanUserUndoResponse(); - - /** - * Model tests for PostBanUserUndoResponse - */ - @Test - public void testPostBanUserUndoResponse() { - // TODO: test PostBanUserUndoResponse - } - - /** - * 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/PostBulkPreBanSummaryResponseTest.java b/client/src/test/java/com/fastcomments/model/PostBulkPreBanSummaryResponseTest.java deleted file mode 100644 index fa505b49..00000000 --- a/client/src/test/java/com/fastcomments/model/PostBulkPreBanSummaryResponseTest.java +++ /dev/null @@ -1,150 +0,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.BulkPreBanSummary; -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 PostBulkPreBanSummaryResponse - */ -public class PostBulkPreBanSummaryResponseTest { - private final PostBulkPreBanSummaryResponse model = new PostBulkPreBanSummaryResponse(); - - /** - * Model tests for PostBulkPreBanSummaryResponse - */ - @Test - public void testPostBulkPreBanSummaryResponse() { - // TODO: test PostBulkPreBanSummaryResponse - } - - /** - * 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 - } - - /** - * 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/PostCommentsByIdsResponseTest.java b/client/src/test/java/com/fastcomments/model/PostCommentsByIdsResponseTest.java deleted file mode 100644 index 69afa8c6..00000000 --- a/client/src/test/java/com/fastcomments/model/PostCommentsByIdsResponseTest.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.ModerationAPIChildCommentsResponse; -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 PostCommentsByIdsResponse - */ -public class PostCommentsByIdsResponseTest { - private final PostCommentsByIdsResponse model = new PostCommentsByIdsResponse(); - - /** - * Model tests for PostCommentsByIdsResponse - */ - @Test - public void testPostCommentsByIdsResponse() { - // TODO: test PostCommentsByIdsResponse - } - - /** - * Test the property 'comments' - */ - @Test - public void commentsTest() { - // TODO: test comments - } - - /** - * 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/PostFlagCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PostFlagCommentResponseTest.java deleted file mode 100644 index 31d07f1f..00000000 --- a/client/src/test/java/com/fastcomments/model/PostFlagCommentResponseTest.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 PostFlagCommentResponse - */ -public class PostFlagCommentResponseTest { - private final PostFlagCommentResponse model = new PostFlagCommentResponse(); - - /** - * Model tests for PostFlagCommentResponse - */ - @Test - public void testPostFlagCommentResponse() { - // TODO: test PostFlagCommentResponse - } - - /** - * 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 index 4dd7ab26..dba61c87 100644 --- a/client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java @@ -13,9 +13,6 @@ package com.fastcomments.model; -import com.fastcomments.model.APIError; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; import com.fastcomments.model.DeleteCommentResult; import com.fastcomments.model.RemoveCommentActionResponse; import com.google.gson.TypeAdapter; @@ -58,60 +55,4 @@ 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/PostRestoreDeletedCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PostRestoreDeletedCommentResponseTest.java deleted file mode 100644 index ad005683..00000000 --- a/client/src/test/java/com/fastcomments/model/PostRestoreDeletedCommentResponseTest.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 PostRestoreDeletedCommentResponse - */ -public class PostRestoreDeletedCommentResponseTest { - private final PostRestoreDeletedCommentResponse model = new PostRestoreDeletedCommentResponse(); - - /** - * Model tests for PostRestoreDeletedCommentResponse - */ - @Test - public void testPostRestoreDeletedCommentResponse() { - // TODO: test PostRestoreDeletedCommentResponse - } - - /** - * 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/PostSetCommentApprovalStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/PostSetCommentApprovalStatusResponseTest.java deleted file mode 100644 index e8ef5405..00000000 --- a/client/src/test/java/com/fastcomments/model/PostSetCommentApprovalStatusResponseTest.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.SetCommentApprovedResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 PostSetCommentApprovalStatusResponse - */ -public class PostSetCommentApprovalStatusResponseTest { - private final PostSetCommentApprovalStatusResponse model = new PostSetCommentApprovalStatusResponse(); - - /** - * Model tests for PostSetCommentApprovalStatusResponse - */ - @Test - public void testPostSetCommentApprovalStatusResponse() { - // TODO: test PostSetCommentApprovalStatusResponse - } - - /** - * Test the property 'didResetFlaggedCount' - */ - @Test - public void didResetFlaggedCountTest() { - // TODO: test didResetFlaggedCount - } - - /** - * 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/PostSetCommentReviewStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/PostSetCommentReviewStatusResponseTest.java deleted file mode 100644 index ffa5274b..00000000 --- a/client/src/test/java/com/fastcomments/model/PostSetCommentReviewStatusResponseTest.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 PostSetCommentReviewStatusResponse - */ -public class PostSetCommentReviewStatusResponseTest { - private final PostSetCommentReviewStatusResponse model = new PostSetCommentReviewStatusResponse(); - - /** - * Model tests for PostSetCommentReviewStatusResponse - */ - @Test - public void testPostSetCommentReviewStatusResponse() { - // TODO: test PostSetCommentReviewStatusResponse - } - - /** - * 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/PostSetCommentSpamStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/PostSetCommentSpamStatusResponseTest.java deleted file mode 100644 index da5237fb..00000000 --- a/client/src/test/java/com/fastcomments/model/PostSetCommentSpamStatusResponseTest.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 PostSetCommentSpamStatusResponse - */ -public class PostSetCommentSpamStatusResponseTest { - private final PostSetCommentSpamStatusResponse model = new PostSetCommentSpamStatusResponse(); - - /** - * Model tests for PostSetCommentSpamStatusResponse - */ - @Test - public void testPostSetCommentSpamStatusResponse() { - // TODO: test PostSetCommentSpamStatusResponse - } - - /** - * 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/PostSetCommentTextResponseTest.java b/client/src/test/java/com/fastcomments/model/PostSetCommentTextResponseTest.java deleted file mode 100644 index 156cf0b1..00000000 --- a/client/src/test/java/com/fastcomments/model/PostSetCommentTextResponseTest.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.SetCommentTextResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 PostSetCommentTextResponse - */ -public class PostSetCommentTextResponseTest { - private final PostSetCommentTextResponse model = new PostSetCommentTextResponse(); - - /** - * Model tests for PostSetCommentTextResponse - */ - @Test - public void testPostSetCommentTextResponse() { - // TODO: test PostSetCommentTextResponse - } - - /** - * Test the property 'newCommentTextHTML' - */ - @Test - public void newCommentTextHTMLTest() { - // TODO: test newCommentTextHTML - } - - /** - * 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/PostUnFlagCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PostUnFlagCommentResponseTest.java deleted file mode 100644 index 8b56150d..00000000 --- a/client/src/test/java/com/fastcomments/model/PostUnFlagCommentResponseTest.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 PostUnFlagCommentResponse - */ -public class PostUnFlagCommentResponseTest { - private final PostUnFlagCommentResponse model = new PostUnFlagCommentResponse(); - - /** - * Model tests for PostUnFlagCommentResponse - */ - @Test - public void testPostUnFlagCommentResponse() { - // TODO: test PostUnFlagCommentResponse - } - - /** - * 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/PostVoteResponseTest.java b/client/src/test/java/com/fastcomments/model/PostVoteResponseTest.java deleted file mode 100644 index 2def301a..00000000 --- a/client/src/test/java/com/fastcomments/model/PostVoteResponseTest.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 PostVoteResponse - */ -public class PostVoteResponseTest { - private final PostVoteResponse model = new PostVoteResponse(); - - /** - * Model tests for PostVoteResponse - */ - @Test - public void testPostVoteResponse() { - // TODO: test PostVoteResponse - } - - /** - * 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/client/src/test/java/com/fastcomments/model/PutAwardBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/PutAwardBadgeResponseTest.java deleted file mode 100644 index 9d6c92e1..00000000 --- a/client/src/test/java/com/fastcomments/model/PutAwardBadgeResponseTest.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.AwardUserBadgeResponse; -import com.fastcomments.model.CommentUserBadgeInfo; -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 PutAwardBadgeResponse - */ -public class PutAwardBadgeResponseTest { - private final PutAwardBadgeResponse model = new PutAwardBadgeResponse(); - - /** - * Model tests for PutAwardBadgeResponse - */ - @Test - public void testPutAwardBadgeResponse() { - // TODO: test PutAwardBadgeResponse - } - - /** - * 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 - } - - /** - * 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/PutCloseThreadResponseTest.java b/client/src/test/java/com/fastcomments/model/PutCloseThreadResponseTest.java deleted file mode 100644 index 9dc01e8d..00000000 --- a/client/src/test/java/com/fastcomments/model/PutCloseThreadResponseTest.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 PutCloseThreadResponse - */ -public class PutCloseThreadResponseTest { - private final PutCloseThreadResponse model = new PutCloseThreadResponse(); - - /** - * Model tests for PutCloseThreadResponse - */ - @Test - public void testPutCloseThreadResponse() { - // TODO: test PutCloseThreadResponse - } - - /** - * 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/PutRemoveBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/PutRemoveBadgeResponseTest.java deleted file mode 100644 index 2d7edad8..00000000 --- a/client/src/test/java/com/fastcomments/model/PutRemoveBadgeResponseTest.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.CommentUserBadgeInfo; -import com.fastcomments.model.CustomConfigParameters; -import com.fastcomments.model.RemoveUserBadgeResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 PutRemoveBadgeResponse - */ -public class PutRemoveBadgeResponseTest { - private final PutRemoveBadgeResponse model = new PutRemoveBadgeResponse(); - - /** - * Model tests for PutRemoveBadgeResponse - */ - @Test - public void testPutRemoveBadgeResponse() { - // TODO: test PutRemoveBadgeResponse - } - - /** - * Test the property 'badges' - */ - @Test - public void badgesTest() { - // TODO: test badges - } - - /** - * 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/PutReopenThreadResponseTest.java b/client/src/test/java/com/fastcomments/model/PutReopenThreadResponseTest.java deleted file mode 100644 index 344876bd..00000000 --- a/client/src/test/java/com/fastcomments/model/PutReopenThreadResponseTest.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 PutReopenThreadResponse - */ -public class PutReopenThreadResponseTest { - private final PutReopenThreadResponse model = new PutReopenThreadResponse(); - - /** - * Model tests for PutReopenThreadResponse - */ - @Test - public void testPutReopenThreadResponse() { - // TODO: test PutReopenThreadResponse - } - - /** - * 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/ReactFeedPostPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/ReactFeedPostPublicResponseTest.java deleted file mode 100644 index a4e6655f..00000000 --- a/client/src/test/java/com/fastcomments/model/ReactFeedPostPublicResponseTest.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 ReactFeedPostPublicResponse - */ -public class ReactFeedPostPublicResponseTest { - private final ReactFeedPostPublicResponse model = new ReactFeedPostPublicResponse(); - - /** - * Model tests for ReactFeedPostPublicResponse - */ - @Test - public void testReactFeedPostPublicResponse() { - // TODO: test ReactFeedPostPublicResponse - } - - /** - * 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/RenderEmailTemplateResponse1Test.java b/client/src/test/java/com/fastcomments/model/RenderEmailTemplateResponse1Test.java deleted file mode 100644 index ea61003f..00000000 --- a/client/src/test/java/com/fastcomments/model/RenderEmailTemplateResponse1Test.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 RenderEmailTemplateResponse1 - */ -public class RenderEmailTemplateResponse1Test { - private final RenderEmailTemplateResponse1 model = new RenderEmailTemplateResponse1(); - - /** - * Model tests for RenderEmailTemplateResponse1 - */ - @Test - public void testRenderEmailTemplateResponse1() { - // TODO: test RenderEmailTemplateResponse1 - } - - /** - * 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/ReplaceTenantPackageResponseTest.java b/client/src/test/java/com/fastcomments/model/ReplaceTenantPackageResponseTest.java deleted file mode 100644 index 23b65400..00000000 --- a/client/src/test/java/com/fastcomments/model/ReplaceTenantPackageResponseTest.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 ReplaceTenantPackageResponse - */ -public class ReplaceTenantPackageResponseTest { - private final ReplaceTenantPackageResponse model = new ReplaceTenantPackageResponse(); - - /** - * Model tests for ReplaceTenantPackageResponse - */ - @Test - public void testReplaceTenantPackageResponse() { - // TODO: test ReplaceTenantPackageResponse - } - - /** - * 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/ReplaceTenantUserResponseTest.java b/client/src/test/java/com/fastcomments/model/ReplaceTenantUserResponseTest.java deleted file mode 100644 index c8a10843..00000000 --- a/client/src/test/java/com/fastcomments/model/ReplaceTenantUserResponseTest.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 ReplaceTenantUserResponse - */ -public class ReplaceTenantUserResponseTest { - private final ReplaceTenantUserResponse model = new ReplaceTenantUserResponse(); - - /** - * Model tests for ReplaceTenantUserResponse - */ - @Test - public void testReplaceTenantUserResponse() { - // TODO: test ReplaceTenantUserResponse - } - - /** - * 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/ResetUserNotificationCountResponseTest.java b/client/src/test/java/com/fastcomments/model/ResetUserNotificationCountResponseTest.java deleted file mode 100644 index 1bab7cd2..00000000 --- a/client/src/test/java/com/fastcomments/model/ResetUserNotificationCountResponseTest.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 ResetUserNotificationCountResponse - */ -public class ResetUserNotificationCountResponseTest { - private final ResetUserNotificationCountResponse model = new ResetUserNotificationCountResponse(); - - /** - * Model tests for ResetUserNotificationCountResponse - */ - @Test - public void testResetUserNotificationCountResponse() { - // TODO: test ResetUserNotificationCountResponse - } - - /** - * 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/ResetUserNotificationsResponse1Test.java b/client/src/test/java/com/fastcomments/model/ResetUserNotificationsResponse1Test.java deleted file mode 100644 index 1389ddf6..00000000 --- a/client/src/test/java/com/fastcomments/model/ResetUserNotificationsResponse1Test.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 ResetUserNotificationsResponse1 - */ -public class ResetUserNotificationsResponse1Test { - private final ResetUserNotificationsResponse1 model = new ResetUserNotificationsResponse1(); - - /** - * Model tests for ResetUserNotificationsResponse1 - */ - @Test - public void testResetUserNotificationsResponse1() { - // TODO: test ResetUserNotificationsResponse1 - } - - /** - * 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/SaveCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/SaveCommentResponseTest.java deleted file mode 100644 index 4f3822d8..00000000 --- a/client/src/test/java/com/fastcomments/model/SaveCommentResponseTest.java +++ /dev/null @@ -1,136 +0,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.APISaveCommentResponse; -import com.fastcomments.model.APIStatus; -import com.fastcomments.model.CustomConfigParameters; -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 SaveCommentResponse - */ -public class SaveCommentResponseTest { - private final SaveCommentResponse model = new SaveCommentResponse(); - - /** - * Model tests for SaveCommentResponse - */ - @Test - public void testSaveCommentResponse() { - // TODO: test SaveCommentResponse - } - - /** - * 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 '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/SearchUsersResponse1Test.java b/client/src/test/java/com/fastcomments/model/SearchUsersResponse1Test.java deleted file mode 100644 index a093de1f..00000000 --- a/client/src/test/java/com/fastcomments/model/SearchUsersResponse1Test.java +++ /dev/null @@ -1,128 +0,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.SearchUsersResult; -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 SearchUsersResponse1 - */ -public class SearchUsersResponse1Test { - private final SearchUsersResponse1 model = new SearchUsersResponse1(); - - /** - * Model tests for SearchUsersResponse1 - */ - @Test - public void testSearchUsersResponse1() { - // TODO: test SearchUsersResponse1 - } - - /** - * 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/SendInviteResponseTest.java b/client/src/test/java/com/fastcomments/model/SendInviteResponseTest.java deleted file mode 100644 index fe3e5b99..00000000 --- a/client/src/test/java/com/fastcomments/model/SendInviteResponseTest.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 SendInviteResponse - */ -public class SendInviteResponseTest { - private final SendInviteResponse model = new SendInviteResponse(); - - /** - * Model tests for SendInviteResponse - */ - @Test - public void testSendInviteResponse() { - // TODO: test SendInviteResponse - } - - /** - * 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/SendLoginLinkResponseTest.java b/client/src/test/java/com/fastcomments/model/SendLoginLinkResponseTest.java deleted file mode 100644 index 59cd4ad5..00000000 --- a/client/src/test/java/com/fastcomments/model/SendLoginLinkResponseTest.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 SendLoginLinkResponse - */ -public class SendLoginLinkResponseTest { - private final SendLoginLinkResponse model = new SendLoginLinkResponse(); - - /** - * Model tests for SendLoginLinkResponse - */ - @Test - public void testSendLoginLinkResponse() { - // TODO: test SendLoginLinkResponse - } - - /** - * 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/SetCommentTextResponse1Test.java b/client/src/test/java/com/fastcomments/model/SetCommentTextResponse1Test.java deleted file mode 100644 index 5a153429..00000000 --- a/client/src/test/java/com/fastcomments/model/SetCommentTextResponse1Test.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 SetCommentTextResponse1 - */ -public class SetCommentTextResponse1Test { - private final SetCommentTextResponse1 model = new SetCommentTextResponse1(); - - /** - * Model tests for SetCommentTextResponse1 - */ - @Test - public void testSetCommentTextResponse1() { - // TODO: test SetCommentTextResponse1 - } - - /** - * 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/SetTrustFactorResponseTest.java b/client/src/test/java/com/fastcomments/model/SetTrustFactorResponseTest.java deleted file mode 100644 index 27663099..00000000 --- a/client/src/test/java/com/fastcomments/model/SetTrustFactorResponseTest.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.SetUserTrustFactorResponse; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import 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 SetTrustFactorResponse - */ -public class SetTrustFactorResponseTest { - private final SetTrustFactorResponse model = new SetTrustFactorResponse(); - - /** - * Model tests for SetTrustFactorResponse - */ - @Test - public void testSetTrustFactorResponse() { - // TODO: test SetTrustFactorResponse - } - - /** - * Test the property 'previousManualTrustFactor' - */ - @Test - public void previousManualTrustFactorTest() { - // TODO: test previousManualTrustFactor - } - - /** - * 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/UnBlockCommentPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/UnBlockCommentPublicResponseTest.java deleted file mode 100644 index 72cbbe56..00000000 --- a/client/src/test/java/com/fastcomments/model/UnBlockCommentPublicResponseTest.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 UnBlockCommentPublicResponse - */ -public class UnBlockCommentPublicResponseTest { - private final UnBlockCommentPublicResponse model = new UnBlockCommentPublicResponse(); - - /** - * Model tests for UnBlockCommentPublicResponse - */ - @Test - public void testUnBlockCommentPublicResponse() { - // TODO: test UnBlockCommentPublicResponse - } - - /** - * 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/UnBlockUserFromCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/UnBlockUserFromCommentResponseTest.java deleted file mode 100644 index 341b3abb..00000000 --- a/client/src/test/java/com/fastcomments/model/UnBlockUserFromCommentResponseTest.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 UnBlockUserFromCommentResponse - */ -public class UnBlockUserFromCommentResponseTest { - private final UnBlockUserFromCommentResponse model = new UnBlockUserFromCommentResponse(); - - /** - * Model tests for UnBlockUserFromCommentResponse - */ - @Test - public void testUnBlockUserFromCommentResponse() { - // TODO: test UnBlockUserFromCommentResponse - } - - /** - * 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/UnFlagCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/UnFlagCommentResponseTest.java deleted file mode 100644 index 2097f0dd..00000000 --- a/client/src/test/java/com/fastcomments/model/UnFlagCommentResponseTest.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 UnFlagCommentResponse - */ -public class UnFlagCommentResponseTest { - private final UnFlagCommentResponse model = new UnFlagCommentResponse(); - - /** - * Model tests for UnFlagCommentResponse - */ - @Test - public void testUnFlagCommentResponse() { - // TODO: test UnFlagCommentResponse - } - - /** - * 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/UnLockCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/UnLockCommentResponseTest.java deleted file mode 100644 index 4e75c904..00000000 --- a/client/src/test/java/com/fastcomments/model/UnLockCommentResponseTest.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 UnLockCommentResponse - */ -public class UnLockCommentResponseTest { - private final UnLockCommentResponse model = new UnLockCommentResponse(); - - /** - * Model tests for UnLockCommentResponse - */ - @Test - public void testUnLockCommentResponse() { - // TODO: test UnLockCommentResponse - } - - /** - * 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/UnPinCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/UnPinCommentResponseTest.java deleted file mode 100644 index c01cb6fc..00000000 --- a/client/src/test/java/com/fastcomments/model/UnPinCommentResponseTest.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 UnPinCommentResponse - */ -public class UnPinCommentResponseTest { - private final UnPinCommentResponse model = new UnPinCommentResponse(); - - /** - * Model tests for UnPinCommentResponse - */ - @Test - public void testUnPinCommentResponse() { - // TODO: test UnPinCommentResponse - } - - /** - * 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/UpdateCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateCommentResponseTest.java deleted file mode 100644 index 86f78a6f..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateCommentResponseTest.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 UpdateCommentResponse - */ -public class UpdateCommentResponseTest { - private final UpdateCommentResponse model = new UpdateCommentResponse(); - - /** - * Model tests for UpdateCommentResponse - */ - @Test - public void testUpdateCommentResponse() { - // TODO: test UpdateCommentResponse - } - - /** - * 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/UpdateEmailTemplateResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateEmailTemplateResponseTest.java deleted file mode 100644 index c52444cc..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateEmailTemplateResponseTest.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 UpdateEmailTemplateResponse - */ -public class UpdateEmailTemplateResponseTest { - private final UpdateEmailTemplateResponse model = new UpdateEmailTemplateResponse(); - - /** - * Model tests for UpdateEmailTemplateResponse - */ - @Test - public void testUpdateEmailTemplateResponse() { - // TODO: test UpdateEmailTemplateResponse - } - - /** - * 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/UpdateFeedPostPublicResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateFeedPostPublicResponseTest.java deleted file mode 100644 index 3bcd0c55..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateFeedPostPublicResponseTest.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 UpdateFeedPostPublicResponse - */ -public class UpdateFeedPostPublicResponseTest { - private final UpdateFeedPostPublicResponse model = new UpdateFeedPostPublicResponse(); - - /** - * Model tests for UpdateFeedPostPublicResponse - */ - @Test - public void testUpdateFeedPostPublicResponse() { - // TODO: test UpdateFeedPostPublicResponse - } - - /** - * 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/UpdateFeedPostResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateFeedPostResponseTest.java deleted file mode 100644 index 329980a5..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateFeedPostResponseTest.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 UpdateFeedPostResponse - */ -public class UpdateFeedPostResponseTest { - private final UpdateFeedPostResponse model = new UpdateFeedPostResponse(); - - /** - * Model tests for UpdateFeedPostResponse - */ - @Test - public void testUpdateFeedPostResponse() { - // TODO: test UpdateFeedPostResponse - } - - /** - * 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/UpdateModeratorResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateModeratorResponseTest.java deleted file mode 100644 index bcd4c293..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateModeratorResponseTest.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 UpdateModeratorResponse - */ -public class UpdateModeratorResponseTest { - private final UpdateModeratorResponse model = new UpdateModeratorResponse(); - - /** - * Model tests for UpdateModeratorResponse - */ - @Test - public void testUpdateModeratorResponse() { - // TODO: test UpdateModeratorResponse - } - - /** - * 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/UpdateNotificationResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateNotificationResponseTest.java deleted file mode 100644 index 7fd7d98b..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateNotificationResponseTest.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 UpdateNotificationResponse - */ -public class UpdateNotificationResponseTest { - private final UpdateNotificationResponse model = new UpdateNotificationResponse(); - - /** - * Model tests for UpdateNotificationResponse - */ - @Test - public void testUpdateNotificationResponse() { - // TODO: test UpdateNotificationResponse - } - - /** - * 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/UpdateQuestionConfigResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateQuestionConfigResponseTest.java deleted file mode 100644 index f9b73c3b..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateQuestionConfigResponseTest.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 UpdateQuestionConfigResponse - */ -public class UpdateQuestionConfigResponseTest { - private final UpdateQuestionConfigResponse model = new UpdateQuestionConfigResponse(); - - /** - * Model tests for UpdateQuestionConfigResponse - */ - @Test - public void testUpdateQuestionConfigResponse() { - // TODO: test UpdateQuestionConfigResponse - } - - /** - * 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/UpdateQuestionResultResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateQuestionResultResponseTest.java deleted file mode 100644 index f1b662e5..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateQuestionResultResponseTest.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 UpdateQuestionResultResponse - */ -public class UpdateQuestionResultResponseTest { - private final UpdateQuestionResultResponse model = new UpdateQuestionResultResponse(); - - /** - * Model tests for UpdateQuestionResultResponse - */ - @Test - public void testUpdateQuestionResultResponse() { - // TODO: test UpdateQuestionResultResponse - } - - /** - * 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/UpdateTenantPackageResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateTenantPackageResponseTest.java deleted file mode 100644 index f3064ce5..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateTenantPackageResponseTest.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 UpdateTenantPackageResponse - */ -public class UpdateTenantPackageResponseTest { - private final UpdateTenantPackageResponse model = new UpdateTenantPackageResponse(); - - /** - * Model tests for UpdateTenantPackageResponse - */ - @Test - public void testUpdateTenantPackageResponse() { - // TODO: test UpdateTenantPackageResponse - } - - /** - * 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/UpdateTenantResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateTenantResponseTest.java deleted file mode 100644 index 2ca952c2..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateTenantResponseTest.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 UpdateTenantResponse - */ -public class UpdateTenantResponseTest { - private final UpdateTenantResponse model = new UpdateTenantResponse(); - - /** - * Model tests for UpdateTenantResponse - */ - @Test - public void testUpdateTenantResponse() { - // TODO: test UpdateTenantResponse - } - - /** - * 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/UpdateTenantUserResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateTenantUserResponseTest.java deleted file mode 100644 index 2fdf3df2..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateTenantUserResponseTest.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 UpdateTenantUserResponse - */ -public class UpdateTenantUserResponseTest { - private final UpdateTenantUserResponse model = new UpdateTenantUserResponse(); - - /** - * Model tests for UpdateTenantUserResponse - */ - @Test - public void testUpdateTenantUserResponse() { - // TODO: test UpdateTenantUserResponse - } - - /** - * 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/UpdateUserBadgeResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateUserBadgeResponseTest.java deleted file mode 100644 index 32c648d7..00000000 --- a/client/src/test/java/com/fastcomments/model/UpdateUserBadgeResponseTest.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 UpdateUserBadgeResponse - */ -public class UpdateUserBadgeResponseTest { - private final UpdateUserBadgeResponse model = new UpdateUserBadgeResponse(); - - /** - * Model tests for UpdateUserBadgeResponse - */ - @Test - public void testUpdateUserBadgeResponse() { - // TODO: test UpdateUserBadgeResponse - } - - /** - * 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 index 46693466..e1d0e1bf 100644 --- a/client/src/test/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationCommentSubscriptionStatusResponseTest.java @@ -13,9 +13,7 @@ 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; @@ -74,60 +72,4 @@ 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/UpdateUserNotificationPageSubscriptionStatusResponseTest.java b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponseTest.java index c08688fd..9c910d47 100644 --- a/client/src/test/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationPageSubscriptionStatusResponseTest.java @@ -13,9 +13,7 @@ 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; @@ -74,60 +72,4 @@ 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 index a4c01631..38e08f7c 100644 --- a/client/src/test/java/com/fastcomments/model/UpdateUserNotificationStatusResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/UpdateUserNotificationStatusResponseTest.java @@ -13,9 +13,7 @@ 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; @@ -74,60 +72,4 @@ 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/VoteCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/VoteCommentResponseTest.java deleted file mode 100644 index 5e3ca73b..00000000 --- a/client/src/test/java/com/fastcomments/model/VoteCommentResponseTest.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 VoteCommentResponse - */ -public class VoteCommentResponseTest { - private final VoteCommentResponse model = new VoteCommentResponse(); - - /** - * Model tests for VoteCommentResponse - */ - @Test - public void testVoteCommentResponse() { - // TODO: test VoteCommentResponse - } - - /** - * 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/openapi.json b/openapi.json index b02430d0..0f72c9c4 100644 --- a/openapi.json +++ b/openapi.json @@ -11528,15 +11528,17 @@ "content": { "application/json": { "schema": { - "title": "SearchUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/SearchUsersResult" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SearchUsersResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11614,15 +11616,7 @@ "content": { "application/json": { "schema": { - "title": "GetUserPresenceStatusesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" } } } @@ -11636,6 +11630,16 @@ } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -11679,15 +11683,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserNotificationsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetMyNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetMyNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11809,15 +11815,17 @@ "content": { "application/json": { "schema": { - "title": "ResetUserNotificationsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11897,15 +11905,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserNotificationCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11944,15 +11954,17 @@ "content": { "application/json": { "schema": { - "title": "ResetUserNotificationCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11998,14 +12010,21 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" - }, - { - "$ref": "#/components/schemas/APIError" } ] } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -12068,14 +12087,21 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" - }, - { - "$ref": "#/components/schemas/APIError" } ] } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "description": "Enable or disable notifications for a specific comment.", @@ -12147,14 +12173,21 @@ }, { "$ref": "#/components/schemas/IgnoredResponse" - }, - { - "$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", @@ -12296,15 +12329,7 @@ "content": { "application/json": { "schema": { - "title": "GetTranslationsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTranslationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTranslationsResponse" } } } @@ -12328,6 +12353,16 @@ } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -12379,15 +12414,17 @@ "content": { "application/json": { "schema": { - "title": "GetPagesPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetPublicPagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPublicPagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12465,15 +12502,7 @@ "content": { "application/json": { "schema": { - "title": "GetOnlineUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PageUsersOnlineResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PageUsersOnlineResponse" } } } @@ -12497,6 +12526,16 @@ } } } + }, + "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).", @@ -12552,15 +12591,7 @@ "content": { "application/json": { "schema": { - "title": "GetOfflineUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PageUsersOfflineResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PageUsersOfflineResponse" } } } @@ -12584,6 +12615,16 @@ } } } + }, + "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.", @@ -12639,15 +12680,7 @@ "content": { "application/json": { "schema": { - "title": "GetUsersInfoResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PageUsersInfoResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PageUsersInfoResponse" } } } @@ -12661,6 +12694,16 @@ } } } + }, + "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).", @@ -12698,15 +12741,17 @@ "content": { "application/json": { "schema": { - "title": "GetV1PageLikesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetV1PageLikes" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetV1PageLikes" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12743,15 +12788,17 @@ "content": { "application/json": { "schema": { - "title": "CreateV1PageReactResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateV1PageReact" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateV1PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12796,15 +12843,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteV1PageReactResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/DeleteV1PageReact" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/DeleteV1PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12843,15 +12892,17 @@ "content": { "application/json": { "schema": { - "title": "GetV2PageReactUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetV2PageReactUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetV2PageReactUsersResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12898,15 +12949,17 @@ "content": { "application/json": { "schema": { - "title": "GetV2PageReactsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetV2PageReacts" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetV2PageReacts" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12943,15 +12996,17 @@ "content": { "application/json": { "schema": { - "title": "CreateV2PageReactResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateV2PageReact" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateV2PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13004,15 +13059,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteV2PageReactResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/DeleteV2PageReact" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/DeleteV2PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13059,15 +13116,17 @@ "content": { "application/json": { "schema": { - "title": "GetCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPICountCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPICountCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13146,15 +13205,17 @@ "content": { "application/json": { "schema": { - "title": "GetApiIdsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPIGetCommentIdsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPIGetCommentIdsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13241,15 +13302,17 @@ "content": { "application/json": { "schema": { - "title": "GetApiCommentsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPIGetCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPIGetCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13354,15 +13417,17 @@ "content": { "application/json": { "schema": { - "title": "PostApiExportResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationExportResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationExportResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13441,15 +13506,17 @@ "content": { "application/json": { "schema": { - "title": "GetApiExportStatusResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationExportStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationExportStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13496,15 +13563,17 @@ "content": { "application/json": { "schema": { - "title": "GetSearchUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationUserSearchResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationUserSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13551,15 +13620,17 @@ "content": { "application/json": { "schema": { - "title": "GetSearchPagesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationPageSearchResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationPageSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13606,15 +13677,17 @@ "content": { "application/json": { "schema": { - "title": "GetSearchSitesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationSiteSearchResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationSiteSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13661,15 +13734,17 @@ "content": { "application/json": { "schema": { - "title": "GetSearchCommentsSummaryResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationCommentSearchResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationCommentSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13732,15 +13807,17 @@ "content": { "application/json": { "schema": { - "title": "GetSearchSuggestResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationSuggestResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationSuggestResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13787,15 +13864,17 @@ "content": { "application/json": { "schema": { - "title": "GetPreBanSummaryResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PreBanSummary" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PreBanSummary" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13866,15 +13945,17 @@ "content": { "application/json": { "schema": { - "title": "PostBulkPreBanSummaryResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BulkPreBanSummary" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkPreBanSummary" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13947,15 +14028,17 @@ "content": { "application/json": { "schema": { - "title": "PostBanUserFromCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BanUserFromCommentResult" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BanUserFromCommentResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14066,15 +14149,17 @@ "content": { "application/json": { "schema": { - "title": "GetBanUsersFromCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetBannedUsersFromCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetBannedUsersFromCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14121,15 +14206,17 @@ "content": { "application/json": { "schema": { - "title": "PostBanUserUndoResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14185,14 +14272,21 @@ }, { "$ref": "#/components/schemas/RemoveCommentActionResponse" - }, - { - "$ref": "#/components/schemas/APIError" } ] } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -14244,20 +14338,22 @@ "content": { "application/json": { "schema": { - "title": "PostRestoreDeletedCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" } } } - } - }, + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, "tags": [ "Moderation" ], @@ -14307,15 +14403,17 @@ "content": { "application/json": { "schema": { - "title": "PostFlagCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14370,15 +14468,17 @@ "content": { "application/json": { "schema": { - "title": "PostUnFlagCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14433,15 +14533,17 @@ "content": { "application/json": { "schema": { - "title": "PostSetCommentReviewStatusResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14504,15 +14606,17 @@ "content": { "application/json": { "schema": { - "title": "PostSetCommentSpamStatusResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14583,15 +14687,17 @@ "content": { "application/json": { "schema": { - "title": "PostSetCommentApprovalStatusResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/SetCommentApprovedResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SetCommentApprovedResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14654,15 +14760,17 @@ "content": { "application/json": { "schema": { - "title": "GetLogsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPIGetLogsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPIGetLogsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14709,15 +14817,17 @@ "content": { "application/json": { "schema": { - "title": "GetModerationCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPICommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPICommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14780,15 +14890,17 @@ "content": { "application/json": { "schema": { - "title": "PostCommentsByIdsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14837,15 +14949,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentChildrenResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14892,15 +15006,17 @@ "content": { "application/json": { "schema": { - "title": "GetModerationCommentTextResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14947,15 +15063,17 @@ "content": { "application/json": { "schema": { - "title": "PostSetCommentTextResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/SetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15020,15 +15138,17 @@ "content": { "application/json": { "schema": { - "title": "PostAdjustCommentVotesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/AdjustVotesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AdjustVotesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15093,15 +15213,17 @@ "content": { "application/json": { "schema": { - "title": "PostVoteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15164,15 +15286,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteModerationVoteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15235,15 +15359,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentBanStatusResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentBanStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentBanStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15290,15 +15416,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBanPreferenceResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIModerateGetUserBanPreferencesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIModerateGetUserBanPreferencesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15337,15 +15465,17 @@ "content": { "application/json": { "schema": { - "title": "GetManualBadgesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantManualBadgesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantManualBadgesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15384,15 +15514,17 @@ "content": { "application/json": { "schema": { - "title": "GetManualBadgesForUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserManualBadgesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserManualBadgesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15447,15 +15579,17 @@ "content": { "application/json": { "schema": { - "title": "PutAwardBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/AwardUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AwardUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15526,15 +15660,17 @@ "content": { "application/json": { "schema": { - "title": "PutRemoveBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/RemoveUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/RemoveUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15605,15 +15741,17 @@ "content": { "application/json": { "schema": { - "title": "GetTrustFactorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserTrustFactorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserTrustFactorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15660,15 +15798,17 @@ "content": { "application/json": { "schema": { - "title": "SetTrustFactorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/SetUserTrustFactorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SetUserTrustFactorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15723,15 +15863,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserInternalProfileResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserInternalProfileResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserInternalProfileResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15778,15 +15920,17 @@ "content": { "application/json": { "schema": { - "title": "PutReopenThreadResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15833,15 +15977,17 @@ "content": { "application/json": { "schema": { - "title": "PutCloseThreadResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15888,15 +16034,17 @@ "content": { "application/json": { "schema": { - "title": "GetCountsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetBannedUsersCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetBannedUsersCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16006,9 +16154,6 @@ }, { "$ref": "#/components/schemas/GifSearchInternalError" - }, - { - "$ref": "#/components/schemas/APIError" } ] } @@ -16024,6 +16169,16 @@ } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -16084,15 +16239,7 @@ "content": { "application/json": { "schema": { - "title": "GetGifLargeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GifGetLargeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GifGetLargeResponse" } } } @@ -16106,6 +16253,16 @@ } } } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, "tags": [ @@ -16141,15 +16298,17 @@ "content": { "application/json": { "schema": { - "title": "FlagCommentPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16204,15 +16363,17 @@ "content": { "application/json": { "schema": { - "title": "GetFeedPostsPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PublicFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16294,15 +16455,17 @@ "content": { "application/json": { "schema": { - "title": "CreateFeedPostPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16359,15 +16522,17 @@ "content": { "application/json": { "schema": { - "title": "ReactFeedPostPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ReactFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ReactFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16440,15 +16605,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserReactsPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/UserReactsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UserReactsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16498,15 +16665,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateFeedPostPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16570,30 +16739,33 @@ "application/json": { "schema": { "title": "DeleteFeedPostPublicResponse", - "anyOf": [ - { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - { - "$ref": "#/components/schemas/APIError" + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" } - ] + }, + "required": [ + "status" + ], + "type": "object" } } } - } - }, - "tags": [ - "Public" - ], + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], "security": [], "parameters": [ { @@ -16640,15 +16812,17 @@ "content": { "application/json": { "schema": { - "title": "GetFeedPostsStatsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/FeedPostsStatsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FeedPostsStatsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16698,15 +16872,17 @@ "content": { "application/json": { "schema": { - "title": "GetEventLogResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEventLogResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEventLogResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16772,15 +16948,17 @@ "content": { "application/json": { "schema": { - "title": "GetGlobalEventLogResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEventLogResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEventLogResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16846,15 +17024,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentTextResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16909,15 +17089,17 @@ "content": { "application/json": { "schema": { - "title": "SetCommentTextResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16990,15 +17172,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentsForUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentsForUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentsForUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17078,15 +17262,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentsPublicResponse", - "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" } } } @@ -17341,15 +17527,17 @@ "content": { "application/json": { "schema": { - "title": "CreateCommentPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17422,15 +17610,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteCommentPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17493,15 +17683,17 @@ "content": { "application/json": { "schema": { - "title": "CheckedCommentsForBlockedResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CheckBlockedCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CheckBlockedCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17549,15 +17741,17 @@ "content": { "application/json": { "schema": { - "title": "VoteCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17638,15 +17832,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteCommentVoteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17725,15 +17921,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentVoteUserNamesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17789,15 +17987,17 @@ "content": { "application/json": { "schema": { - "title": "PinCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17852,15 +18052,17 @@ "content": { "application/json": { "schema": { - "title": "UnPinCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17915,15 +18117,17 @@ "content": { "application/json": { "schema": { - "title": "LockCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIError" - }, - { - "$ref": "#/components/schemas/APIEmptyResponse" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17978,15 +18182,17 @@ "content": { "application/json": { "schema": { - "title": "UnLockCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIError" - }, - { - "$ref": "#/components/schemas/APIEmptyResponse" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18041,15 +18247,17 @@ "content": { "application/json": { "schema": { - "title": "BlockFromCommentPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BlockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BlockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18104,15 +18312,17 @@ "content": { "application/json": { "schema": { - "title": "UnBlockCommentPublicResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/UnblockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UnblockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18920,15 +19130,17 @@ "content": { "application/json": { "schema": { - "title": "GetVotesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetVotesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetVotesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18966,15 +19178,17 @@ "content": { "application/json": { "schema": { - "title": "CreateVoteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19042,15 +19256,17 @@ "content": { "application/json": { "schema": { - "title": "GetVotesForUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetVotesForUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetVotesForUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19106,15 +19322,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteVoteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19162,15 +19380,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19210,15 +19430,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19256,15 +19478,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateUserBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptySuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19312,15 +19536,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteUserBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptySuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19360,15 +19586,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBadgesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19449,15 +19677,17 @@ "content": { "application/json": { "schema": { - "title": "CreateUserBadgeResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APICreateUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APICreateUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19499,15 +19729,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBadgeProgressByIdResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19547,15 +19779,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBadgeProgressListResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19613,15 +19847,17 @@ "content": { "application/json": { "schema": { - "title": "GetUserBadgeProgressByUserIdResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19661,15 +19897,17 @@ "content": { "application/json": { "schema": { - "title": "GetTicketsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTicketsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTicketsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19734,15 +19972,17 @@ "content": { "application/json": { "schema": { - "title": "CreateTicketResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTicketResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTicketResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19792,15 +20032,17 @@ "content": { "application/json": { "schema": { - "title": "GetTicketResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTicketResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTicketResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19848,19 +20090,21 @@ "content": { "application/json": { "schema": { - "title": "ChangeTicketStateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeTicketStateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeTicketStateResponse" } } } - } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } }, "security": [ { @@ -19914,15 +20158,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -19960,15 +20206,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateTenantResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20016,15 +20264,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteTenantResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20072,15 +20322,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20127,15 +20379,17 @@ "content": { "application/json": { "schema": { - "title": "CreateTenantResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20177,15 +20431,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20223,15 +20479,17 @@ "content": { "application/json": { "schema": { - "title": "ReplaceTenantUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20287,15 +20545,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateTenantUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20351,15 +20611,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteTenantUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20415,15 +20677,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantUsersResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantUsersResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20462,15 +20726,17 @@ "content": { "application/json": { "schema": { - "title": "CreateTenantUserResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20512,15 +20778,17 @@ "content": { "application/json": { "schema": { - "title": "SendLoginLinkResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20568,15 +20836,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantPackageResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantPackageResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantPackageResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20614,15 +20884,17 @@ "content": { "application/json": { "schema": { - "title": "ReplaceTenantPackageResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20670,15 +20942,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateTenantPackageResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20726,15 +21000,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteTenantPackageResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20774,15 +21050,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantPackagesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantPackagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantPackagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20821,15 +21099,17 @@ "content": { "application/json": { "schema": { - "title": "CreateTenantPackageResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantPackageResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantPackageResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20871,15 +21151,17 @@ "content": { "application/json": { "schema": { - "title": "GetTenantDailyUsagesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20947,15 +21229,17 @@ "content": { "application/json": { "schema": { - "title": "GetQuestionResultResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionResultResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionResultResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -20993,15 +21277,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateQuestionResultResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21049,15 +21335,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteQuestionResultResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21097,15 +21385,17 @@ "content": { "application/json": { "schema": { - "title": "GetQuestionResultsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21184,15 +21474,17 @@ "content": { "application/json": { "schema": { - "title": "CreateQuestionResultResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateQuestionResultResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateQuestionResultResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21234,15 +21526,17 @@ "content": { "application/json": { "schema": { - "title": "AggregateQuestionResultsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/AggregateQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AggregateQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21326,15 +21620,17 @@ "content": { "application/json": { "schema": { - "title": "BulkAggregateQuestionResultsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21384,15 +21680,17 @@ "content": { "application/json": { "schema": { - "title": "CombineCommentsWithQuestionResultsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21495,15 +21793,17 @@ "content": { "application/json": { "schema": { - "title": "GetQuestionConfigResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionConfigResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionConfigResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21541,15 +21841,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateQuestionConfigResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21597,15 +21899,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteQuestionConfigResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21645,15 +21949,17 @@ "content": { "application/json": { "schema": { - "title": "GetQuestionConfigsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionConfigsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionConfigsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21692,15 +21998,17 @@ "content": { "application/json": { "schema": { - "title": "CreateQuestionConfigResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateQuestionConfigResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateQuestionConfigResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21742,15 +22050,17 @@ "content": { "application/json": { "schema": { - "title": "GetPendingWebhookEventsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21840,15 +22150,17 @@ "content": { "application/json": { "schema": { - "title": "GetPendingWebhookEventCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21929,15 +22241,17 @@ "content": { "application/json": { "schema": { - "title": "DeletePendingWebhookEventResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -21977,15 +22291,17 @@ "content": { "application/json": { "schema": { - "title": "GetNotificationsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22066,15 +22382,17 @@ "content": { "application/json": { "schema": { - "title": "GetNotificationCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22146,15 +22464,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateNotificationResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22212,15 +22532,17 @@ "content": { "application/json": { "schema": { - "title": "GetCachedNotificationCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetCachedNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCachedNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22258,15 +22580,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteNotificationCountResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22306,15 +22630,17 @@ "content": { "application/json": { "schema": { - "title": "GetModeratorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetModeratorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetModeratorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22352,15 +22678,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateModeratorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22408,15 +22736,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteModeratorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22464,15 +22794,17 @@ "content": { "application/json": { "schema": { - "title": "GetModeratorsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetModeratorsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetModeratorsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22511,15 +22843,17 @@ "content": { "application/json": { "schema": { - "title": "CreateModeratorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateModeratorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateModeratorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22561,15 +22895,17 @@ "content": { "application/json": { "schema": { - "title": "SendInviteResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22617,15 +22953,17 @@ "content": { "application/json": { "schema": { - "title": "GetHashTagsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetHashTagsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetHashTagsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22664,15 +23002,17 @@ "content": { "application/json": { "schema": { - "title": "AddHashTagResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateHashTagResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22714,15 +23054,17 @@ "content": { "application/json": { "schema": { - "title": "AddHashTagsBulkResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BulkCreateHashTagsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkCreateHashTagsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22764,15 +23106,17 @@ "content": { "application/json": { "schema": { - "title": "PatchHashTagResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/UpdateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UpdateHashTagResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22820,15 +23164,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteHashTagResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22884,15 +23230,17 @@ "content": { "application/json": { "schema": { - "title": "GetFeedPostsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -22951,15 +23299,17 @@ "content": { "application/json": { "schema": { - "title": "CreateFeedPostResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23033,15 +23383,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateFeedPostResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23091,15 +23443,17 @@ "content": { "application/json": { "schema": { - "title": "GetEmailTemplateDefinitionsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23131,15 +23485,17 @@ "content": { "application/json": { "schema": { - "title": "GetEmailTemplateRenderErrorsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23188,15 +23544,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteEmailTemplateRenderErrorResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23244,15 +23602,17 @@ "content": { "application/json": { "schema": { - "title": "GetEmailTemplateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23290,15 +23650,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateEmailTemplateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23346,15 +23708,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteEmailTemplateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23394,15 +23758,17 @@ "content": { "application/json": { "schema": { - "title": "GetEmailTemplatesResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplatesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplatesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23441,15 +23807,17 @@ "content": { "application/json": { "schema": { - "title": "CreateEmailTemplateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/CreateEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23491,15 +23859,17 @@ "content": { "application/json": { "schema": { - "title": "RenderEmailTemplateResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/RenderEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/RenderEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -23954,15 +24324,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24000,15 +24372,17 @@ "content": { "application/json": { "schema": { - "title": "UpdateCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24080,15 +24454,17 @@ "content": { "application/json": { "schema": { - "title": "DeleteCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/DeleteCommentResult" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/DeleteCommentResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24144,15 +24520,17 @@ "content": { "application/json": { "schema": { - "title": "GetCommentsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24318,15 +24696,17 @@ "content": { "application/json": { "schema": { - "title": "SaveCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/APISaveCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APISaveCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24488,15 +24868,17 @@ "content": { "application/json": { "schema": { - "title": "FlagCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/FlagCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FlagCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24552,15 +24934,17 @@ "content": { "application/json": { "schema": { - "title": "UnFlagCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/FlagCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FlagCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24616,15 +25000,17 @@ "content": { "application/json": { "schema": { - "title": "BlockUserFromCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/BlockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BlockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24690,15 +25076,17 @@ "content": { "application/json": { "schema": { - "title": "UnBlockUserFromCommentResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/UnblockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UnblockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -24764,15 +25152,17 @@ "content": { "application/json": { "schema": { - "title": "GetAuditLogsResponse", - "anyOf": [ - { - "$ref": "#/components/schemas/GetAuditLogsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetAuditLogsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } From 38a44cceb6de6264d04a104e5c025591065399ad Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 29 Jun 2026 17:07:23 -0700 Subject: [PATCH 3/5] Regenerate from updated spec: mod_api/ moderation paths + PostRemoveCommentApiResponse rename Moderation endpoints gained a mod_api/ path segment; PostRemoveCommentResponse renamed to PostRemoveCommentApiResponse. --- client/.openapi-generator/FILES | 6 +- client/README.md | 88 +- client/api/openapi.yaml | 660 ++--- client/docs/DefaultApi.md | 32 +- client/docs/ModerationApi.md | 469 ++-- ...nse.md => PostRemoveCommentApiResponse.md} | 2 +- .../java/com/fastcomments/api/DefaultApi.java | 164 +- .../com/fastcomments/api/ModerationApi.java | 2429 ++++++++--------- .../java/com/fastcomments/invoker/JSON.java | 2 +- ...java => PostRemoveCommentApiResponse.java} | 42 +- .../com/fastcomments/api/DefaultApiTest.java | 16 +- .../fastcomments/api/ModerationApiTest.java | 211 +- ... => PostRemoveCommentApiResponseTest.java} | 12 +- openapi.json | 634 ++--- 14 files changed, 2266 insertions(+), 2501 deletions(-) rename client/docs/{PostRemoveCommentResponse.md => PostRemoveCommentApiResponse.md} (85%) rename client/src/main/java/com/fastcomments/model/{PostRemoveCommentResponse.java => PostRemoveCommentApiResponse.java} (86%) rename client/src/test/java/com/fastcomments/model/{PostRemoveCommentResponseTest.java => PostRemoveCommentApiResponseTest.java} (77%) diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index fb0b9ca0..947bc5b4 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -266,7 +266,7 @@ docs/PatchDomainConfigResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md -docs/PostRemoveCommentResponse.md +docs/PostRemoveCommentApiResponse.md docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md @@ -657,7 +657,7 @@ 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/PostRemoveCommentResponse.java +src/main/java/com/fastcomments/model/PostRemoveCommentApiResponse.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 @@ -1020,7 +1020,7 @@ 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/PostRemoveCommentResponseTest.java +src/test/java/com/fastcomments/model/PostRemoveCommentApiResponseTest.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 diff --git a/client/README.md b/client/README.md index 40a5c479..b3ceef16 100644 --- a/client/README.md +++ b/client/README.md @@ -237,49 +237,49 @@ 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 | +*ModerationApi* | [**deleteModerationVote**](docs/ModerationApi.md#deleteModerationVote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | +*ModerationApi* | [**getApiComments**](docs/ModerationApi.md#getApiComments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | +*ModerationApi* | [**getApiExportStatus**](docs/ModerationApi.md#getApiExportStatus) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | +*ModerationApi* | [**getApiIds**](docs/ModerationApi.md#getApiIds) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | +*ModerationApi* | [**getBanUsersFromComment**](docs/ModerationApi.md#getBanUsersFromComment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | +*ModerationApi* | [**getCommentBanStatus**](docs/ModerationApi.md#getCommentBanStatus) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | +*ModerationApi* | [**getCommentChildren**](docs/ModerationApi.md#getCommentChildren) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | +*ModerationApi* | [**getCount**](docs/ModerationApi.md#getCount) | **GET** /auth/my-account/moderate-comments/mod_api/count | +*ModerationApi* | [**getCounts**](docs/ModerationApi.md#getCounts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | +*ModerationApi* | [**getLogs**](docs/ModerationApi.md#getLogs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | +*ModerationApi* | [**getManualBadges**](docs/ModerationApi.md#getManualBadges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | +*ModerationApi* | [**getManualBadgesForUser**](docs/ModerationApi.md#getManualBadgesForUser) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | +*ModerationApi* | [**getModerationComment**](docs/ModerationApi.md#getModerationComment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | +*ModerationApi* | [**getModerationCommentText**](docs/ModerationApi.md#getModerationCommentText) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | +*ModerationApi* | [**getPreBanSummary**](docs/ModerationApi.md#getPreBanSummary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | +*ModerationApi* | [**getSearchCommentsSummary**](docs/ModerationApi.md#getSearchCommentsSummary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | +*ModerationApi* | [**getSearchPages**](docs/ModerationApi.md#getSearchPages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | +*ModerationApi* | [**getSearchSites**](docs/ModerationApi.md#getSearchSites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | +*ModerationApi* | [**getSearchSuggest**](docs/ModerationApi.md#getSearchSuggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | +*ModerationApi* | [**getSearchUsers**](docs/ModerationApi.md#getSearchUsers) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | +*ModerationApi* | [**getTrustFactor**](docs/ModerationApi.md#getTrustFactor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | +*ModerationApi* | [**getUserBanPreference**](docs/ModerationApi.md#getUserBanPreference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | +*ModerationApi* | [**getUserInternalProfile**](docs/ModerationApi.md#getUserInternalProfile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | +*ModerationApi* | [**postAdjustCommentVotes**](docs/ModerationApi.md#postAdjustCommentVotes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | +*ModerationApi* | [**postApiExport**](docs/ModerationApi.md#postApiExport) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | +*ModerationApi* | [**postBanUserFromComment**](docs/ModerationApi.md#postBanUserFromComment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | +*ModerationApi* | [**postBanUserUndo**](docs/ModerationApi.md#postBanUserUndo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | +*ModerationApi* | [**postBulkPreBanSummary**](docs/ModerationApi.md#postBulkPreBanSummary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | +*ModerationApi* | [**postCommentsByIds**](docs/ModerationApi.md#postCommentsByIds) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | +*ModerationApi* | [**postFlagComment**](docs/ModerationApi.md#postFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | +*ModerationApi* | [**postRemoveComment**](docs/ModerationApi.md#postRemoveComment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | +*ModerationApi* | [**postRestoreDeletedComment**](docs/ModerationApi.md#postRestoreDeletedComment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | +*ModerationApi* | [**postSetCommentApprovalStatus**](docs/ModerationApi.md#postSetCommentApprovalStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | +*ModerationApi* | [**postSetCommentReviewStatus**](docs/ModerationApi.md#postSetCommentReviewStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | +*ModerationApi* | [**postSetCommentSpamStatus**](docs/ModerationApi.md#postSetCommentSpamStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | +*ModerationApi* | [**postSetCommentText**](docs/ModerationApi.md#postSetCommentText) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | +*ModerationApi* | [**postUnFlagComment**](docs/ModerationApi.md#postUnFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | +*ModerationApi* | [**postVote**](docs/ModerationApi.md#postVote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | +*ModerationApi* | [**putAwardBadge**](docs/ModerationApi.md#putAwardBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | +*ModerationApi* | [**putCloseThread**](docs/ModerationApi.md#putCloseThread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | +*ModerationApi* | [**putRemoveBadge**](docs/ModerationApi.md#putRemoveBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | +*ModerationApi* | [**putReopenThread**](docs/ModerationApi.md#putReopenThread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | +*ModerationApi* | [**setTrustFactor**](docs/ModerationApi.md#setTrustFactor) | **PUT** /auth/my-account/moderate-comments/mod_api/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} | @@ -595,7 +595,7 @@ Class | Method | HTTP request | Description - [PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [PostRemoveCommentApiResponse](docs/PostRemoveCommentApiResponse.md) - [PreBanSummary](docs/PreBanSummary.md) - [PubSubComment](docs/PubSubComment.md) - [PubSubCommentBase](docs/PubSubCommentBase.md) diff --git a/client/api/openapi.yaml b/client/api/openapi.yaml index d4df2122..19a5ed7c 100644 --- a/client/api/openapi.yaml +++ b/client/api/openapi.yaml @@ -1218,10 +1218,17 @@ paths: - Public x-accepts: - application/json - /auth/my-account/moderate-comments/count: + /auth/my-account/moderate-comments/mod_api/count: get: - operationId: GetCount + operationId: getCount parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: text-search @@ -1257,13 +1264,6 @@ paths: schema: type: boolean style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -1289,10 +1289,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/api/ids: + /auth/my-account/moderate-comments/mod_api/api/ids: get: - operationId: GetApiIds + operationId: getApiIds parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: text-search @@ -1335,13 +1342,6 @@ paths: schema: type: boolean style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -1367,10 +1367,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/api/comments: + /auth/my-account/moderate-comments/mod_api/api/comments: get: - operationId: GetApiComments + operationId: getApiComments parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: page @@ -1429,13 +1436,6 @@ paths: schema: type: boolean style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -1461,48 +1461,48 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/api/export: + /auth/my-account/moderate-comments/mod_api/api/export: post: - operationId: PostApiExport + operationId: postApiExport parameters: - explode: true in: query - name: text-search - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: byIPFromComment + name: text-search required: false schema: type: string style: form - explode: true in: query - name: filters + name: byIPFromComment required: false schema: type: string style: form - explode: true in: query - name: searchFilters + name: filters required: false schema: type: string style: form - explode: true in: query - name: sorts + name: searchFilters required: false schema: type: string style: form - explode: true in: query - name: tenantId + name: sorts required: false schema: type: string @@ -1532,20 +1532,20 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/api/export/status: + /auth/my-account/moderate-comments/mod_api/api/export/status: get: - operationId: GetApiExportStatus + operationId: getApiExportStatus parameters: - explode: true in: query - name: batchJobId - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: tenantId + name: batchJobId required: false schema: type: string @@ -1575,20 +1575,20 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/search/users: + /auth/my-account/moderate-comments/mod_api/search/users: get: - operationId: GetSearchUsers + operationId: getSearchUsers parameters: - explode: true in: query - name: value - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: tenantId + name: value required: false schema: type: string @@ -1618,20 +1618,20 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/search/pages: + /auth/my-account/moderate-comments/mod_api/search/pages: get: - operationId: GetSearchPages + operationId: getSearchPages parameters: - explode: true in: query - name: value - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: tenantId + name: value required: false schema: type: string @@ -1661,20 +1661,20 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/search/sites: + /auth/my-account/moderate-comments/mod_api/search/sites: get: - operationId: GetSearchSites + operationId: getSearchSites parameters: - explode: true in: query - name: value - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: tenantId + name: value required: false schema: type: string @@ -1704,34 +1704,34 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/search/comments/summary: + /auth/my-account/moderate-comments/mod_api/search/comments/summary: get: - operationId: GetSearchCommentsSummary + operationId: getSearchCommentsSummary parameters: - explode: true in: query - name: value - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: filters + name: value required: false schema: type: string style: form - explode: true in: query - name: searchFilters + name: filters required: false schema: type: string style: form - explode: true in: query - name: tenantId + name: searchFilters required: false schema: type: string @@ -1761,20 +1761,20 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/search/suggest: + /auth/my-account/moderate-comments/mod_api/search/suggest: get: - operationId: GetSearchSuggest + operationId: getSearchSuggest parameters: - explode: true in: query - name: text-search - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: tenantId + name: text-search required: false schema: type: string @@ -1804,10 +1804,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/pre-ban-summary/{commentId}: + /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}: get: - operationId: GetPreBanSummary + operationId: getPreBanSummary parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -1836,13 +1843,6 @@ paths: schema: type: boolean style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -1868,37 +1868,37 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/bulk-pre-ban-summary: + /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary: post: - operationId: PostBulkPreBanSummary + operationId: postBulkPreBanSummary parameters: - explode: true in: query - name: includeByUserIdAndEmail - required: false + name: tenantId + required: true schema: - type: boolean + type: string style: form - explode: true in: query - name: includeByIP + name: includeByUserIdAndEmail required: false schema: type: boolean style: form - explode: true in: query - name: includeByEmailDomain + name: includeByIP required: false schema: type: boolean style: form - explode: true in: query - name: tenantId + name: includeByEmailDomain required: false schema: - type: string + type: boolean style: form - explode: true in: query @@ -1932,10 +1932,17 @@ paths: x-content-type: application/json x-accepts: - application/json - /auth/my-account/moderate-comments/ban-user/from-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}: post: - operationId: PostBanUserFromComment + operationId: postBanUserFromComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -1999,13 +2006,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2031,10 +2031,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/ban-users/from-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}: get: - operationId: GetBanUsersFromComment + operationId: getBanUsersFromComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2042,13 +2049,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2074,14 +2074,14 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/ban-user/undo: + /auth/my-account/moderate-comments/mod_api/ban-user/undo: post: - operationId: PostBanUserUndo + operationId: postBanUserUndo parameters: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -2117,10 +2117,17 @@ paths: x-content-type: application/json x-accepts: - application/json - /auth/my-account/moderate-comments/remove-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}: post: - operationId: PostRemoveComment + operationId: postRemoveComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2135,13 +2142,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2154,7 +2154,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostRemoveCommentResponse" + $ref: "#/components/schemas/PostRemoveCommentApiResponse" description: Ok default: content: @@ -2167,10 +2167,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/restore-deleted-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}: post: - operationId: PostRestoreDeletedComment + operationId: postRestoreDeletedComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2185,13 +2192,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2217,10 +2217,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/flag-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}: post: - operationId: PostFlagComment + operationId: postFlagComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2235,13 +2242,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2267,10 +2267,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/un-flag-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}: post: - operationId: PostUnFlagComment + operationId: postUnFlagComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2285,13 +2292,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2317,10 +2317,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/set-comment-review-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}: post: - operationId: PostSetCommentReviewStatus + operationId: postSetCommentReviewStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2342,13 +2349,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2374,10 +2374,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/set-comment-spam-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}: post: - operationId: PostSetCommentSpamStatus + operationId: postSetCommentSpamStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2406,13 +2413,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2438,10 +2438,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/set-comment-approval-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}: post: - operationId: PostSetCommentApprovalStatus + operationId: postSetCommentApprovalStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2463,13 +2470,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2495,10 +2495,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/logs/{commentId}: + /auth/my-account/moderate-comments/mod_api/logs/{commentId}: get: - operationId: GetLogs + operationId: getLogs parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2506,13 +2513,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2538,10 +2538,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/comment/{commentId}: get: - operationId: GetModerationComment + operationId: getModerationComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2563,13 +2570,6 @@ paths: schema: type: boolean style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2595,14 +2595,14 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/comments-by-ids: + /auth/my-account/moderate-comments/mod_api/comments-by-ids: post: - operationId: PostCommentsByIds + operationId: postCommentsByIds parameters: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -2638,10 +2638,17 @@ paths: x-content-type: application/json x-accepts: - application/json - /auth/my-account/moderate-comments/comment-children/{commentId}: + /auth/my-account/moderate-comments/mod_api/comment-children/{commentId}: get: - operationId: GetCommentChildren + operationId: getCommentChildren parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2649,13 +2656,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2681,10 +2681,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-comment-text/{commentId}: + /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}: get: - operationId: GetModerationCommentText + operationId: getModerationCommentText parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2692,13 +2699,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2724,10 +2724,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/set-comment-text/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}: post: - operationId: PostSetCommentText + operationId: postSetCommentText parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2742,13 +2749,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2781,10 +2781,17 @@ paths: x-content-type: application/json x-accepts: - application/json - /auth/my-account/moderate-comments/adjust-comment-votes/{commentId}: + /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}: post: - operationId: PostAdjustCommentVotes + operationId: postAdjustCommentVotes parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2799,13 +2806,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2838,10 +2838,17 @@ paths: x-content-type: application/json x-accepts: - application/json - /auth/my-account/moderate-comments/vote/{commentId}: + /auth/my-account/moderate-comments/mod_api/vote/{commentId}: post: - operationId: PostVote + operationId: postVote parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2863,13 +2870,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2895,10 +2895,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/vote/{commentId}/{voteId}: + /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}: delete: - operationId: DeleteModerationVote + operationId: deleteModerationVote parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2920,13 +2927,6 @@ paths: schema: type: string style: form - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2952,10 +2952,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-comment-ban-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}: get: - operationId: GetCommentBanStatus + operationId: getCommentBanStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2963,13 +2970,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form - explode: true in: query name: sso @@ -2995,14 +2995,14 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/user-ban-preference: + /auth/my-account/moderate-comments/mod_api/user-ban-preference: get: - operationId: GetUserBanPreference + operationId: getUserBanPreference parameters: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -3031,14 +3031,14 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-manual-badges: + /auth/my-account/moderate-comments/mod_api/get-manual-badges: get: - operationId: GetManualBadges + operationId: getManualBadges parameters: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -3067,27 +3067,27 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-manual-badges-for-user: + /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user: get: - operationId: GetManualBadgesForUser + operationId: getManualBadgesForUser parameters: - explode: true in: query - name: badgesUserId - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: commentId + name: badgesUserId required: false schema: type: string style: form - explode: true in: query - name: tenantId + name: commentId required: false schema: type: string @@ -3117,41 +3117,41 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/award-badge: + /auth/my-account/moderate-comments/mod_api/award-badge: put: - operationId: PutAwardBadge + operationId: putAwardBadge parameters: - explode: true in: query - name: badgeId + name: tenantId required: true schema: type: string style: form - explode: true in: query - name: userId - required: false + name: badgeId + required: true schema: type: string style: form - explode: true in: query - name: commentId + name: userId required: false schema: type: string style: form - explode: true in: query - name: broadcastId + name: commentId required: false schema: type: string style: form - explode: true in: query - name: tenantId + name: broadcastId required: false schema: type: string @@ -3181,41 +3181,41 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/remove-badge: + /auth/my-account/moderate-comments/mod_api/remove-badge: put: - operationId: PutRemoveBadge + operationId: putRemoveBadge parameters: - explode: true in: query - name: badgeId + name: tenantId required: true schema: type: string style: form - explode: true in: query - name: userId - required: false + name: badgeId + required: true schema: type: string style: form - explode: true in: query - name: commentId + name: userId required: false schema: type: string style: form - explode: true in: query - name: broadcastId + name: commentId required: false schema: type: string style: form - explode: true in: query - name: tenantId + name: broadcastId required: false schema: type: string @@ -3245,20 +3245,20 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-trust-factor: + /auth/my-account/moderate-comments/mod_api/get-trust-factor: get: - operationId: GetTrustFactor + operationId: getTrustFactor parameters: - explode: true in: query - name: userId - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: tenantId + name: userId required: false schema: type: string @@ -3288,27 +3288,27 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/set-trust-factor: + /auth/my-account/moderate-comments/mod_api/set-trust-factor: put: - operationId: SetTrustFactor + operationId: setTrustFactor parameters: - explode: true in: query - name: userId - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: trustFactor + name: userId required: false schema: type: string style: form - explode: true in: query - name: tenantId + name: trustFactor required: false schema: type: string @@ -3338,20 +3338,20 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-user-internal-profile: + /auth/my-account/moderate-comments/mod_api/get-user-internal-profile: get: - operationId: GetUserInternalProfile + operationId: getUserInternalProfile parameters: - explode: true in: query - name: commentId - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: tenantId + name: commentId required: false schema: type: string @@ -3381,21 +3381,21 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/reopen-thread: + /auth/my-account/moderate-comments/mod_api/reopen-thread: put: - operationId: PutReopenThread + operationId: putReopenThread parameters: - explode: true in: query - name: urlId + name: tenantId required: true schema: type: string style: form - explode: true in: query - name: tenantId - required: false + name: urlId + required: true schema: type: string style: form @@ -3424,21 +3424,21 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/close-thread: + /auth/my-account/moderate-comments/mod_api/close-thread: put: - operationId: PutCloseThread + operationId: putCloseThread parameters: - explode: true in: query - name: urlId + name: tenantId required: true schema: type: string style: form - explode: true in: query - name: tenantId - required: false + name: urlId + required: true schema: type: string style: form @@ -3467,14 +3467,14 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/banned-users/counts: + /auth/my-account/moderate-comments/banned-users/mod_api/counts: get: - operationId: GetCounts + operationId: getCounts parameters: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -8654,7 +8654,7 @@ paths: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -8689,7 +8689,7 @@ paths: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -8721,6 +8721,13 @@ paths: delete: operationId: DeleteHashTag parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: tag @@ -8728,13 +8735,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form requestBody: content: application/json: @@ -8762,6 +8762,13 @@ paths: patch: operationId: PatchHashTag parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: tag @@ -8769,13 +8776,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form requestBody: content: application/json: @@ -25927,11 +25927,11 @@ components: required: - file type: object - PostRemoveCommentResponse: + PostRemoveCommentApiResponse: anyOf: - $ref: "#/components/schemas/DeleteCommentResult" - $ref: "#/components/schemas/RemoveCommentActionResponse" - title: PostRemoveCommentResponse + title: PostRemoveCommentApiResponse GetGifsTrendingResponse: anyOf: - $ref: "#/components/schemas/GifSearchResponse" diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index 066a52fe..2c687ed4 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -193,7 +193,7 @@ public class Example { # **addHashTag** -> CreateHashTagResponse addHashTag().tenantId(tenantId).createHashTagBody(createHashTagBody).execute(); +> CreateHashTagResponse addHashTag(tenantId).createHashTagBody(createHashTagBody).execute(); @@ -222,8 +222,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateHashTagBody createHashTagBody = new CreateHashTagBody(); // CreateHashTagBody | try { - CreateHashTagResponse result = apiInstance.addHashTag() - .tenantId(tenantId) + CreateHashTagResponse result = apiInstance.addHashTag(tenantId) .createHashTagBody(createHashTagBody) .execute(); System.out.println(result); @@ -242,7 +241,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] | +| **tenantId** | **String**| | | | **createHashTagBody** | [**CreateHashTagBody**](CreateHashTagBody.md)| | [optional] | ### Return type @@ -266,7 +265,7 @@ public class Example { # **addHashTagsBulk** -> BulkCreateHashTagsResponse addHashTagsBulk().tenantId(tenantId).bulkCreateHashTagsBody(bulkCreateHashTagsBody).execute(); +> BulkCreateHashTagsResponse addHashTagsBulk(tenantId).bulkCreateHashTagsBody(bulkCreateHashTagsBody).execute(); @@ -295,8 +294,7 @@ public class Example { String tenantId = "tenantId_example"; // String | BulkCreateHashTagsBody bulkCreateHashTagsBody = new BulkCreateHashTagsBody(); // BulkCreateHashTagsBody | try { - BulkCreateHashTagsResponse result = apiInstance.addHashTagsBulk() - .tenantId(tenantId) + BulkCreateHashTagsResponse result = apiInstance.addHashTagsBulk(tenantId) .bulkCreateHashTagsBody(bulkCreateHashTagsBody) .execute(); System.out.println(result); @@ -315,7 +313,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] | +| **tenantId** | **String**| | | | **bulkCreateHashTagsBody** | [**BulkCreateHashTagsBody**](BulkCreateHashTagsBody.md)| | [optional] | ### Return type @@ -2129,7 +2127,7 @@ public class Example { # **deleteHashTag** -> APIEmptyResponse deleteHashTag(tag).tenantId(tenantId).deleteHashTagRequestBody(deleteHashTagRequestBody).execute(); +> APIEmptyResponse deleteHashTag(tenantId, tag).deleteHashTagRequestBody(deleteHashTagRequestBody).execute(); @@ -2155,12 +2153,11 @@ public class Example { //api_key.setApiKeyPrefix("Token"); DefaultApi apiInstance = new DefaultApi(defaultClient); - String tag = "tag_example"; // String | String tenantId = "tenantId_example"; // String | + String tag = "tag_example"; // String | DeleteHashTagRequestBody deleteHashTagRequestBody = new DeleteHashTagRequestBody(); // DeleteHashTagRequestBody | try { - APIEmptyResponse result = apiInstance.deleteHashTag(tag) - .tenantId(tenantId) + APIEmptyResponse result = apiInstance.deleteHashTag(tenantId, tag) .deleteHashTagRequestBody(deleteHashTagRequestBody) .execute(); System.out.println(result); @@ -2179,8 +2176,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **tag** | **String**| | | -| **tenantId** | **String**| | [optional] | | **deleteHashTagRequestBody** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md)| | [optional] | ### Return type @@ -6693,7 +6690,7 @@ public class Example { # **patchHashTag** -> UpdateHashTagResponse patchHashTag(tag).tenantId(tenantId).updateHashTagBody(updateHashTagBody).execute(); +> UpdateHashTagResponse patchHashTag(tenantId, tag).updateHashTagBody(updateHashTagBody).execute(); @@ -6719,12 +6716,11 @@ public class Example { //api_key.setApiKeyPrefix("Token"); DefaultApi apiInstance = new DefaultApi(defaultClient); - String tag = "tag_example"; // String | String tenantId = "tenantId_example"; // String | + String tag = "tag_example"; // String | UpdateHashTagBody updateHashTagBody = new UpdateHashTagBody(); // UpdateHashTagBody | try { - UpdateHashTagResponse result = apiInstance.patchHashTag(tag) - .tenantId(tenantId) + UpdateHashTagResponse result = apiInstance.patchHashTag(tenantId, tag) .updateHashTagBody(updateHashTagBody) .execute(); System.out.println(result); @@ -6743,8 +6739,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **tag** | **String**| | | -| **tenantId** | **String**| | [optional] | | **updateHashTagBody** | [**UpdateHashTagBody**](UpdateHashTagBody.md)| | [optional] | ### Return type diff --git a/client/docs/ModerationApi.md b/client/docs/ModerationApi.md index 4782f4a8..321a21fd 100644 --- a/client/docs/ModerationApi.md +++ b/client/docs/ModerationApi.md @@ -5,54 +5,54 @@ 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**](ModerationApi.md#deleteModerationVote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | | +| [**getApiComments**](ModerationApi.md#getApiComments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | | +| [**getApiExportStatus**](ModerationApi.md#getApiExportStatus) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | | +| [**getApiIds**](ModerationApi.md#getApiIds) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | | +| [**getBanUsersFromComment**](ModerationApi.md#getBanUsersFromComment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | | +| [**getCommentBanStatus**](ModerationApi.md#getCommentBanStatus) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | | +| [**getCommentChildren**](ModerationApi.md#getCommentChildren) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | | +| [**getCount**](ModerationApi.md#getCount) | **GET** /auth/my-account/moderate-comments/mod_api/count | | +| [**getCounts**](ModerationApi.md#getCounts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | | +| [**getLogs**](ModerationApi.md#getLogs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | | +| [**getManualBadges**](ModerationApi.md#getManualBadges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | | +| [**getManualBadgesForUser**](ModerationApi.md#getManualBadgesForUser) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | | +| [**getModerationComment**](ModerationApi.md#getModerationComment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | | +| [**getModerationCommentText**](ModerationApi.md#getModerationCommentText) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | | +| [**getPreBanSummary**](ModerationApi.md#getPreBanSummary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | | +| [**getSearchCommentsSummary**](ModerationApi.md#getSearchCommentsSummary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | | +| [**getSearchPages**](ModerationApi.md#getSearchPages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | | +| [**getSearchSites**](ModerationApi.md#getSearchSites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | | +| [**getSearchSuggest**](ModerationApi.md#getSearchSuggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | | +| [**getSearchUsers**](ModerationApi.md#getSearchUsers) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | | +| [**getTrustFactor**](ModerationApi.md#getTrustFactor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | | +| [**getUserBanPreference**](ModerationApi.md#getUserBanPreference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | | +| [**getUserInternalProfile**](ModerationApi.md#getUserInternalProfile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | | +| [**postAdjustCommentVotes**](ModerationApi.md#postAdjustCommentVotes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | | +| [**postApiExport**](ModerationApi.md#postApiExport) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | | +| [**postBanUserFromComment**](ModerationApi.md#postBanUserFromComment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | | +| [**postBanUserUndo**](ModerationApi.md#postBanUserUndo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | | +| [**postBulkPreBanSummary**](ModerationApi.md#postBulkPreBanSummary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | | +| [**postCommentsByIds**](ModerationApi.md#postCommentsByIds) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | | +| [**postFlagComment**](ModerationApi.md#postFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | | +| [**postRemoveComment**](ModerationApi.md#postRemoveComment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | | +| [**postRestoreDeletedComment**](ModerationApi.md#postRestoreDeletedComment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | | +| [**postSetCommentApprovalStatus**](ModerationApi.md#postSetCommentApprovalStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | | +| [**postSetCommentReviewStatus**](ModerationApi.md#postSetCommentReviewStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | | +| [**postSetCommentSpamStatus**](ModerationApi.md#postSetCommentSpamStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | | +| [**postSetCommentText**](ModerationApi.md#postSetCommentText) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | | +| [**postUnFlagComment**](ModerationApi.md#postUnFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | | +| [**postVote**](ModerationApi.md#postVote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | | +| [**putAwardBadge**](ModerationApi.md#putAwardBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | | +| [**putCloseThread**](ModerationApi.md#putCloseThread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | | +| [**putRemoveBadge**](ModerationApi.md#putRemoveBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | | +| [**putReopenThread**](ModerationApi.md#putReopenThread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | | +| [**setTrustFactor**](ModerationApi.md#setTrustFactor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | | # **deleteModerationVote** -> VoteDeleteResponse deleteModerationVote(commentId, voteId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> VoteDeleteResponse deleteModerationVote(tenantId, commentId, voteId).broadcastId(broadcastId).sso(sso).execute(); @@ -71,15 +71,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String voteId = "voteId_example"; // String | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - VoteDeleteResponse result = apiInstance.deleteModerationVote(commentId, voteId) + VoteDeleteResponse result = apiInstance.deleteModerationVote(tenantId, commentId, voteId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -98,10 +97,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **voteId** | **String**| | | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -125,7 +124,7 @@ No authorization required # **getApiComments** -> ModerationAPIGetCommentsResponse getApiComments().page(page).count(count).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).demo(demo).tenantId(tenantId).sso(sso).execute(); +> ModerationAPIGetCommentsResponse getApiComments(tenantId).page(page).count(count).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).demo(demo).sso(sso).execute(); @@ -144,6 +143,7 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | Double page = 3.4D; // Double | Double count = 3.4D; // Double | String textSearch = "textSearch_example"; // String | @@ -152,10 +152,9 @@ public class Example { String searchFilters = "searchFilters_example"; // String | String sorts = "sorts_example"; // String | Boolean demo = true; // Boolean | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPIGetCommentsResponse result = apiInstance.getApiComments() + ModerationAPIGetCommentsResponse result = apiInstance.getApiComments(tenantId) .page(page) .count(count) .textSearch(textSearch) @@ -164,7 +163,6 @@ public class Example { .searchFilters(searchFilters) .sorts(sorts) .demo(demo) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -183,6 +181,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **page** | **Double**| | [optional] | | **count** | **Double**| | [optional] | | **textSearch** | **String**| | [optional] | @@ -191,7 +190,6 @@ public class Example { | **searchFilters** | **String**| | [optional] | | **sorts** | **String**| | [optional] | | **demo** | **Boolean**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -215,7 +213,7 @@ No authorization required # **getApiExportStatus** -> ModerationExportStatusResponse getApiExportStatus().batchJobId(batchJobId).tenantId(tenantId).sso(sso).execute(); +> ModerationExportStatusResponse getApiExportStatus(tenantId).batchJobId(batchJobId).sso(sso).execute(); @@ -234,13 +232,12 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String batchJobId = "batchJobId_example"; // String | String tenantId = "tenantId_example"; // String | + String batchJobId = "batchJobId_example"; // String | String sso = "sso_example"; // String | try { - ModerationExportStatusResponse result = apiInstance.getApiExportStatus() + ModerationExportStatusResponse result = apiInstance.getApiExportStatus(tenantId) .batchJobId(batchJobId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -259,8 +256,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **batchJobId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -284,7 +281,7 @@ No authorization required # **getApiIds** -> ModerationAPIGetCommentIdsResponse getApiIds().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).afterId(afterId).demo(demo).tenantId(tenantId).sso(sso).execute(); +> ModerationAPIGetCommentIdsResponse getApiIds(tenantId).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).afterId(afterId).demo(demo).sso(sso).execute(); @@ -303,23 +300,22 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | 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 tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPIGetCommentIdsResponse result = apiInstance.getApiIds() + ModerationAPIGetCommentIdsResponse result = apiInstance.getApiIds(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) .searchFilters(searchFilters) .afterId(afterId) .demo(demo) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -338,13 +334,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **textSearch** | **String**| | [optional] | | **byIPFromComment** | **String**| | [optional] | | **filters** | **String**| | [optional] | | **searchFilters** | **String**| | [optional] | | **afterId** | **String**| | [optional] | | **demo** | **Boolean**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -368,7 +364,7 @@ No authorization required # **getBanUsersFromComment** -> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId).tenantId(tenantId).sso(sso).execute(); +> GetBannedUsersFromCommentResponse getBanUsersFromComment(tenantId, commentId).sso(sso).execute(); @@ -387,12 +383,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String commentId = "commentId_example"; // String | String tenantId = "tenantId_example"; // String | + String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - GetBannedUsersFromCommentResponse result = apiInstance.getBanUsersFromComment(commentId) - .tenantId(tenantId) + GetBannedUsersFromCommentResponse result = apiInstance.getBanUsersFromComment(tenantId, commentId) .sso(sso) .execute(); System.out.println(result); @@ -411,8 +406,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -436,7 +431,7 @@ No authorization required # **getCommentBanStatus** -> GetCommentBanStatusResponse getCommentBanStatus(commentId).tenantId(tenantId).sso(sso).execute(); +> GetCommentBanStatusResponse getCommentBanStatus(tenantId, commentId).sso(sso).execute(); @@ -455,12 +450,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String commentId = "commentId_example"; // String | String tenantId = "tenantId_example"; // String | + String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - GetCommentBanStatusResponse result = apiInstance.getCommentBanStatus(commentId) - .tenantId(tenantId) + GetCommentBanStatusResponse result = apiInstance.getCommentBanStatus(tenantId, commentId) .sso(sso) .execute(); System.out.println(result); @@ -479,8 +473,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -504,7 +498,7 @@ No authorization required # **getCommentChildren** -> ModerationAPIChildCommentsResponse getCommentChildren(commentId).tenantId(tenantId).sso(sso).execute(); +> ModerationAPIChildCommentsResponse getCommentChildren(tenantId, commentId).sso(sso).execute(); @@ -523,12 +517,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String commentId = "commentId_example"; // String | String tenantId = "tenantId_example"; // String | + String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPIChildCommentsResponse result = apiInstance.getCommentChildren(commentId) - .tenantId(tenantId) + ModerationAPIChildCommentsResponse result = apiInstance.getCommentChildren(tenantId, commentId) .sso(sso) .execute(); System.out.println(result); @@ -547,8 +540,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -572,7 +565,7 @@ No authorization required # **getCount** -> ModerationAPICountCommentsResponse getCount().textSearch(textSearch).byIPFromComment(byIPFromComment).filter(filter).searchFilters(searchFilters).demo(demo).tenantId(tenantId).sso(sso).execute(); +> ModerationAPICountCommentsResponse getCount(tenantId).textSearch(textSearch).byIPFromComment(byIPFromComment).filter(filter).searchFilters(searchFilters).demo(demo).sso(sso).execute(); @@ -591,21 +584,20 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | 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 tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPICountCommentsResponse result = apiInstance.getCount() + ModerationAPICountCommentsResponse result = apiInstance.getCount(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filter(filter) .searchFilters(searchFilters) .demo(demo) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -624,12 +616,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **textSearch** | **String**| | [optional] | | **byIPFromComment** | **String**| | [optional] | | **filter** | **String**| | [optional] | | **searchFilters** | **String**| | [optional] | | **demo** | **Boolean**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -653,7 +645,7 @@ No authorization required # **getCounts** -> GetBannedUsersCountResponse getCounts().tenantId(tenantId).sso(sso).execute(); +> GetBannedUsersCountResponse getCounts(tenantId).sso(sso).execute(); @@ -675,8 +667,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetBannedUsersCountResponse result = apiInstance.getCounts() - .tenantId(tenantId) + GetBannedUsersCountResponse result = apiInstance.getCounts(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -695,7 +686,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] | +| **tenantId** | **String**| | | | **sso** | **String**| | [optional] | ### Return type @@ -719,7 +710,7 @@ No authorization required # **getLogs** -> ModerationAPIGetLogsResponse getLogs(commentId).tenantId(tenantId).sso(sso).execute(); +> ModerationAPIGetLogsResponse getLogs(tenantId, commentId).sso(sso).execute(); @@ -738,12 +729,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String commentId = "commentId_example"; // String | String tenantId = "tenantId_example"; // String | + String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPIGetLogsResponse result = apiInstance.getLogs(commentId) - .tenantId(tenantId) + ModerationAPIGetLogsResponse result = apiInstance.getLogs(tenantId, commentId) .sso(sso) .execute(); System.out.println(result); @@ -762,8 +752,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -787,7 +777,7 @@ No authorization required # **getManualBadges** -> GetTenantManualBadgesResponse getManualBadges().tenantId(tenantId).sso(sso).execute(); +> GetTenantManualBadgesResponse getManualBadges(tenantId).sso(sso).execute(); @@ -809,8 +799,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetTenantManualBadgesResponse result = apiInstance.getManualBadges() - .tenantId(tenantId) + GetTenantManualBadgesResponse result = apiInstance.getManualBadges(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -829,7 +818,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] | +| **tenantId** | **String**| | | | **sso** | **String**| | [optional] | ### Return type @@ -853,7 +842,7 @@ No authorization required # **getManualBadgesForUser** -> GetUserManualBadgesResponse getManualBadgesForUser().badgesUserId(badgesUserId).commentId(commentId).tenantId(tenantId).sso(sso).execute(); +> GetUserManualBadgesResponse getManualBadgesForUser(tenantId).badgesUserId(badgesUserId).commentId(commentId).sso(sso).execute(); @@ -872,15 +861,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String badgesUserId = "badgesUserId_example"; // String | String commentId = "commentId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetUserManualBadgesResponse result = apiInstance.getManualBadgesForUser() + GetUserManualBadgesResponse result = apiInstance.getManualBadgesForUser(tenantId) .badgesUserId(badgesUserId) .commentId(commentId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -899,9 +887,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **badgesUserId** | **String**| | [optional] | | **commentId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -925,7 +913,7 @@ No authorization required # **getModerationComment** -> ModerationAPICommentResponse getModerationComment(commentId).includeEmail(includeEmail).includeIP(includeIP).tenantId(tenantId).sso(sso).execute(); +> ModerationAPICommentResponse getModerationComment(tenantId, commentId).includeEmail(includeEmail).includeIP(includeIP).sso(sso).execute(); @@ -944,16 +932,15 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean includeEmail = true; // Boolean | Boolean includeIP = true; // Boolean | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPICommentResponse result = apiInstance.getModerationComment(commentId) + ModerationAPICommentResponse result = apiInstance.getModerationComment(tenantId, commentId) .includeEmail(includeEmail) .includeIP(includeIP) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -972,10 +959,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **includeEmail** | **Boolean**| | [optional] | | **includeIP** | **Boolean**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -999,7 +986,7 @@ No authorization required # **getModerationCommentText** -> GetCommentTextResponse getModerationCommentText(commentId).tenantId(tenantId).sso(sso).execute(); +> GetCommentTextResponse getModerationCommentText(tenantId, commentId).sso(sso).execute(); @@ -1018,12 +1005,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String commentId = "commentId_example"; // String | String tenantId = "tenantId_example"; // String | + String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - GetCommentTextResponse result = apiInstance.getModerationCommentText(commentId) - .tenantId(tenantId) + GetCommentTextResponse result = apiInstance.getModerationCommentText(tenantId, commentId) .sso(sso) .execute(); System.out.println(result); @@ -1042,8 +1028,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1067,7 +1053,7 @@ No authorization required # **getPreBanSummary** -> PreBanSummary getPreBanSummary(commentId).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).tenantId(tenantId).sso(sso).execute(); +> PreBanSummary getPreBanSummary(tenantId, commentId).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).sso(sso).execute(); @@ -1086,18 +1072,17 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean includeByUserIdAndEmail = true; // Boolean | Boolean includeByIP = true; // Boolean | Boolean includeByEmailDomain = true; // Boolean | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PreBanSummary result = apiInstance.getPreBanSummary(commentId) + PreBanSummary result = apiInstance.getPreBanSummary(tenantId, commentId) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1116,11 +1101,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **includeByUserIdAndEmail** | **Boolean**| | [optional] | | **includeByIP** | **Boolean**| | [optional] | | **includeByEmailDomain** | **Boolean**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1144,7 +1129,7 @@ No authorization required # **getSearchCommentsSummary** -> ModerationCommentSearchResponse getSearchCommentsSummary().value(value).filters(filters).searchFilters(searchFilters).tenantId(tenantId).sso(sso).execute(); +> ModerationCommentSearchResponse getSearchCommentsSummary(tenantId).value(value).filters(filters).searchFilters(searchFilters).sso(sso).execute(); @@ -1163,17 +1148,16 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String value = "value_example"; // String | String filters = "filters_example"; // String | String searchFilters = "searchFilters_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationCommentSearchResponse result = apiInstance.getSearchCommentsSummary() + ModerationCommentSearchResponse result = apiInstance.getSearchCommentsSummary(tenantId) .value(value) .filters(filters) .searchFilters(searchFilters) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1192,10 +1176,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **value** | **String**| | [optional] | | **filters** | **String**| | [optional] | | **searchFilters** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1219,7 +1203,7 @@ No authorization required # **getSearchPages** -> ModerationPageSearchResponse getSearchPages().value(value).tenantId(tenantId).sso(sso).execute(); +> ModerationPageSearchResponse getSearchPages(tenantId).value(value).sso(sso).execute(); @@ -1238,13 +1222,12 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String value = "value_example"; // String | String tenantId = "tenantId_example"; // String | + String value = "value_example"; // String | String sso = "sso_example"; // String | try { - ModerationPageSearchResponse result = apiInstance.getSearchPages() + ModerationPageSearchResponse result = apiInstance.getSearchPages(tenantId) .value(value) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1263,8 +1246,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **value** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1288,7 +1271,7 @@ No authorization required # **getSearchSites** -> ModerationSiteSearchResponse getSearchSites().value(value).tenantId(tenantId).sso(sso).execute(); +> ModerationSiteSearchResponse getSearchSites(tenantId).value(value).sso(sso).execute(); @@ -1307,13 +1290,12 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String value = "value_example"; // String | String tenantId = "tenantId_example"; // String | + String value = "value_example"; // String | String sso = "sso_example"; // String | try { - ModerationSiteSearchResponse result = apiInstance.getSearchSites() + ModerationSiteSearchResponse result = apiInstance.getSearchSites(tenantId) .value(value) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1332,8 +1314,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **value** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1357,7 +1339,7 @@ No authorization required # **getSearchSuggest** -> ModerationSuggestResponse getSearchSuggest().textSearch(textSearch).tenantId(tenantId).sso(sso).execute(); +> ModerationSuggestResponse getSearchSuggest(tenantId).textSearch(textSearch).sso(sso).execute(); @@ -1376,13 +1358,12 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String textSearch = "textSearch_example"; // String | String tenantId = "tenantId_example"; // String | + String textSearch = "textSearch_example"; // String | String sso = "sso_example"; // String | try { - ModerationSuggestResponse result = apiInstance.getSearchSuggest() + ModerationSuggestResponse result = apiInstance.getSearchSuggest(tenantId) .textSearch(textSearch) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1401,8 +1382,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **textSearch** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1426,7 +1407,7 @@ No authorization required # **getSearchUsers** -> ModerationUserSearchResponse getSearchUsers().value(value).tenantId(tenantId).sso(sso).execute(); +> ModerationUserSearchResponse getSearchUsers(tenantId).value(value).sso(sso).execute(); @@ -1445,13 +1426,12 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String value = "value_example"; // String | String tenantId = "tenantId_example"; // String | + String value = "value_example"; // String | String sso = "sso_example"; // String | try { - ModerationUserSearchResponse result = apiInstance.getSearchUsers() + ModerationUserSearchResponse result = apiInstance.getSearchUsers(tenantId) .value(value) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1470,8 +1450,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **value** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1495,7 +1475,7 @@ No authorization required # **getTrustFactor** -> GetUserTrustFactorResponse getTrustFactor().userId(userId).tenantId(tenantId).sso(sso).execute(); +> GetUserTrustFactorResponse getTrustFactor(tenantId).userId(userId).sso(sso).execute(); @@ -1514,13 +1494,12 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String userId = "userId_example"; // String | String tenantId = "tenantId_example"; // String | + String userId = "userId_example"; // String | String sso = "sso_example"; // String | try { - GetUserTrustFactorResponse result = apiInstance.getTrustFactor() + GetUserTrustFactorResponse result = apiInstance.getTrustFactor(tenantId) .userId(userId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1539,8 +1518,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **userId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1564,7 +1543,7 @@ No authorization required # **getUserBanPreference** -> APIModerateGetUserBanPreferencesResponse getUserBanPreference().tenantId(tenantId).sso(sso).execute(); +> APIModerateGetUserBanPreferencesResponse getUserBanPreference(tenantId).sso(sso).execute(); @@ -1586,8 +1565,7 @@ public class Example { String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIModerateGetUserBanPreferencesResponse result = apiInstance.getUserBanPreference() - .tenantId(tenantId) + APIModerateGetUserBanPreferencesResponse result = apiInstance.getUserBanPreference(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1606,7 +1584,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] | +| **tenantId** | **String**| | | | **sso** | **String**| | [optional] | ### Return type @@ -1630,7 +1608,7 @@ No authorization required # **getUserInternalProfile** -> GetUserInternalProfileResponse getUserInternalProfile().commentId(commentId).tenantId(tenantId).sso(sso).execute(); +> GetUserInternalProfileResponse getUserInternalProfile(tenantId).commentId(commentId).sso(sso).execute(); @@ -1649,13 +1627,12 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String commentId = "commentId_example"; // String | String tenantId = "tenantId_example"; // String | + String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - GetUserInternalProfileResponse result = apiInstance.getUserInternalProfile() + GetUserInternalProfileResponse result = apiInstance.getUserInternalProfile(tenantId) .commentId(commentId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1674,8 +1651,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1699,7 +1676,7 @@ No authorization required # **postAdjustCommentVotes** -> AdjustVotesResponse postAdjustCommentVotes(commentId, adjustCommentVotesParams).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> AdjustVotesResponse postAdjustCommentVotes(tenantId, commentId, adjustCommentVotesParams).broadcastId(broadcastId).sso(sso).execute(); @@ -1718,15 +1695,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | AdjustCommentVotesParams adjustCommentVotesParams = new AdjustCommentVotesParams(); // AdjustCommentVotesParams | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - AdjustVotesResponse result = apiInstance.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + AdjustVotesResponse result = apiInstance.postAdjustCommentVotes(tenantId, commentId, adjustCommentVotesParams) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1745,10 +1721,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **adjustCommentVotesParams** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md)| | | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1772,7 +1748,7 @@ No authorization required # **postApiExport** -> ModerationExportResponse postApiExport().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).tenantId(tenantId).sso(sso).execute(); +> ModerationExportResponse postApiExport(tenantId).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).sso(sso).execute(); @@ -1791,21 +1767,20 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | 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 tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - ModerationExportResponse result = apiInstance.postApiExport() + ModerationExportResponse result = apiInstance.postApiExport(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) .searchFilters(searchFilters) .sorts(sorts) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1824,12 +1799,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **textSearch** | **String**| | [optional] | | **byIPFromComment** | **String**| | [optional] | | **filters** | **String**| | [optional] | | **searchFilters** | **String**| | [optional] | | **sorts** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1853,7 +1828,7 @@ No authorization required # **postBanUserFromComment** -> BanUserFromCommentResult postBanUserFromComment(commentId).banEmail(banEmail).banEmailDomain(banEmailDomain).banIP(banIP).deleteAllUsersComments(deleteAllUsersComments).bannedUntil(bannedUntil).isShadowBan(isShadowBan).updateId(updateId).banReason(banReason).tenantId(tenantId).sso(sso).execute(); +> BanUserFromCommentResult postBanUserFromComment(tenantId, commentId).banEmail(banEmail).banEmailDomain(banEmailDomain).banIP(banIP).deleteAllUsersComments(deleteAllUsersComments).bannedUntil(bannedUntil).isShadowBan(isShadowBan).updateId(updateId).banReason(banReason).sso(sso).execute(); @@ -1872,6 +1847,7 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean banEmail = true; // Boolean | Boolean banEmailDomain = true; // Boolean | @@ -1881,10 +1857,9 @@ public class Example { Boolean isShadowBan = true; // Boolean | String updateId = "updateId_example"; // String | String banReason = "banReason_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - BanUserFromCommentResult result = apiInstance.postBanUserFromComment(commentId) + BanUserFromCommentResult result = apiInstance.postBanUserFromComment(tenantId, commentId) .banEmail(banEmail) .banEmailDomain(banEmailDomain) .banIP(banIP) @@ -1893,7 +1868,6 @@ public class Example { .isShadowBan(isShadowBan) .updateId(updateId) .banReason(banReason) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1912,6 +1886,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **banEmail** | **Boolean**| | [optional] | | **banEmailDomain** | **Boolean**| | [optional] | @@ -1921,7 +1896,6 @@ public class Example { | **isShadowBan** | **Boolean**| | [optional] | | **updateId** | **String**| | [optional] | | **banReason** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1945,7 +1919,7 @@ No authorization required # **postBanUserUndo** -> APIEmptyResponse postBanUserUndo(banUserUndoParams).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postBanUserUndo(tenantId, banUserUndoParams).sso(sso).execute(); @@ -1964,12 +1938,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - BanUserUndoParams banUserUndoParams = new BanUserUndoParams(); // BanUserUndoParams | String tenantId = "tenantId_example"; // String | + BanUserUndoParams banUserUndoParams = new BanUserUndoParams(); // BanUserUndoParams | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postBanUserUndo(banUserUndoParams) - .tenantId(tenantId) + APIEmptyResponse result = apiInstance.postBanUserUndo(tenantId, banUserUndoParams) .sso(sso) .execute(); System.out.println(result); @@ -1988,8 +1961,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **banUserUndoParams** | [**BanUserUndoParams**](BanUserUndoParams.md)| | | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2013,7 +1986,7 @@ No authorization required # **postBulkPreBanSummary** -> BulkPreBanSummary postBulkPreBanSummary(bulkPreBanParams).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).tenantId(tenantId).sso(sso).execute(); +> BulkPreBanSummary postBulkPreBanSummary(tenantId, bulkPreBanParams).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).sso(sso).execute(); @@ -2032,18 +2005,17 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | BulkPreBanParams bulkPreBanParams = new BulkPreBanParams(); // BulkPreBanParams | Boolean includeByUserIdAndEmail = true; // Boolean | Boolean includeByIP = true; // Boolean | Boolean includeByEmailDomain = true; // Boolean | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - BulkPreBanSummary result = apiInstance.postBulkPreBanSummary(bulkPreBanParams) + BulkPreBanSummary result = apiInstance.postBulkPreBanSummary(tenantId, bulkPreBanParams) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2062,11 +2034,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **bulkPreBanParams** | [**BulkPreBanParams**](BulkPreBanParams.md)| | | | **includeByUserIdAndEmail** | **Boolean**| | [optional] | | **includeByIP** | **Boolean**| | [optional] | | **includeByEmailDomain** | **Boolean**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2090,7 +2062,7 @@ No authorization required # **postCommentsByIds** -> ModerationAPIChildCommentsResponse postCommentsByIds(commentsByIdsParams).tenantId(tenantId).sso(sso).execute(); +> ModerationAPIChildCommentsResponse postCommentsByIds(tenantId, commentsByIdsParams).sso(sso).execute(); @@ -2109,12 +2081,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - CommentsByIdsParams commentsByIdsParams = new CommentsByIdsParams(); // CommentsByIdsParams | String tenantId = "tenantId_example"; // String | + CommentsByIdsParams commentsByIdsParams = new CommentsByIdsParams(); // CommentsByIdsParams | String sso = "sso_example"; // String | try { - ModerationAPIChildCommentsResponse result = apiInstance.postCommentsByIds(commentsByIdsParams) - .tenantId(tenantId) + ModerationAPIChildCommentsResponse result = apiInstance.postCommentsByIds(tenantId, commentsByIdsParams) .sso(sso) .execute(); System.out.println(result); @@ -2133,8 +2104,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentsByIdsParams** | [**CommentsByIdsParams**](CommentsByIdsParams.md)| | | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2158,7 +2129,7 @@ No authorization required # **postFlagComment** -> APIEmptyResponse postFlagComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postFlagComment(tenantId, commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2177,14 +2148,13 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postFlagComment(commentId) + APIEmptyResponse result = apiInstance.postFlagComment(tenantId, commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2203,9 +2173,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2229,7 +2199,7 @@ No authorization required # **postRemoveComment** -> PostRemoveCommentResponse postRemoveComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> PostRemoveCommentApiResponse postRemoveComment(tenantId, commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2248,14 +2218,13 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - PostRemoveCommentResponse result = apiInstance.postRemoveComment(commentId) + PostRemoveCommentApiResponse result = apiInstance.postRemoveComment(tenantId, commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2274,14 +2243,14 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) +[**PostRemoveCommentApiResponse**](PostRemoveCommentApiResponse.md) ### Authorization @@ -2300,7 +2269,7 @@ No authorization required # **postRestoreDeletedComment** -> APIEmptyResponse postRestoreDeletedComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postRestoreDeletedComment(tenantId, commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2319,14 +2288,13 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postRestoreDeletedComment(commentId) + APIEmptyResponse result = apiInstance.postRestoreDeletedComment(tenantId, commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2345,9 +2313,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2371,7 +2339,7 @@ No authorization required # **postSetCommentApprovalStatus** -> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId).approved(approved).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> SetCommentApprovedResponse postSetCommentApprovalStatus(tenantId, commentId).approved(approved).broadcastId(broadcastId).sso(sso).execute(); @@ -2390,16 +2358,15 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean approved = true; // Boolean | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - SetCommentApprovedResponse result = apiInstance.postSetCommentApprovalStatus(commentId) + SetCommentApprovedResponse result = apiInstance.postSetCommentApprovalStatus(tenantId, commentId) .approved(approved) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2418,10 +2385,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **approved** | **Boolean**| | [optional] | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2445,7 +2412,7 @@ No authorization required # **postSetCommentReviewStatus** -> APIEmptyResponse postSetCommentReviewStatus(commentId).reviewed(reviewed).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postSetCommentReviewStatus(tenantId, commentId).reviewed(reviewed).broadcastId(broadcastId).sso(sso).execute(); @@ -2464,16 +2431,15 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean reviewed = true; // Boolean | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postSetCommentReviewStatus(commentId) + APIEmptyResponse result = apiInstance.postSetCommentReviewStatus(tenantId, commentId) .reviewed(reviewed) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2492,10 +2458,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **reviewed** | **Boolean**| | [optional] | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2519,7 +2485,7 @@ No authorization required # **postSetCommentSpamStatus** -> APIEmptyResponse postSetCommentSpamStatus(commentId).spam(spam).permNotSpam(permNotSpam).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postSetCommentSpamStatus(tenantId, commentId).spam(spam).permNotSpam(permNotSpam).broadcastId(broadcastId).sso(sso).execute(); @@ -2538,18 +2504,17 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean spam = true; // Boolean | Boolean permNotSpam = true; // Boolean | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postSetCommentSpamStatus(commentId) + APIEmptyResponse result = apiInstance.postSetCommentSpamStatus(tenantId, commentId) .spam(spam) .permNotSpam(permNotSpam) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2568,11 +2533,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **spam** | **Boolean**| | [optional] | | **permNotSpam** | **Boolean**| | [optional] | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2596,7 +2561,7 @@ No authorization required # **postSetCommentText** -> SetCommentTextResponse postSetCommentText(commentId, setCommentTextParams).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> SetCommentTextResponse postSetCommentText(tenantId, commentId, setCommentTextParams).broadcastId(broadcastId).sso(sso).execute(); @@ -2615,15 +2580,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | SetCommentTextParams setCommentTextParams = new SetCommentTextParams(); // SetCommentTextParams | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - SetCommentTextResponse result = apiInstance.postSetCommentText(commentId, setCommentTextParams) + SetCommentTextResponse result = apiInstance.postSetCommentText(tenantId, commentId, setCommentTextParams) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2642,10 +2606,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **setCommentTextParams** | [**SetCommentTextParams**](SetCommentTextParams.md)| | | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2669,7 +2633,7 @@ No authorization required # **postUnFlagComment** -> APIEmptyResponse postUnFlagComment(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse postUnFlagComment(tenantId, commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2688,14 +2652,13 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postUnFlagComment(commentId) + APIEmptyResponse result = apiInstance.postUnFlagComment(tenantId, commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2714,9 +2677,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2740,7 +2703,7 @@ No authorization required # **postVote** -> VoteResponse postVote(commentId).direction(direction).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> VoteResponse postVote(tenantId, commentId).direction(direction).broadcastId(broadcastId).sso(sso).execute(); @@ -2759,16 +2722,15 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String direction = "direction_example"; // String | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - VoteResponse result = apiInstance.postVote(commentId) + VoteResponse result = apiInstance.postVote(tenantId, commentId) .direction(direction) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2787,10 +2749,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **direction** | **String**| | [optional] | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2814,7 +2776,7 @@ No authorization required # **putAwardBadge** -> AwardUserBadgeResponse putAwardBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> AwardUserBadgeResponse putAwardBadge(tenantId, badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2833,18 +2795,17 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String badgeId = "badgeId_example"; // String | String userId = "userId_example"; // String | String commentId = "commentId_example"; // String | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - AwardUserBadgeResponse result = apiInstance.putAwardBadge(badgeId) + AwardUserBadgeResponse result = apiInstance.putAwardBadge(tenantId, badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -2863,11 +2824,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **badgeId** | **String**| | | | **userId** | **String**| | [optional] | | **commentId** | **String**| | [optional] | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2891,7 +2852,7 @@ No authorization required # **putCloseThread** -> APIEmptyResponse putCloseThread(urlId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse putCloseThread(tenantId, urlId).sso(sso).execute(); @@ -2910,12 +2871,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String urlId = "urlId_example"; // String | String tenantId = "tenantId_example"; // String | + String urlId = "urlId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.putCloseThread(urlId) - .tenantId(tenantId) + APIEmptyResponse result = apiInstance.putCloseThread(tenantId, urlId) .sso(sso) .execute(); System.out.println(result); @@ -2934,8 +2894,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **urlId** | **String**| | | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2959,7 +2919,7 @@ No authorization required # **putRemoveBadge** -> RemoveUserBadgeResponse putRemoveBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).tenantId(tenantId).sso(sso).execute(); +> RemoveUserBadgeResponse putRemoveBadge(tenantId, badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2978,18 +2938,17 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String badgeId = "badgeId_example"; // String | String userId = "userId_example"; // String | String commentId = "commentId_example"; // String | String broadcastId = "broadcastId_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - RemoveUserBadgeResponse result = apiInstance.putRemoveBadge(badgeId) + RemoveUserBadgeResponse result = apiInstance.putRemoveBadge(tenantId, badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -3008,11 +2967,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **badgeId** | **String**| | | | **userId** | **String**| | [optional] | | **commentId** | **String**| | [optional] | | **broadcastId** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -3036,7 +2995,7 @@ No authorization required # **putReopenThread** -> APIEmptyResponse putReopenThread(urlId).tenantId(tenantId).sso(sso).execute(); +> APIEmptyResponse putReopenThread(tenantId, urlId).sso(sso).execute(); @@ -3055,12 +3014,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); - String urlId = "urlId_example"; // String | String tenantId = "tenantId_example"; // String | + String urlId = "urlId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.putReopenThread(urlId) - .tenantId(tenantId) + APIEmptyResponse result = apiInstance.putReopenThread(tenantId, urlId) .sso(sso) .execute(); System.out.println(result); @@ -3079,8 +3037,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **urlId** | **String**| | | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -3104,7 +3062,7 @@ No authorization required # **setTrustFactor** -> SetUserTrustFactorResponse setTrustFactor().userId(userId).trustFactor(trustFactor).tenantId(tenantId).sso(sso).execute(); +> SetUserTrustFactorResponse setTrustFactor(tenantId).userId(userId).trustFactor(trustFactor).sso(sso).execute(); @@ -3123,15 +3081,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String userId = "userId_example"; // String | String trustFactor = "trustFactor_example"; // String | - String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - SetUserTrustFactorResponse result = apiInstance.setTrustFactor() + SetUserTrustFactorResponse result = apiInstance.setTrustFactor(tenantId) .userId(userId) .trustFactor(trustFactor) - .tenantId(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -3150,9 +3107,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **userId** | **String**| | [optional] | | **trustFactor** | **String**| | [optional] | -| **tenantId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentApiResponse.md similarity index 85% rename from client/docs/PostRemoveCommentResponse.md rename to client/docs/PostRemoveCommentApiResponse.md index ad9d1d96..82d83cc4 100644 --- a/client/docs/PostRemoveCommentResponse.md +++ b/client/docs/PostRemoveCommentApiResponse.md @@ -1,6 +1,6 @@ -# PostRemoveCommentResponse +# PostRemoveCommentApiResponse ## Properties diff --git a/client/src/main/java/com/fastcomments/api/DefaultApi.java b/client/src/main/java/com/fastcomments/api/DefaultApi.java index 677aced1..84df6073 100644 --- a/client/src/main/java/com/fastcomments/api/DefaultApi.java +++ b/client/src/main/java/com/fastcomments/api/DefaultApi.java @@ -377,7 +377,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal public APIaddDomainConfigRequest addDomainConfig(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull AddDomainConfigParams addDomainConfigParams) { return new APIaddDomainConfigRequest(tenantId, addDomainConfigParams); } - private okhttp3.Call addHashTagCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -427,19 +427,24 @@ private okhttp3.Call addHashTagCall(@javax.annotation.Nullable String tenantId, } @SuppressWarnings("rawtypes") - private okhttp3.Call addHashTagValidateBeforeCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, 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 addHashTag(Async)"); + } + return addHashTagCall(tenantId, createHashTagBody, _callback); } - private ApiResponse addHashTagWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody) throws ApiException { + private ApiResponse addHashTagWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody) throws ApiException { okhttp3.Call localVarCall = addHashTagValidateBeforeCall(tenantId, createHashTagBody, null); 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.Nonnull String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addHashTagValidateBeforeCall(tenantId, createHashTagBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -448,22 +453,13 @@ private okhttp3.Call addHashTagAsync(@javax.annotation.Nullable String tenantId, } public class APIaddHashTagRequest { - @javax.annotation.Nullable - private String tenantId; + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private CreateHashTagBody createHashTagBody; - private APIaddHashTagRequest() { - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIaddHashTagRequest - */ - public APIaddHashTagRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIaddHashTagRequest(@javax.annotation.Nonnull String tenantId) { this.tenantId = tenantId; - return this; } /** @@ -547,6 +543,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb /** * * + * @param tenantId (required) * @return APIaddHashTagRequest * @http.response.details @@ -556,10 +553,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callb
0 Error -
*/ - public APIaddHashTagRequest addHashTag() { - return new APIaddHashTagRequest(); + public APIaddHashTagRequest addHashTag(@javax.annotation.Nonnull String tenantId) { + return new APIaddHashTagRequest(tenantId); } - private okhttp3.Call addHashTagsBulkCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagsBulkCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -609,19 +606,24 @@ private okhttp3.Call addHashTagsBulkCall(@javax.annotation.Nullable String tenan } @SuppressWarnings("rawtypes") - private okhttp3.Call addHashTagsBulkValidateBeforeCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagsBulkValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, 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 addHashTagsBulk(Async)"); + } + return addHashTagsBulkCall(tenantId, bulkCreateHashTagsBody, _callback); } - private ApiResponse addHashTagsBulkWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody) throws ApiException { + private ApiResponse addHashTagsBulkWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody) throws ApiException { okhttp3.Call localVarCall = addHashTagsBulkValidateBeforeCall(tenantId, bulkCreateHashTagsBody, null); 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.Nonnull String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addHashTagsBulkValidateBeforeCall(tenantId, bulkCreateHashTagsBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -630,22 +632,13 @@ private okhttp3.Call addHashTagsBulkAsync(@javax.annotation.Nullable String tena } public class APIaddHashTagsBulkRequest { - @javax.annotation.Nullable - private String tenantId; + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private BulkCreateHashTagsBody bulkCreateHashTagsBody; - private APIaddHashTagsBulkRequest() { - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIaddHashTagsBulkRequest - */ - public APIaddHashTagsBulkRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIaddHashTagsBulkRequest(@javax.annotation.Nonnull String tenantId) { this.tenantId = tenantId; - return this; } /** @@ -729,6 +722,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ /** * * + * @param tenantId (required) * @return APIaddHashTagsBulkRequest * @http.response.details @@ -738,8 +732,8 @@ public okhttp3.Call executeAsync(final ApiCallback _
0 Error -
*/ - public APIaddHashTagsBulkRequest addHashTagsBulk() { - return new APIaddHashTagsBulkRequest(); + public APIaddHashTagsBulkRequest addHashTagsBulk(@javax.annotation.Nonnull String tenantId) { + return new APIaddHashTagsBulkRequest(tenantId); } private okhttp3.Call addPageCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateAPIPageData createAPIPageData, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -5424,7 +5418,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 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 DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteHashTagCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5475,51 +5469,47 @@ 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 DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteHashTagValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, 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 deleteHashTag(Async)"); + } + // 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, deleteHashTagRequestBody, _callback); + return deleteHashTagCall(tenantId, tag, deleteHashTagRequestBody, _callback); } - 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); + private ApiResponse deleteHashTagWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody) throws ApiException { + okhttp3.Call localVarCall = deleteHashTagValidateBeforeCall(tenantId, tag, 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 DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteHashTagAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteHashTagValidateBeforeCall(tag, tenantId, deleteHashTagRequestBody, _callback); + okhttp3.Call localVarCall = deleteHashTagValidateBeforeCall(tenantId, tag, deleteHashTagRequestBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteHashTagRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String tag; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private DeleteHashTagRequestBody deleteHashTagRequestBody; - private APIdeleteHashTagRequest(@javax.annotation.Nonnull String tag) { - this.tag = tag; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIdeleteHashTagRequest - */ - public APIdeleteHashTagRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIdeleteHashTagRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag) { this.tenantId = tenantId; - return this; + this.tag = tag; } /** @@ -5546,7 +5536,7 @@ public APIdeleteHashTagRequest deleteHashTagRequestBody(@javax.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteHashTagCall(tag, tenantId, deleteHashTagRequestBody, _callback); + return deleteHashTagCall(tenantId, tag, deleteHashTagRequestBody, _callback); } /** @@ -5562,7 +5552,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); + ApiResponse localVarResp = deleteHashTagWithHttpInfo(tenantId, tag, deleteHashTagRequestBody); return localVarResp.getData(); } @@ -5579,7 +5569,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); + return deleteHashTagWithHttpInfo(tenantId, tag, deleteHashTagRequestBody); } /** @@ -5596,13 +5586,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteHashTagAsync(tag, tenantId, deleteHashTagRequestBody, _callback); + return deleteHashTagAsync(tenantId, tag, deleteHashTagRequestBody, _callback); } } /** * * + * @param tenantId (required) * @param tag (required) * @return APIdeleteHashTagRequest * @http.response.details @@ -5613,8 +5604,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIdeleteHashTagRequest deleteHashTag(@javax.annotation.Nonnull String tag) { - return new APIdeleteHashTagRequest(tag); + public APIdeleteHashTagRequest deleteHashTag(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag) { + return new APIdeleteHashTagRequest(tenantId, tag); } private okhttp3.Call deleteModeratorCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String sendEmail, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -17415,7 +17406,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c public APIpatchDomainConfigRequest patchDomainConfig(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domainToUpdate, @javax.annotation.Nonnull PatchDomainConfigParams patchDomainConfigParams) { return new APIpatchDomainConfigRequest(tenantId, domainToUpdate, patchDomainConfigParams); } - private okhttp3.Call patchHashTagCall(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchHashTagCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -17466,51 +17457,47 @@ private okhttp3.Call patchHashTagCall(@javax.annotation.Nonnull String tag, @jav } @SuppressWarnings("rawtypes") - private okhttp3.Call patchHashTagValidateBeforeCall(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchHashTagValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, 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 patchHashTag(Async)"); + } + // verify the required parameter 'tag' is set if (tag == null) { throw new ApiException("Missing the required parameter 'tag' when calling patchHashTag(Async)"); } - return patchHashTagCall(tag, tenantId, updateHashTagBody, _callback); + return patchHashTagCall(tenantId, tag, updateHashTagBody, _callback); } - 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); + private ApiResponse patchHashTagWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody) throws ApiException { + okhttp3.Call localVarCall = patchHashTagValidateBeforeCall(tenantId, tag, updateHashTagBody, null); 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 tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchHashTagValidateBeforeCall(tag, tenantId, updateHashTagBody, _callback); + okhttp3.Call localVarCall = patchHashTagValidateBeforeCall(tenantId, tag, updateHashTagBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchHashTagRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String tag; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private UpdateHashTagBody updateHashTagBody; - private APIpatchHashTagRequest(@javax.annotation.Nonnull String tag) { - this.tag = tag; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpatchHashTagRequest - */ - public APIpatchHashTagRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIpatchHashTagRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag) { this.tenantId = tenantId; - return this; + this.tag = tag; } /** @@ -17537,7 +17524,7 @@ public APIpatchHashTagRequest updateHashTagBody(@javax.annotation.Nullable Updat */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchHashTagCall(tag, tenantId, updateHashTagBody, _callback); + return patchHashTagCall(tenantId, tag, updateHashTagBody, _callback); } /** @@ -17553,7 +17540,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public UpdateHashTagResponse execute() throws ApiException { - ApiResponse localVarResp = patchHashTagWithHttpInfo(tag, tenantId, updateHashTagBody); + ApiResponse localVarResp = patchHashTagWithHttpInfo(tenantId, tag, updateHashTagBody); return localVarResp.getData(); } @@ -17570,7 +17557,7 @@ public UpdateHashTagResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return patchHashTagWithHttpInfo(tag, tenantId, updateHashTagBody); + return patchHashTagWithHttpInfo(tenantId, tag, updateHashTagBody); } /** @@ -17587,13 +17574,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchHashTagAsync(tag, tenantId, updateHashTagBody, _callback); + return patchHashTagAsync(tenantId, tag, updateHashTagBody, _callback); } } /** * * + * @param tenantId (required) * @param tag (required) * @return APIpatchHashTagRequest * @http.response.details @@ -17604,8 +17592,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callb 0 Error - */ - public APIpatchHashTagRequest patchHashTag(@javax.annotation.Nonnull String tag) { - return new APIpatchHashTagRequest(tag); + public APIpatchHashTagRequest patchHashTag(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag) { + return new APIpatchHashTagRequest(tenantId, tag); } private okhttp3.Call patchPageCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateAPIPageData updateAPIPageData, final ApiCallback _callback) throws ApiException { String basePath = null; diff --git a/client/src/main/java/com/fastcomments/api/ModerationApi.java b/client/src/main/java/com/fastcomments/api/ModerationApi.java index 433c0c45..915f327f 100644 --- a/client/src/main/java/com/fastcomments/api/ModerationApi.java +++ b/client/src/main/java/com/fastcomments/api/ModerationApi.java @@ -59,7 +59,7 @@ import com.fastcomments.model.ModerationSiteSearchResponse; import com.fastcomments.model.ModerationSuggestResponse; import com.fastcomments.model.ModerationUserSearchResponse; -import com.fastcomments.model.PostRemoveCommentResponse; +import com.fastcomments.model.PostRemoveCommentApiResponse; import com.fastcomments.model.PreBanSummary; import com.fastcomments.model.RemoveUserBadgeResponse; import com.fastcomments.model.SetCommentApprovedResponse; @@ -112,7 +112,7 @@ 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -129,7 +129,7 @@ private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String c Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())) .replace("{" + "voteId" + "}", localVarApiClient.escapeString(voteId.toString())); @@ -139,14 +139,14 @@ private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String c Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (broadcastId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -171,7 +171,12 @@ private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String c } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteModerationVoteValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteModerationVoteValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @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 deleteModerationVote(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling deleteModerationVote(Async)"); @@ -182,26 +187,28 @@ private okhttp3.Call deleteModerationVoteValidateBeforeCall(@javax.annotation.No throw new ApiException("Missing the required parameter 'voteId' when calling deleteModerationVote(Async)"); } - return deleteModerationVoteCall(commentId, voteId, broadcastId, tenantId, sso, _callback); + return deleteModerationVoteCall(tenantId, commentId, voteId, broadcastId, sso, _callback); } - private ApiResponse deleteModerationVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(commentId, voteId, broadcastId, tenantId, sso, null); + private ApiResponse deleteModerationVoteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(tenantId, commentId, voteId, broadcastId, 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteModerationVoteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(commentId, voteId, broadcastId, tenantId, sso, _callback); + okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(tenantId, commentId, voteId, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteModerationVoteRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nonnull @@ -209,11 +216,10 @@ public class APIdeleteModerationVoteRequest { @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIdeleteModerationVoteRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { + private APIdeleteModerationVoteRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { + this.tenantId = tenantId; this.commentId = commentId; this.voteId = voteId; } @@ -228,16 +234,6 @@ public APIdeleteModerationVoteRequest broadcastId(@javax.annotation.Nullable Str return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIdeleteModerationVoteRequest - */ - public APIdeleteModerationVoteRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -262,7 +258,7 @@ public APIdeleteModerationVoteRequest sso(@javax.annotation.Nullable String sso) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteModerationVoteCall(commentId, voteId, broadcastId, tenantId, sso, _callback); + return deleteModerationVoteCall(tenantId, commentId, voteId, broadcastId, sso, _callback); } /** @@ -278,7 +274,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public VoteDeleteResponse execute() throws ApiException { - ApiResponse localVarResp = deleteModerationVoteWithHttpInfo(commentId, voteId, broadcastId, tenantId, sso); + ApiResponse localVarResp = deleteModerationVoteWithHttpInfo(tenantId, commentId, voteId, broadcastId, sso); return localVarResp.getData(); } @@ -295,7 +291,7 @@ public VoteDeleteResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteModerationVoteWithHttpInfo(commentId, voteId, broadcastId, tenantId, sso); + return deleteModerationVoteWithHttpInfo(tenantId, commentId, voteId, broadcastId, sso); } /** @@ -312,13 +308,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteModerationVoteAsync(commentId, voteId, broadcastId, tenantId, sso, _callback); + return deleteModerationVoteAsync(tenantId, commentId, voteId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @param voteId (required) * @return APIdeleteModerationVoteRequest @@ -330,10 +327,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback 0 Error - */ - public APIdeleteModerationVoteRequest deleteModerationVote(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { - return new APIdeleteModerationVoteRequest(commentId, voteId); + public APIdeleteModerationVoteRequest deleteModerationVote(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { + return new APIdeleteModerationVoteRequest(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiCommentsCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -350,7 +347,7 @@ private okhttp3.Call getApiCommentsCall(@javax.annotation.Nullable Double page, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/api/comments"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/api/comments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -358,6 +355,10 @@ private okhttp3.Call getApiCommentsCall(@javax.annotation.Nullable Double page, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } @@ -390,10 +391,6 @@ private okhttp3.Call getApiCommentsCall(@javax.annotation.Nullable Double page, localVarQueryParams.addAll(localVarApiClient.parameterToPair("demo", demo)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -418,27 +415,34 @@ private okhttp3.Call getApiCommentsCall(@javax.annotation.Nullable Double page, } @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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getApiCommentsCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso, _callback); + private okhttp3.Call getApiCommentsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @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 { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getApiComments(Async)"); + } + + return getApiCommentsCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso, null); + private ApiResponse getApiCommentsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @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(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiCommentsAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(tenantId, 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.Nonnull + private final String tenantId; @javax.annotation.Nullable private Double page; @javax.annotation.Nullable @@ -456,11 +460,10 @@ public class APIgetApiCommentsRequest { @javax.annotation.Nullable private Boolean demo; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetApiCommentsRequest() { + private APIgetApiCommentsRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -543,16 +546,6 @@ public APIgetApiCommentsRequest demo(@javax.annotation.Nullable Boolean demo) { return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetApiCommentsRequest - */ - public APIgetApiCommentsRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -577,7 +570,7 @@ public APIgetApiCommentsRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getApiCommentsCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso, _callback); + return getApiCommentsCall(tenantId, page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); } /** @@ -593,7 +586,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPIGetCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = getApiCommentsWithHttpInfo(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso); + ApiResponse localVarResp = getApiCommentsWithHttpInfo(tenantId, page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso); return localVarResp.getData(); } @@ -610,7 +603,7 @@ public ModerationAPIGetCommentsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getApiCommentsWithHttpInfo(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso); + return getApiCommentsWithHttpInfo(tenantId, page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso); } /** @@ -627,13 +620,14 @@ public ApiResponse executeWithHttpInfo() throw */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getApiCommentsAsync(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso, _callback); + return getApiCommentsAsync(tenantId, page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetApiCommentsRequest * @http.response.details @@ -643,10 +637,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetApiCommentsRequest getApiComments() { - return new APIgetApiCommentsRequest(); + public APIgetApiCommentsRequest getApiComments(@javax.annotation.Nonnull String tenantId) { + return new APIgetApiCommentsRequest(tenantId); } - private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -663,7 +657,7 @@ private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String ba Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/api/export/status"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/api/export/status"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -671,14 +665,14 @@ private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String ba Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (batchJobId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("batchJobId", batchJobId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (batchJobId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("batchJobId", batchJobId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -703,35 +697,41 @@ private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String ba } @SuppressWarnings("rawtypes") - private okhttp3.Call getApiExportStatusValidateBeforeCall(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getApiExportStatusCall(batchJobId, tenantId, sso, _callback); + private okhttp3.Call getApiExportStatusValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String batchJobId, @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 getApiExportStatus(Async)"); + } + + return getApiExportStatusCall(tenantId, batchJobId, sso, _callback); } - private ApiResponse getApiExportStatusWithHttpInfo(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(batchJobId, tenantId, sso, null); + private ApiResponse getApiExportStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiExportStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(batchJobId, tenantId, sso, _callback); + okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(tenantId, batchJobId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetApiExportStatusRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String batchJobId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetApiExportStatusRequest() { + private APIgetApiExportStatusRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -744,16 +744,6 @@ public APIgetApiExportStatusRequest batchJobId(@javax.annotation.Nullable String return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetApiExportStatusRequest - */ - public APIgetApiExportStatusRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -778,7 +768,7 @@ public APIgetApiExportStatusRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getApiExportStatusCall(batchJobId, tenantId, sso, _callback); + return getApiExportStatusCall(tenantId, batchJobId, sso, _callback); } /** @@ -794,7 +784,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationExportStatusResponse execute() throws ApiException { - ApiResponse localVarResp = getApiExportStatusWithHttpInfo(batchJobId, tenantId, sso); + ApiResponse localVarResp = getApiExportStatusWithHttpInfo(tenantId, batchJobId, sso); return localVarResp.getData(); } @@ -811,7 +801,7 @@ public ModerationExportStatusResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getApiExportStatusWithHttpInfo(batchJobId, tenantId, sso); + return getApiExportStatusWithHttpInfo(tenantId, batchJobId, sso); } /** @@ -828,13 +818,14 @@ public ApiResponse executeWithHttpInfo() throws */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getApiExportStatusAsync(batchJobId, tenantId, sso, _callback); + return getApiExportStatusAsync(tenantId, batchJobId, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetApiExportStatusRequest * @http.response.details @@ -844,10 +835,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetApiExportStatusRequest getApiExportStatus() { - return new APIgetApiExportStatusRequest(); + public APIgetApiExportStatusRequest getApiExportStatus(@javax.annotation.Nonnull String tenantId) { + return new APIgetApiExportStatusRequest(tenantId); } - 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiIdsCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -864,7 +855,7 @@ private okhttp3.Call getApiIdsCall(@javax.annotation.Nullable String textSearch, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/api/ids"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/api/ids"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -872,6 +863,10 @@ private okhttp3.Call getApiIdsCall(@javax.annotation.Nullable String textSearch, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (textSearch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); } @@ -896,10 +891,6 @@ private okhttp3.Call getApiIdsCall(@javax.annotation.Nullable String textSearch, localVarQueryParams.addAll(localVarApiClient.parameterToPair("demo", demo)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -924,27 +915,34 @@ private okhttp3.Call getApiIdsCall(@javax.annotation.Nullable String textSearch, } @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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getApiIdsCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso, _callback); + private okhttp3.Call getApiIdsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @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 { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getApiIds(Async)"); + } + + return getApiIdsCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso, null); + private ApiResponse getApiIdsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @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(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiIdsAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(tenantId, 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.Nonnull + private final String tenantId; @javax.annotation.Nullable private String textSearch; @javax.annotation.Nullable @@ -958,11 +956,10 @@ public class APIgetApiIdsRequest { @javax.annotation.Nullable private Boolean demo; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetApiIdsRequest() { + private APIgetApiIdsRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -1025,16 +1022,6 @@ public APIgetApiIdsRequest demo(@javax.annotation.Nullable Boolean demo) { return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetApiIdsRequest - */ - public APIgetApiIdsRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -1059,7 +1046,7 @@ public APIgetApiIdsRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getApiIdsCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso, _callback); + return getApiIdsCall(tenantId, textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); } /** @@ -1075,7 +1062,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPIGetCommentIdsResponse execute() throws ApiException { - ApiResponse localVarResp = getApiIdsWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso); + ApiResponse localVarResp = getApiIdsWithHttpInfo(tenantId, textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso); return localVarResp.getData(); } @@ -1092,7 +1079,7 @@ public ModerationAPIGetCommentIdsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getApiIdsWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso); + return getApiIdsWithHttpInfo(tenantId, textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso); } /** @@ -1109,13 +1096,14 @@ public ApiResponse executeWithHttpInfo() thr */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getApiIdsAsync(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso, _callback); + return getApiIdsAsync(tenantId, textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetApiIdsRequest * @http.response.details @@ -1125,10 +1113,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetApiIdsRequest getApiIds() { - return new APIgetApiIdsRequest(); + public APIgetApiIdsRequest getApiIds(@javax.annotation.Nonnull String tenantId) { + return new APIgetApiIdsRequest(tenantId); } - private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1145,7 +1133,7 @@ private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -1182,51 +1170,47 @@ private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call getBanUsersFromCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBanUsersFromCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @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 getBanUsersFromComment(Async)"); + } + // 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, tenantId, sso, _callback); + return getBanUsersFromCommentCall(tenantId, commentId, sso, _callback); } - private ApiResponse getBanUsersFromCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(commentId, tenantId, sso, null); + private ApiResponse getBanUsersFromCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBanUsersFromCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(commentId, tenantId, sso, _callback); + okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetBanUsersFromCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetBanUsersFromCommentRequest(@javax.annotation.Nonnull String commentId) { - this.commentId = commentId; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetBanUsersFromCommentRequest - */ - public APIgetBanUsersFromCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIgetBanUsersFromCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { this.tenantId = tenantId; - return this; + this.commentId = commentId; } /** @@ -1253,7 +1237,7 @@ public APIgetBanUsersFromCommentRequest sso(@javax.annotation.Nullable String ss */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getBanUsersFromCommentCall(commentId, tenantId, sso, _callback); + return getBanUsersFromCommentCall(tenantId, commentId, sso, _callback); } /** @@ -1269,7 +1253,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetBannedUsersFromCommentResponse execute() throws ApiException { - ApiResponse localVarResp = getBanUsersFromCommentWithHttpInfo(commentId, tenantId, sso); + ApiResponse localVarResp = getBanUsersFromCommentWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -1286,7 +1270,7 @@ public GetBannedUsersFromCommentResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getBanUsersFromCommentWithHttpInfo(commentId, tenantId, sso); + return getBanUsersFromCommentWithHttpInfo(tenantId, commentId, sso); } /** @@ -1303,13 +1287,14 @@ public ApiResponse executeWithHttpInfo() thro */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getBanUsersFromCommentAsync(commentId, tenantId, sso, _callback); + return getBanUsersFromCommentAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetBanUsersFromCommentRequest * @http.response.details @@ -1320,10 +1305,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetBanUsersFromCommentRequest getBanUsersFromComment(@javax.annotation.Nonnull String commentId) { - return new APIgetBanUsersFromCommentRequest(commentId); + public APIgetBanUsersFromCommentRequest getBanUsersFromComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetBanUsersFromCommentRequest(tenantId, commentId); } - private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1340,7 +1325,7 @@ private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String co Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -1377,51 +1362,47 @@ private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String co } @SuppressWarnings("rawtypes") - private okhttp3.Call getCommentBanStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentBanStatusValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @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 getCommentBanStatus(Async)"); + } + // 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, tenantId, sso, _callback); + return getCommentBanStatusCall(tenantId, commentId, sso, _callback); } - private ApiResponse getCommentBanStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(commentId, tenantId, sso, null); + private ApiResponse getCommentBanStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentBanStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(commentId, tenantId, sso, _callback); + okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetCommentBanStatusRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetCommentBanStatusRequest(@javax.annotation.Nonnull String commentId) { - this.commentId = commentId; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetCommentBanStatusRequest - */ - public APIgetCommentBanStatusRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIgetCommentBanStatusRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { this.tenantId = tenantId; - return this; + this.commentId = commentId; } /** @@ -1448,7 +1429,7 @@ public APIgetCommentBanStatusRequest sso(@javax.annotation.Nullable String sso) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getCommentBanStatusCall(commentId, tenantId, sso, _callback); + return getCommentBanStatusCall(tenantId, commentId, sso, _callback); } /** @@ -1464,7 +1445,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetCommentBanStatusResponse execute() throws ApiException { - ApiResponse localVarResp = getCommentBanStatusWithHttpInfo(commentId, tenantId, sso); + ApiResponse localVarResp = getCommentBanStatusWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -1481,7 +1462,7 @@ public GetCommentBanStatusResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getCommentBanStatusWithHttpInfo(commentId, tenantId, sso); + return getCommentBanStatusWithHttpInfo(tenantId, commentId, sso); } /** @@ -1498,13 +1479,14 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getCommentBanStatusAsync(commentId, tenantId, sso, _callback); + return getCommentBanStatusAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetCommentBanStatusRequest * @http.response.details @@ -1515,10 +1497,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetCommentBanStatusRequest getCommentBanStatus(@javax.annotation.Nonnull String commentId) { - return new APIgetCommentBanStatusRequest(commentId); + public APIgetCommentBanStatusRequest getCommentBanStatus(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetCommentBanStatusRequest(tenantId, commentId); } - private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1535,7 +1517,7 @@ private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String com Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/comment-children/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -1572,51 +1554,47 @@ private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String com } @SuppressWarnings("rawtypes") - private okhttp3.Call getCommentChildrenValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentChildrenValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @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 getCommentChildren(Async)"); + } + // 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, tenantId, sso, _callback); + return getCommentChildrenCall(tenantId, commentId, sso, _callback); } - private ApiResponse getCommentChildrenWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(commentId, tenantId, sso, null); + private ApiResponse getCommentChildrenWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentChildrenAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(commentId, tenantId, sso, _callback); + okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetCommentChildrenRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetCommentChildrenRequest(@javax.annotation.Nonnull String commentId) { - this.commentId = commentId; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetCommentChildrenRequest - */ - public APIgetCommentChildrenRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIgetCommentChildrenRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { this.tenantId = tenantId; - return this; + this.commentId = commentId; } /** @@ -1643,7 +1621,7 @@ public APIgetCommentChildrenRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getCommentChildrenCall(commentId, tenantId, sso, _callback); + return getCommentChildrenCall(tenantId, commentId, sso, _callback); } /** @@ -1659,7 +1637,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPIChildCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = getCommentChildrenWithHttpInfo(commentId, tenantId, sso); + ApiResponse localVarResp = getCommentChildrenWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -1676,7 +1654,7 @@ public ModerationAPIChildCommentsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getCommentChildrenWithHttpInfo(commentId, tenantId, sso); + return getCommentChildrenWithHttpInfo(tenantId, commentId, sso); } /** @@ -1693,13 +1671,14 @@ public ApiResponse executeWithHttpInfo() thr */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getCommentChildrenAsync(commentId, tenantId, sso, _callback); + return getCommentChildrenAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetCommentChildrenRequest * @http.response.details @@ -1710,10 +1689,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetCommentChildrenRequest getCommentChildren(@javax.annotation.Nonnull String commentId) { - return new APIgetCommentChildrenRequest(commentId); + public APIgetCommentChildrenRequest getCommentChildren(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetCommentChildrenRequest(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCountCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -1730,7 +1709,7 @@ private okhttp3.Call getCountCall(@javax.annotation.Nullable String textSearch, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/count"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/count"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1738,6 +1717,10 @@ private okhttp3.Call getCountCall(@javax.annotation.Nullable String textSearch, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (textSearch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); } @@ -1758,10 +1741,6 @@ private okhttp3.Call getCountCall(@javax.annotation.Nullable String textSearch, localVarQueryParams.addAll(localVarApiClient.parameterToPair("demo", demo)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -1786,27 +1765,34 @@ private okhttp3.Call getCountCall(@javax.annotation.Nullable String textSearch, } @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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getCountCall(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso, _callback); + private okhttp3.Call getCountValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @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 { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getCount(Async)"); + } + + return getCountCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getCountValidateBeforeCall(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso, null); + private ApiResponse getCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @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(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCountAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = getCountValidateBeforeCall(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetCountRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String textSearch; @javax.annotation.Nullable @@ -1818,11 +1804,10 @@ public class APIgetCountRequest { @javax.annotation.Nullable private Boolean demo; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetCountRequest() { + private APIgetCountRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -1875,16 +1860,6 @@ public APIgetCountRequest demo(@javax.annotation.Nullable Boolean demo) { return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetCountRequest - */ - public APIgetCountRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -1909,7 +1884,7 @@ public APIgetCountRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getCountCall(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso, _callback); + return getCountCall(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); } /** @@ -1925,7 +1900,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPICountCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = getCountWithHttpInfo(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso); + ApiResponse localVarResp = getCountWithHttpInfo(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso); return localVarResp.getData(); } @@ -1942,7 +1917,7 @@ public ModerationAPICountCommentsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getCountWithHttpInfo(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso); + return getCountWithHttpInfo(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso); } /** @@ -1959,13 +1934,14 @@ public ApiResponse executeWithHttpInfo() thr */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getCountAsync(textSearch, byIPFromComment, filter, searchFilters, demo, tenantId, sso, _callback); + return getCountAsync(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetCountRequest * @http.response.details @@ -1975,10 +1951,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetCountRequest getCount() { - return new APIgetCountRequest(); + public APIgetCountRequest getCount(@javax.annotation.Nonnull String tenantId) { + return new APIgetCountRequest(tenantId); } - private okhttp3.Call getCountsCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCountsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1995,7 +1971,7 @@ private okhttp3.Call getCountsCall(@javax.annotation.Nullable String tenantId, @ Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/banned-users/counts"; + String localVarPath = "/auth/my-account/moderate-comments/banned-users/mod_api/counts"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2031,19 +2007,24 @@ private okhttp3.Call getCountsCall(@javax.annotation.Nullable String tenantId, @ } @SuppressWarnings("rawtypes") - private okhttp3.Call getCountsValidateBeforeCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCountsValidateBeforeCall(@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 getCounts(Async)"); + } + return getCountsCall(tenantId, sso, _callback); } - private ApiResponse getCountsWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getCountsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getCountsValidateBeforeCall(tenantId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCountsAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCountsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCountsValidateBeforeCall(tenantId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2052,22 +2033,13 @@ private okhttp3.Call getCountsAsync(@javax.annotation.Nullable String tenantId, } public class APIgetCountsRequest { - @javax.annotation.Nullable - private String tenantId; + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String sso; - private APIgetCountsRequest() { - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetCountsRequest - */ - public APIgetCountsRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIgetCountsRequest(@javax.annotation.Nonnull String tenantId) { this.tenantId = tenantId; - return this; } /** @@ -2151,6 +2123,7 @@ public okhttp3.Call executeAsync(final ApiCallback /** * * + * @param tenantId (required) * @return APIgetCountsRequest * @http.response.details @@ -2160,10 +2133,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetCountsRequest getCounts() { - return new APIgetCountsRequest(); + public APIgetCountsRequest getCounts(@javax.annotation.Nonnull String tenantId) { + return new APIgetCountsRequest(tenantId); } - private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2180,7 +2153,7 @@ private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String commentId, @ja Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/logs/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/logs/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -2217,51 +2190,47 @@ private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String commentId, @ja } @SuppressWarnings("rawtypes") - private okhttp3.Call getLogsValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLogsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @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 getLogs(Async)"); + } + // 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, tenantId, sso, _callback); + return getLogsCall(tenantId, commentId, sso, _callback); } - private ApiResponse getLogsWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getLogsValidateBeforeCall(commentId, tenantId, sso, null); + private ApiResponse getLogsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getLogsValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLogsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getLogsValidateBeforeCall(commentId, tenantId, sso, _callback); + okhttp3.Call localVarCall = getLogsValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetLogsRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetLogsRequest(@javax.annotation.Nonnull String commentId) { - this.commentId = commentId; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetLogsRequest - */ - public APIgetLogsRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIgetLogsRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { this.tenantId = tenantId; - return this; + this.commentId = commentId; } /** @@ -2288,7 +2257,7 @@ public APIgetLogsRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getLogsCall(commentId, tenantId, sso, _callback); + return getLogsCall(tenantId, commentId, sso, _callback); } /** @@ -2304,7 +2273,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPIGetLogsResponse execute() throws ApiException { - ApiResponse localVarResp = getLogsWithHttpInfo(commentId, tenantId, sso); + ApiResponse localVarResp = getLogsWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -2321,7 +2290,7 @@ public ModerationAPIGetLogsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getLogsWithHttpInfo(commentId, tenantId, sso); + return getLogsWithHttpInfo(tenantId, commentId, sso); } /** @@ -2338,13 +2307,14 @@ public ApiResponse executeWithHttpInfo() throws Ap */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getLogsAsync(commentId, tenantId, sso, _callback); + return getLogsAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetLogsRequest * @http.response.details @@ -2355,10 +2325,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetLogsRequest getLogs(@javax.annotation.Nonnull String commentId) { - return new APIgetLogsRequest(commentId); + public APIgetLogsRequest getLogs(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetLogsRequest(tenantId, commentId); } - private okhttp3.Call getManualBadgesCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getManualBadgesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2375,7 +2345,7 @@ private okhttp3.Call getManualBadgesCall(@javax.annotation.Nullable String tenan Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-manual-badges"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-manual-badges"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2411,19 +2381,24 @@ private okhttp3.Call getManualBadgesCall(@javax.annotation.Nullable String tenan } @SuppressWarnings("rawtypes") - private okhttp3.Call getManualBadgesValidateBeforeCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getManualBadgesValidateBeforeCall(@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 getManualBadges(Async)"); + } + return getManualBadgesCall(tenantId, sso, _callback); } - private ApiResponse getManualBadgesWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getManualBadgesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(tenantId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getManualBadgesAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getManualBadgesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(tenantId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2432,22 +2407,13 @@ private okhttp3.Call getManualBadgesAsync(@javax.annotation.Nullable String tena } public class APIgetManualBadgesRequest { - @javax.annotation.Nullable - private String tenantId; + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String sso; - private APIgetManualBadgesRequest() { - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetManualBadgesRequest - */ - public APIgetManualBadgesRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIgetManualBadgesRequest(@javax.annotation.Nonnull String tenantId) { this.tenantId = tenantId; - return this; } /** @@ -2531,6 +2497,7 @@ public okhttp3.Call executeAsync(final ApiCallback @@ -2540,10 +2507,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetManualBadgesRequest getManualBadges() { - return new APIgetManualBadgesRequest(); + public APIgetManualBadgesRequest getManualBadges(@javax.annotation.Nonnull String tenantId) { + return new APIgetManualBadgesRequest(tenantId); } - private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -2560,7 +2527,7 @@ private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-manual-badges-for-user"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2568,6 +2535,10 @@ private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (badgesUserId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("badgesUserId", badgesUserId)); } @@ -2576,10 +2547,6 @@ private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("commentId", commentId)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -2604,37 +2571,43 @@ private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call getManualBadgesForUserValidateBeforeCall(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getManualBadgesForUserCall(badgesUserId, commentId, tenantId, sso, _callback); + private okhttp3.Call getManualBadgesForUserValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @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 getManualBadgesForUser(Async)"); + } + + return getManualBadgesForUserCall(tenantId, badgesUserId, commentId, sso, _callback); } - private ApiResponse getManualBadgesForUserWithHttpInfo(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(badgesUserId, commentId, tenantId, sso, null); + private ApiResponse getManualBadgesForUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getManualBadgesForUserAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(tenantId, badgesUserId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetManualBadgesForUserRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String badgesUserId; @javax.annotation.Nullable private String commentId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetManualBadgesForUserRequest() { + private APIgetManualBadgesForUserRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -2657,16 +2630,6 @@ public APIgetManualBadgesForUserRequest commentId(@javax.annotation.Nullable Str return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetManualBadgesForUserRequest - */ - public APIgetManualBadgesForUserRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -2691,7 +2654,7 @@ public APIgetManualBadgesForUserRequest sso(@javax.annotation.Nullable String ss */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getManualBadgesForUserCall(badgesUserId, commentId, tenantId, sso, _callback); + return getManualBadgesForUserCall(tenantId, badgesUserId, commentId, sso, _callback); } /** @@ -2707,7 +2670,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetUserManualBadgesResponse execute() throws ApiException { - ApiResponse localVarResp = getManualBadgesForUserWithHttpInfo(badgesUserId, commentId, tenantId, sso); + ApiResponse localVarResp = getManualBadgesForUserWithHttpInfo(tenantId, badgesUserId, commentId, sso); return localVarResp.getData(); } @@ -2724,7 +2687,7 @@ public GetUserManualBadgesResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getManualBadgesForUserWithHttpInfo(badgesUserId, commentId, tenantId, sso); + return getManualBadgesForUserWithHttpInfo(tenantId, badgesUserId, commentId, sso); } /** @@ -2741,13 +2704,14 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getManualBadgesForUserAsync(badgesUserId, commentId, tenantId, sso, _callback); + return getManualBadgesForUserAsync(tenantId, badgesUserId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetManualBadgesForUserRequest * @http.response.details @@ -2757,10 +2721,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetManualBadgesForUserRequest getManualBadgesForUser() { - return new APIgetManualBadgesForUserRequest(); + public APIgetManualBadgesForUserRequest getManualBadgesForUser(@javax.annotation.Nonnull String tenantId) { + return new APIgetManualBadgesForUserRequest(tenantId); } - private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -2777,7 +2741,7 @@ private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String c Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -2786,6 +2750,10 @@ private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String c Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (includeEmail != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeEmail", includeEmail)); } @@ -2794,10 +2762,6 @@ private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String c localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeIP", includeIP)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -2822,32 +2786,39 @@ private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String c } @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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @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 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getModerationComment(Async)"); + } + // 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, tenantId, sso, _callback); + return getModerationCommentCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(commentId, includeEmail, includeIP, tenantId, sso, null); + private ApiResponse getModerationCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @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(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(tenantId, 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 tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable @@ -2855,11 +2826,10 @@ public class APIgetModerationCommentRequest { @javax.annotation.Nullable private Boolean includeIP; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetModerationCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIgetModerationCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -2883,16 +2853,6 @@ public APIgetModerationCommentRequest includeIP(@javax.annotation.Nullable Boole return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetModerationCommentRequest - */ - public APIgetModerationCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -2917,7 +2877,7 @@ public APIgetModerationCommentRequest sso(@javax.annotation.Nullable String sso) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getModerationCommentCall(commentId, includeEmail, includeIP, tenantId, sso, _callback); + return getModerationCommentCall(tenantId, commentId, includeEmail, includeIP, sso, _callback); } /** @@ -2933,7 +2893,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPICommentResponse execute() throws ApiException { - ApiResponse localVarResp = getModerationCommentWithHttpInfo(commentId, includeEmail, includeIP, tenantId, sso); + ApiResponse localVarResp = getModerationCommentWithHttpInfo(tenantId, commentId, includeEmail, includeIP, sso); return localVarResp.getData(); } @@ -2950,7 +2910,7 @@ public ModerationAPICommentResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getModerationCommentWithHttpInfo(commentId, includeEmail, includeIP, tenantId, sso); + return getModerationCommentWithHttpInfo(tenantId, commentId, includeEmail, includeIP, sso); } /** @@ -2967,13 +2927,14 @@ public ApiResponse executeWithHttpInfo() throws Ap */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getModerationCommentAsync(commentId, includeEmail, includeIP, tenantId, sso, _callback); + return getModerationCommentAsync(tenantId, commentId, includeEmail, includeIP, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetModerationCommentRequest * @http.response.details @@ -2984,10 +2945,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetModerationCommentRequest getModerationComment(@javax.annotation.Nonnull String commentId) { - return new APIgetModerationCommentRequest(commentId); + public APIgetModerationCommentRequest getModerationComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetModerationCommentRequest(tenantId, commentId); } - private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3004,7 +2965,7 @@ private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull Stri Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-comment-text/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -3041,51 +3002,47 @@ private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call getModerationCommentTextValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentTextValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @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 getModerationCommentText(Async)"); + } + // 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, tenantId, sso, _callback); + return getModerationCommentTextCall(tenantId, commentId, sso, _callback); } - private ApiResponse getModerationCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(commentId, tenantId, sso, null); + private ApiResponse getModerationCommentTextWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentTextAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(commentId, tenantId, sso, _callback); + okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetModerationCommentTextRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetModerationCommentTextRequest(@javax.annotation.Nonnull String commentId) { - this.commentId = commentId; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetModerationCommentTextRequest - */ - public APIgetModerationCommentTextRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIgetModerationCommentTextRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { this.tenantId = tenantId; - return this; + this.commentId = commentId; } /** @@ -3112,7 +3069,7 @@ public APIgetModerationCommentTextRequest sso(@javax.annotation.Nullable String */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getModerationCommentTextCall(commentId, tenantId, sso, _callback); + return getModerationCommentTextCall(tenantId, commentId, sso, _callback); } /** @@ -3128,7 +3085,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetCommentTextResponse execute() throws ApiException { - ApiResponse localVarResp = getModerationCommentTextWithHttpInfo(commentId, tenantId, sso); + ApiResponse localVarResp = getModerationCommentTextWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -3145,7 +3102,7 @@ public GetCommentTextResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getModerationCommentTextWithHttpInfo(commentId, tenantId, sso); + return getModerationCommentTextWithHttpInfo(tenantId, commentId, sso); } /** @@ -3162,13 +3119,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getModerationCommentTextAsync(commentId, tenantId, sso, _callback); + return getModerationCommentTextAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetModerationCommentTextRequest * @http.response.details @@ -3179,10 +3137,10 @@ public okhttp3.Call executeAsync(final ApiCallback _call 0 Error - */ - public APIgetModerationCommentTextRequest getModerationCommentText(@javax.annotation.Nonnull String commentId) { - return new APIgetModerationCommentTextRequest(commentId); + public APIgetModerationCommentTextRequest getModerationCommentText(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetModerationCommentTextRequest(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -3199,7 +3157,7 @@ private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String comme Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -3208,6 +3166,10 @@ private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String comme Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (includeByUserIdAndEmail != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByUserIdAndEmail", includeByUserIdAndEmail)); } @@ -3220,10 +3182,6 @@ private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String comme localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByEmailDomain", includeByEmailDomain)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -3248,32 +3206,39 @@ private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String comme } @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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPreBanSummaryValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @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 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getPreBanSummary(Async)"); + } + // 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, tenantId, sso, _callback); + return getPreBanSummaryCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, null); + private ApiResponse getPreBanSummaryWithHttpInfo(@javax.annotation.Nonnull String tenantId, @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(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPreBanSummaryAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(tenantId, 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 tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable @@ -3283,11 +3248,10 @@ public class APIgetPreBanSummaryRequest { @javax.annotation.Nullable private Boolean includeByEmailDomain; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetPreBanSummaryRequest(@javax.annotation.Nonnull String commentId) { + private APIgetPreBanSummaryRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -3321,16 +3285,6 @@ public APIgetPreBanSummaryRequest includeByEmailDomain(@javax.annotation.Nullabl return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetPreBanSummaryRequest - */ - public APIgetPreBanSummaryRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -3355,7 +3309,7 @@ public APIgetPreBanSummaryRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getPreBanSummaryCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); + return getPreBanSummaryCall(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); } /** @@ -3371,7 +3325,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public PreBanSummary execute() throws ApiException { - ApiResponse localVarResp = getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); + ApiResponse localVarResp = getPreBanSummaryWithHttpInfo(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); return localVarResp.getData(); } @@ -3388,7 +3342,7 @@ public PreBanSummary execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); + return getPreBanSummaryWithHttpInfo(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); } /** @@ -3405,13 +3359,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getPreBanSummaryAsync(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); + return getPreBanSummaryAsync(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetPreBanSummaryRequest * @http.response.details @@ -3422,10 +3377,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr 0 Error - */ - public APIgetPreBanSummaryRequest getPreBanSummary(@javax.annotation.Nonnull String commentId) { - return new APIgetPreBanSummaryRequest(commentId); + public APIgetPreBanSummaryRequest getPreBanSummary(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetPreBanSummaryRequest(tenantId, commentId); } - private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -3442,7 +3397,7 @@ private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable Str Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/search/comments/summary"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/search/comments/summary"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3450,6 +3405,10 @@ private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (value != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); } @@ -3462,10 +3421,6 @@ private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchFilters", searchFilters)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -3490,27 +3445,34 @@ private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable Str } @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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getSearchCommentsSummaryCall(value, filters, searchFilters, tenantId, sso, _callback); + private okhttp3.Call getSearchCommentsSummaryValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @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 { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getSearchCommentsSummary(Async)"); + } + + return getSearchCommentsSummaryCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(value, filters, searchFilters, tenantId, sso, null); + private ApiResponse getSearchCommentsSummaryWithHttpInfo(@javax.annotation.Nonnull String tenantId, @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(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchCommentsSummaryAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(tenantId, value, filters, searchFilters, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSearchCommentsSummaryRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String value; @javax.annotation.Nullable @@ -3518,11 +3480,10 @@ public class APIgetSearchCommentsSummaryRequest { @javax.annotation.Nullable private String searchFilters; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetSearchCommentsSummaryRequest() { + private APIgetSearchCommentsSummaryRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -3556,18 +3517,8 @@ public APIgetSearchCommentsSummaryRequest searchFilters(@javax.annotation.Nullab } /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetSearchCommentsSummaryRequest - */ - public APIgetSearchCommentsSummaryRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Set sso - * @param sso (optional) + * Set sso + * @param sso (optional) * @return APIgetSearchCommentsSummaryRequest */ public APIgetSearchCommentsSummaryRequest sso(@javax.annotation.Nullable String sso) { @@ -3589,7 +3540,7 @@ public APIgetSearchCommentsSummaryRequest sso(@javax.annotation.Nullable String */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getSearchCommentsSummaryCall(value, filters, searchFilters, tenantId, sso, _callback); + return getSearchCommentsSummaryCall(tenantId, value, filters, searchFilters, sso, _callback); } /** @@ -3605,7 +3556,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationCommentSearchResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchCommentsSummaryWithHttpInfo(value, filters, searchFilters, tenantId, sso); + ApiResponse localVarResp = getSearchCommentsSummaryWithHttpInfo(tenantId, value, filters, searchFilters, sso); return localVarResp.getData(); } @@ -3622,7 +3573,7 @@ public ModerationCommentSearchResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getSearchCommentsSummaryWithHttpInfo(value, filters, searchFilters, tenantId, sso); + return getSearchCommentsSummaryWithHttpInfo(tenantId, value, filters, searchFilters, sso); } /** @@ -3639,13 +3590,14 @@ public ApiResponse executeWithHttpInfo() throws */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getSearchCommentsSummaryAsync(value, filters, searchFilters, tenantId, sso, _callback); + return getSearchCommentsSummaryAsync(tenantId, value, filters, searchFilters, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetSearchCommentsSummaryRequest * @http.response.details @@ -3655,10 +3607,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetSearchCommentsSummaryRequest getSearchCommentsSummary() { - return new APIgetSearchCommentsSummaryRequest(); + public APIgetSearchCommentsSummaryRequest getSearchCommentsSummary(@javax.annotation.Nonnull String tenantId) { + return new APIgetSearchCommentsSummaryRequest(tenantId); } - private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchPagesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3675,7 +3627,7 @@ private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/search/pages"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/search/pages"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3683,14 +3635,14 @@ private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (value != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (value != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -3715,35 +3667,41 @@ private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, } @SuppressWarnings("rawtypes") - private okhttp3.Call getSearchPagesValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getSearchPagesCall(value, tenantId, sso, _callback); + private okhttp3.Call getSearchPagesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @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 getSearchPages(Async)"); + } + + return getSearchPagesCall(tenantId, value, sso, _callback); } - private ApiResponse getSearchPagesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(value, tenantId, sso, null); + private ApiResponse getSearchPagesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchPagesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(value, tenantId, sso, _callback); + okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(tenantId, value, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSearchPagesRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String value; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetSearchPagesRequest() { + private APIgetSearchPagesRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -3756,16 +3714,6 @@ public APIgetSearchPagesRequest value(@javax.annotation.Nullable String value) { return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetSearchPagesRequest - */ - public APIgetSearchPagesRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -3790,7 +3738,7 @@ public APIgetSearchPagesRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getSearchPagesCall(value, tenantId, sso, _callback); + return getSearchPagesCall(tenantId, value, sso, _callback); } /** @@ -3806,7 +3754,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationPageSearchResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchPagesWithHttpInfo(value, tenantId, sso); + ApiResponse localVarResp = getSearchPagesWithHttpInfo(tenantId, value, sso); return localVarResp.getData(); } @@ -3823,7 +3771,7 @@ public ModerationPageSearchResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getSearchPagesWithHttpInfo(value, tenantId, sso); + return getSearchPagesWithHttpInfo(tenantId, value, sso); } /** @@ -3840,13 +3788,14 @@ public ApiResponse executeWithHttpInfo() throws Ap */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getSearchPagesAsync(value, tenantId, sso, _callback); + return getSearchPagesAsync(tenantId, value, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetSearchPagesRequest * @http.response.details @@ -3856,10 +3805,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetSearchPagesRequest getSearchPages() { - return new APIgetSearchPagesRequest(); + public APIgetSearchPagesRequest getSearchPages(@javax.annotation.Nonnull String tenantId) { + return new APIgetSearchPagesRequest(tenantId); } - private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchSitesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3876,7 +3825,7 @@ private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/search/sites"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/search/sites"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3884,14 +3833,14 @@ private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (value != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (value != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -3916,35 +3865,41 @@ private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, } @SuppressWarnings("rawtypes") - private okhttp3.Call getSearchSitesValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getSearchSitesCall(value, tenantId, sso, _callback); + private okhttp3.Call getSearchSitesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @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 getSearchSites(Async)"); + } + + return getSearchSitesCall(tenantId, value, sso, _callback); } - private ApiResponse getSearchSitesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(value, tenantId, sso, null); + private ApiResponse getSearchSitesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchSitesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(value, tenantId, sso, _callback); + okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(tenantId, value, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSearchSitesRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String value; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetSearchSitesRequest() { + private APIgetSearchSitesRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -3957,16 +3912,6 @@ public APIgetSearchSitesRequest value(@javax.annotation.Nullable String value) { return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetSearchSitesRequest - */ - public APIgetSearchSitesRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -3991,7 +3936,7 @@ public APIgetSearchSitesRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getSearchSitesCall(value, tenantId, sso, _callback); + return getSearchSitesCall(tenantId, value, sso, _callback); } /** @@ -4007,7 +3952,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationSiteSearchResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchSitesWithHttpInfo(value, tenantId, sso); + ApiResponse localVarResp = getSearchSitesWithHttpInfo(tenantId, value, sso); return localVarResp.getData(); } @@ -4024,7 +3969,7 @@ public ModerationSiteSearchResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getSearchSitesWithHttpInfo(value, tenantId, sso); + return getSearchSitesWithHttpInfo(tenantId, value, sso); } /** @@ -4041,13 +3986,14 @@ public ApiResponse executeWithHttpInfo() throws Ap */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getSearchSitesAsync(value, tenantId, sso, _callback); + return getSearchSitesAsync(tenantId, value, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetSearchSitesRequest * @http.response.details @@ -4057,10 +4003,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetSearchSitesRequest getSearchSites() { - return new APIgetSearchSitesRequest(); + public APIgetSearchSitesRequest getSearchSites(@javax.annotation.Nonnull String tenantId) { + return new APIgetSearchSitesRequest(tenantId); } - private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4077,7 +4023,7 @@ private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String text Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/search/suggest"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/search/suggest"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4085,14 +4031,14 @@ private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String text Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (textSearch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (textSearch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -4117,35 +4063,41 @@ private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String text } @SuppressWarnings("rawtypes") - private okhttp3.Call getSearchSuggestValidateBeforeCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getSearchSuggestCall(textSearch, tenantId, sso, _callback); + private okhttp3.Call getSearchSuggestValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @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 getSearchSuggest(Async)"); + } + + return getSearchSuggestCall(tenantId, textSearch, sso, _callback); } - private ApiResponse getSearchSuggestWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(textSearch, tenantId, sso, null); + private ApiResponse getSearchSuggestWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchSuggestAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(textSearch, tenantId, sso, _callback); + okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(tenantId, textSearch, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSearchSuggestRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String textSearch; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetSearchSuggestRequest() { + private APIgetSearchSuggestRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -4158,16 +4110,6 @@ public APIgetSearchSuggestRequest textSearch(@javax.annotation.Nullable String t return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetSearchSuggestRequest - */ - public APIgetSearchSuggestRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -4192,7 +4134,7 @@ public APIgetSearchSuggestRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getSearchSuggestCall(textSearch, tenantId, sso, _callback); + return getSearchSuggestCall(tenantId, textSearch, sso, _callback); } /** @@ -4208,7 +4150,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationSuggestResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchSuggestWithHttpInfo(textSearch, tenantId, sso); + ApiResponse localVarResp = getSearchSuggestWithHttpInfo(tenantId, textSearch, sso); return localVarResp.getData(); } @@ -4225,7 +4167,7 @@ public ModerationSuggestResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getSearchSuggestWithHttpInfo(textSearch, tenantId, sso); + return getSearchSuggestWithHttpInfo(tenantId, textSearch, sso); } /** @@ -4242,13 +4184,14 @@ public ApiResponse executeWithHttpInfo() throws ApiEx */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getSearchSuggestAsync(textSearch, tenantId, sso, _callback); + return getSearchSuggestAsync(tenantId, textSearch, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetSearchSuggestRequest * @http.response.details @@ -4258,10 +4201,10 @@ public okhttp3.Call executeAsync(final ApiCallback _c
0 Error -
*/ - public APIgetSearchSuggestRequest getSearchSuggest() { - return new APIgetSearchSuggestRequest(); + public APIgetSearchSuggestRequest getSearchSuggest(@javax.annotation.Nonnull String tenantId) { + return new APIgetSearchSuggestRequest(tenantId); } - private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchUsersCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4278,7 +4221,7 @@ private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/search/users"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/search/users"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4286,14 +4229,14 @@ private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (value != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (value != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -4318,35 +4261,41 @@ private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, } @SuppressWarnings("rawtypes") - private okhttp3.Call getSearchUsersValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getSearchUsersCall(value, tenantId, sso, _callback); + private okhttp3.Call getSearchUsersValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @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 getSearchUsers(Async)"); + } + + return getSearchUsersCall(tenantId, value, sso, _callback); } - private ApiResponse getSearchUsersWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(value, tenantId, sso, null); + private ApiResponse getSearchUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(value, tenantId, sso, _callback); + okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(tenantId, value, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSearchUsersRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String value; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetSearchUsersRequest() { + private APIgetSearchUsersRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -4359,16 +4308,6 @@ public APIgetSearchUsersRequest value(@javax.annotation.Nullable String value) { return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetSearchUsersRequest - */ - public APIgetSearchUsersRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -4393,7 +4332,7 @@ public APIgetSearchUsersRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getSearchUsersCall(value, tenantId, sso, _callback); + return getSearchUsersCall(tenantId, value, sso, _callback); } /** @@ -4409,7 +4348,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationUserSearchResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchUsersWithHttpInfo(value, tenantId, sso); + ApiResponse localVarResp = getSearchUsersWithHttpInfo(tenantId, value, sso); return localVarResp.getData(); } @@ -4426,7 +4365,7 @@ public ModerationUserSearchResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getSearchUsersWithHttpInfo(value, tenantId, sso); + return getSearchUsersWithHttpInfo(tenantId, value, sso); } /** @@ -4443,13 +4382,14 @@ public ApiResponse executeWithHttpInfo() throws Ap */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getSearchUsersAsync(value, tenantId, sso, _callback); + return getSearchUsersAsync(tenantId, value, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetSearchUsersRequest * @http.response.details @@ -4459,10 +4399,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetSearchUsersRequest getSearchUsers() { - return new APIgetSearchUsersRequest(); + public APIgetSearchUsersRequest getSearchUsers(@javax.annotation.Nonnull String tenantId) { + return new APIgetSearchUsersRequest(tenantId); } - private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTrustFactorCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4479,7 +4419,7 @@ private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-trust-factor"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-trust-factor"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4487,14 +4427,14 @@ private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (userId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (userId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -4519,35 +4459,41 @@ private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId } @SuppressWarnings("rawtypes") - private okhttp3.Call getTrustFactorValidateBeforeCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getTrustFactorCall(userId, tenantId, sso, _callback); + private okhttp3.Call getTrustFactorValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @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 getTrustFactor(Async)"); + } + + return getTrustFactorCall(tenantId, userId, sso, _callback); } - private ApiResponse getTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(userId, tenantId, sso, null); + private ApiResponse getTrustFactorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTrustFactorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(userId, tenantId, sso, _callback); + okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(tenantId, userId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetTrustFactorRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String userId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetTrustFactorRequest() { + private APIgetTrustFactorRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -4560,16 +4506,6 @@ public APIgetTrustFactorRequest userId(@javax.annotation.Nullable String userId) return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetTrustFactorRequest - */ - public APIgetTrustFactorRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -4594,7 +4530,7 @@ public APIgetTrustFactorRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getTrustFactorCall(userId, tenantId, sso, _callback); + return getTrustFactorCall(tenantId, userId, sso, _callback); } /** @@ -4610,7 +4546,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetUserTrustFactorResponse execute() throws ApiException { - ApiResponse localVarResp = getTrustFactorWithHttpInfo(userId, tenantId, sso); + ApiResponse localVarResp = getTrustFactorWithHttpInfo(tenantId, userId, sso); return localVarResp.getData(); } @@ -4627,7 +4563,7 @@ public GetUserTrustFactorResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getTrustFactorWithHttpInfo(userId, tenantId, sso); + return getTrustFactorWithHttpInfo(tenantId, userId, sso); } /** @@ -4644,13 +4580,14 @@ public ApiResponse executeWithHttpInfo() throws ApiE */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getTrustFactorAsync(userId, tenantId, sso, _callback); + return getTrustFactorAsync(tenantId, userId, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetTrustFactorRequest * @http.response.details @@ -4660,10 +4597,10 @@ public okhttp3.Call executeAsync(final ApiCallback _
0 Error -
*/ - public APIgetTrustFactorRequest getTrustFactor() { - return new APIgetTrustFactorRequest(); + public APIgetTrustFactorRequest getTrustFactor(@javax.annotation.Nonnull String tenantId) { + return new APIgetTrustFactorRequest(tenantId); } - private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4680,7 +4617,7 @@ private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nullable String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/user-ban-preference"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/user-ban-preference"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4716,19 +4653,24 @@ private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nullable String } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserBanPreferenceValidateBeforeCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserBanPreferenceValidateBeforeCall(@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 getUserBanPreference(Async)"); + } + return getUserBanPreferenceCall(tenantId, sso, _callback); } - private ApiResponse getUserBanPreferenceWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + private ApiResponse getUserBanPreferenceWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(tenantId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserBanPreferenceAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserBanPreferenceAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(tenantId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4737,22 +4679,13 @@ private okhttp3.Call getUserBanPreferenceAsync(@javax.annotation.Nullable String } public class APIgetUserBanPreferenceRequest { - @javax.annotation.Nullable - private String tenantId; + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String sso; - private APIgetUserBanPreferenceRequest() { - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetUserBanPreferenceRequest - */ - public APIgetUserBanPreferenceRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIgetUserBanPreferenceRequest(@javax.annotation.Nonnull String tenantId) { this.tenantId = tenantId; - return this; } /** @@ -4836,6 +4769,7 @@ public okhttp3.Call executeAsync(final ApiCallback @@ -4845,10 +4779,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetUserBanPreferenceRequest getUserBanPreference() { - return new APIgetUserBanPreferenceRequest(); + public APIgetUserBanPreferenceRequest getUserBanPreference(@javax.annotation.Nonnull String tenantId) { + return new APIgetUserBanPreferenceRequest(tenantId); } - private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4865,7 +4799,7 @@ private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-user-internal-profile"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-user-internal-profile"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4873,14 +4807,14 @@ private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (commentId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("commentId", commentId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (commentId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("commentId", commentId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -4905,35 +4839,41 @@ private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserInternalProfileValidateBeforeCall(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getUserInternalProfileCall(commentId, tenantId, sso, _callback); + private okhttp3.Call getUserInternalProfileValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @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 getUserInternalProfile(Async)"); + } + + return getUserInternalProfileCall(tenantId, commentId, sso, _callback); } - private ApiResponse getUserInternalProfileWithHttpInfo(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(commentId, tenantId, sso, null); + private ApiResponse getUserInternalProfileWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserInternalProfileAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(commentId, tenantId, sso, _callback); + okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetUserInternalProfileRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String commentId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIgetUserInternalProfileRequest() { + private APIgetUserInternalProfileRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -4946,16 +4886,6 @@ public APIgetUserInternalProfileRequest commentId(@javax.annotation.Nullable Str return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIgetUserInternalProfileRequest - */ - public APIgetUserInternalProfileRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -4980,7 +4910,7 @@ public APIgetUserInternalProfileRequest sso(@javax.annotation.Nullable String ss */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getUserInternalProfileCall(commentId, tenantId, sso, _callback); + return getUserInternalProfileCall(tenantId, commentId, sso, _callback); } /** @@ -4996,7 +4926,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetUserInternalProfileResponse execute() throws ApiException { - ApiResponse localVarResp = getUserInternalProfileWithHttpInfo(commentId, tenantId, sso); + ApiResponse localVarResp = getUserInternalProfileWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -5013,7 +4943,7 @@ public GetUserInternalProfileResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getUserInternalProfileWithHttpInfo(commentId, tenantId, sso); + return getUserInternalProfileWithHttpInfo(tenantId, commentId, sso); } /** @@ -5030,13 +4960,14 @@ public ApiResponse executeWithHttpInfo() throws */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getUserInternalProfileAsync(commentId, tenantId, sso, _callback); + return getUserInternalProfileAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetUserInternalProfileRequest * @http.response.details @@ -5046,10 +4977,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetUserInternalProfileRequest getUserInternalProfile() { - return new APIgetUserInternalProfileRequest(); + public APIgetUserInternalProfileRequest getUserInternalProfile(@javax.annotation.Nonnull String tenantId) { + return new APIgetUserInternalProfileRequest(tenantId); } - private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5066,7 +4997,7 @@ private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String Object localVarPostBody = adjustCommentVotesParams; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -5075,14 +5006,14 @@ private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (broadcastId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -5108,7 +5039,12 @@ private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call postAdjustCommentVotesValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postAdjustCommentVotesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @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 postAdjustCommentVotes(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postAdjustCommentVotes(Async)"); @@ -5119,26 +5055,28 @@ private okhttp3.Call postAdjustCommentVotesValidateBeforeCall(@javax.annotation. throw new ApiException("Missing the required parameter 'adjustCommentVotesParams' when calling postAdjustCommentVotes(Async)"); } - return postAdjustCommentVotesCall(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso, _callback); + return postAdjustCommentVotesCall(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso, _callback); } - private ApiResponse postAdjustCommentVotesWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso, null); + private ApiResponse postAdjustCommentVotesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(tenantId, commentId, adjustCommentVotesParams, broadcastId, 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postAdjustCommentVotesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso, _callback); + okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostAdjustCommentVotesRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nonnull @@ -5146,11 +5084,10 @@ public class APIpostAdjustCommentVotesRequest { @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostAdjustCommentVotesRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { + private APIpostAdjustCommentVotesRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { + this.tenantId = tenantId; this.commentId = commentId; this.adjustCommentVotesParams = adjustCommentVotesParams; } @@ -5165,16 +5102,6 @@ public APIpostAdjustCommentVotesRequest broadcastId(@javax.annotation.Nullable S return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostAdjustCommentVotesRequest - */ - public APIpostAdjustCommentVotesRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -5199,7 +5126,7 @@ public APIpostAdjustCommentVotesRequest sso(@javax.annotation.Nullable String ss */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postAdjustCommentVotesCall(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso, _callback); + return postAdjustCommentVotesCall(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso, _callback); } /** @@ -5215,7 +5142,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public AdjustVotesResponse execute() throws ApiException { - ApiResponse localVarResp = postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso); + ApiResponse localVarResp = postAdjustCommentVotesWithHttpInfo(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso); return localVarResp.getData(); } @@ -5232,7 +5159,7 @@ public AdjustVotesResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso); + return postAdjustCommentVotesWithHttpInfo(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso); } /** @@ -5249,13 +5176,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postAdjustCommentVotesAsync(commentId, adjustCommentVotesParams, broadcastId, tenantId, sso, _callback); + return postAdjustCommentVotesAsync(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @param adjustCommentVotesParams (required) * @return APIpostAdjustCommentVotesRequest @@ -5267,10 +5195,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac 0 Error - */ - public APIpostAdjustCommentVotesRequest postAdjustCommentVotes(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { - return new APIpostAdjustCommentVotesRequest(commentId, adjustCommentVotesParams); + public APIpostAdjustCommentVotesRequest postAdjustCommentVotes(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { + return new APIpostAdjustCommentVotesRequest(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postApiExportCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -5287,7 +5215,7 @@ private okhttp3.Call postApiExportCall(@javax.annotation.Nullable String textSea Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/api/export"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/api/export"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5295,6 +5223,10 @@ private okhttp3.Call postApiExportCall(@javax.annotation.Nullable String textSea Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (textSearch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); } @@ -5315,10 +5247,6 @@ private okhttp3.Call postApiExportCall(@javax.annotation.Nullable String textSea localVarQueryParams.addAll(localVarApiClient.parameterToPair("sorts", sorts)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -5343,27 +5271,34 @@ private okhttp3.Call postApiExportCall(@javax.annotation.Nullable String textSea } @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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return postApiExportCall(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso, _callback); + private okhttp3.Call postApiExportValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @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 { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postApiExport(Async)"); + } + + return postApiExportCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postApiExportValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso, null); + private ApiResponse postApiExportWithHttpInfo(@javax.annotation.Nonnull String tenantId, @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(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postApiExportAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = postApiExportValidateBeforeCall(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostApiExportRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String textSearch; @javax.annotation.Nullable @@ -5375,11 +5310,10 @@ public class APIpostApiExportRequest { @javax.annotation.Nullable private String sorts; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostApiExportRequest() { + private APIpostApiExportRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -5432,16 +5366,6 @@ public APIpostApiExportRequest sorts(@javax.annotation.Nullable String sorts) { return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostApiExportRequest - */ - public APIpostApiExportRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -5466,7 +5390,7 @@ public APIpostApiExportRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postApiExportCall(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso, _callback); + return postApiExportCall(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); } /** @@ -5482,7 +5406,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationExportResponse execute() throws ApiException { - ApiResponse localVarResp = postApiExportWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso); + ApiResponse localVarResp = postApiExportWithHttpInfo(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso); return localVarResp.getData(); } @@ -5499,7 +5423,7 @@ public ModerationExportResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postApiExportWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso); + return postApiExportWithHttpInfo(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso); } /** @@ -5516,13 +5440,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postApiExportAsync(textSearch, byIPFromComment, filters, searchFilters, sorts, tenantId, sso, _callback); + return postApiExportAsync(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIpostApiExportRequest * @http.response.details @@ -5532,10 +5457,10 @@ public okhttp3.Call executeAsync(final ApiCallback _ca
0 Error -
*/ - public APIpostApiExportRequest postApiExport() { - return new APIpostApiExportRequest(); + public APIpostApiExportRequest postApiExport(@javax.annotation.Nonnull String tenantId) { + return new APIpostApiExportRequest(tenantId); } - 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -5552,7 +5477,7 @@ private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -5561,6 +5486,10 @@ private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (banEmail != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("banEmail", banEmail)); } @@ -5593,10 +5522,6 @@ private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String localVarQueryParams.addAll(localVarApiClient.parameterToPair("banReason", banReason)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -5621,32 +5546,39 @@ private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String } @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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserFromCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @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 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postBanUserFromComment(Async)"); + } + // 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, tenantId, sso, _callback); + return postBanUserFromCommentCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso, null); + private ApiResponse postBanUserFromCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @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(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserFromCommentAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(tenantId, 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 tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable @@ -5666,11 +5598,10 @@ public class APIpostBanUserFromCommentRequest { @javax.annotation.Nullable private String banReason; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostBanUserFromCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIpostBanUserFromCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -5754,16 +5685,6 @@ public APIpostBanUserFromCommentRequest banReason(@javax.annotation.Nullable Str return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostBanUserFromCommentRequest - */ - public APIpostBanUserFromCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -5788,7 +5709,7 @@ public APIpostBanUserFromCommentRequest sso(@javax.annotation.Nullable String ss */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postBanUserFromCommentCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso, _callback); + return postBanUserFromCommentCall(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); } /** @@ -5804,7 +5725,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public BanUserFromCommentResult execute() throws ApiException { - ApiResponse localVarResp = postBanUserFromCommentWithHttpInfo(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso); + ApiResponse localVarResp = postBanUserFromCommentWithHttpInfo(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso); return localVarResp.getData(); } @@ -5821,7 +5742,7 @@ public BanUserFromCommentResult execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postBanUserFromCommentWithHttpInfo(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso); + return postBanUserFromCommentWithHttpInfo(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso); } /** @@ -5838,13 +5759,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postBanUserFromCommentAsync(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso, _callback); + return postBanUserFromCommentAsync(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostBanUserFromCommentRequest * @http.response.details @@ -5855,10 +5777,10 @@ public okhttp3.Call executeAsync(final ApiCallback _ca 0 Error - */ - public APIpostBanUserFromCommentRequest postBanUserFromComment(@javax.annotation.Nonnull String commentId) { - return new APIpostBanUserFromCommentRequest(commentId); + public APIpostBanUserFromCommentRequest postBanUserFromComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostBanUserFromCommentRequest(tenantId, commentId); } - private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5875,7 +5797,7 @@ private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull BanUserUndoPa Object localVarPostBody = banUserUndoParams; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/ban-user/undo"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/ban-user/undo"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5912,51 +5834,47 @@ private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull BanUserUndoPa } @SuppressWarnings("rawtypes") - private okhttp3.Call postBanUserUndoValidateBeforeCall(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserUndoValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @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 postBanUserUndo(Async)"); + } + // 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, tenantId, sso, _callback); + return postBanUserUndoCall(tenantId, banUserUndoParams, sso, _callback); } - private ApiResponse postBanUserUndoWithHttpInfo(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(banUserUndoParams, tenantId, sso, null); + private ApiResponse postBanUserUndoWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserUndoAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(banUserUndoParams, tenantId, sso, _callback); + okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(tenantId, banUserUndoParams, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostBanUserUndoRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final BanUserUndoParams banUserUndoParams; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostBanUserUndoRequest(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { - this.banUserUndoParams = banUserUndoParams; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostBanUserUndoRequest - */ - public APIpostBanUserUndoRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIpostBanUserUndoRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { this.tenantId = tenantId; - return this; + this.banUserUndoParams = banUserUndoParams; } /** @@ -5983,7 +5901,7 @@ public APIpostBanUserUndoRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postBanUserUndoCall(banUserUndoParams, tenantId, sso, _callback); + return postBanUserUndoCall(tenantId, banUserUndoParams, sso, _callback); } /** @@ -5999,7 +5917,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postBanUserUndoWithHttpInfo(banUserUndoParams, tenantId, sso); + ApiResponse localVarResp = postBanUserUndoWithHttpInfo(tenantId, banUserUndoParams, sso); return localVarResp.getData(); } @@ -6016,7 +5934,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postBanUserUndoWithHttpInfo(banUserUndoParams, tenantId, sso); + return postBanUserUndoWithHttpInfo(tenantId, banUserUndoParams, sso); } /** @@ -6033,13 +5951,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postBanUserUndoAsync(banUserUndoParams, tenantId, sso, _callback); + return postBanUserUndoAsync(tenantId, banUserUndoParams, sso, _callback); } } /** * * + * @param tenantId (required) * @param banUserUndoParams (required) * @return APIpostBanUserUndoRequest * @http.response.details @@ -6050,10 +5969,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostBanUserUndoRequest postBanUserUndo(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { - return new APIpostBanUserUndoRequest(banUserUndoParams); + public APIpostBanUserUndoRequest postBanUserUndo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { + return new APIpostBanUserUndoRequest(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -6070,7 +5989,7 @@ private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull BulkPre Object localVarPostBody = bulkPreBanParams; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/bulk-pre-ban-summary"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6078,6 +5997,10 @@ private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull BulkPre Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (includeByUserIdAndEmail != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByUserIdAndEmail", includeByUserIdAndEmail)); } @@ -6090,10 +6013,6 @@ private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull BulkPre localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByEmailDomain", includeByEmailDomain)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6119,32 +6038,39 @@ private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull BulkPre } @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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBulkPreBanSummaryValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @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 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postBulkPreBanSummary(Async)"); + } + // 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, tenantId, sso, _callback); + return postBulkPreBanSummaryCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, null); + private ApiResponse postBulkPreBanSummaryWithHttpInfo(@javax.annotation.Nonnull String tenantId, @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(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBulkPreBanSummaryAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(tenantId, 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 String tenantId; @javax.annotation.Nonnull private final BulkPreBanParams bulkPreBanParams; @javax.annotation.Nullable @@ -6154,11 +6080,10 @@ public class APIpostBulkPreBanSummaryRequest { @javax.annotation.Nullable private Boolean includeByEmailDomain; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostBulkPreBanSummaryRequest(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { + private APIpostBulkPreBanSummaryRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { + this.tenantId = tenantId; this.bulkPreBanParams = bulkPreBanParams; } @@ -6192,16 +6117,6 @@ public APIpostBulkPreBanSummaryRequest includeByEmailDomain(@javax.annotation.Nu return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostBulkPreBanSummaryRequest - */ - public APIpostBulkPreBanSummaryRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -6226,7 +6141,7 @@ public APIpostBulkPreBanSummaryRequest sso(@javax.annotation.Nullable String sso */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postBulkPreBanSummaryCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); + return postBulkPreBanSummaryCall(tenantId, bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); } /** @@ -6242,7 +6157,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public BulkPreBanSummary execute() throws ApiException { - ApiResponse localVarResp = postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); + ApiResponse localVarResp = postBulkPreBanSummaryWithHttpInfo(tenantId, bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); return localVarResp.getData(); } @@ -6259,7 +6174,7 @@ public BulkPreBanSummary execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso); + return postBulkPreBanSummaryWithHttpInfo(tenantId, bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); } /** @@ -6276,13 +6191,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postBulkPreBanSummaryAsync(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso, _callback); + return postBulkPreBanSummaryAsync(tenantId, bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); } } /** * * + * @param tenantId (required) * @param bulkPreBanParams (required) * @return APIpostBulkPreBanSummaryRequest * @http.response.details @@ -6293,10 +6209,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostBulkPreBanSummaryRequest postBulkPreBanSummary(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { - return new APIpostBulkPreBanSummaryRequest(bulkPreBanParams); + public APIpostBulkPreBanSummaryRequest postBulkPreBanSummary(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { + return new APIpostBulkPreBanSummaryRequest(tenantId, bulkPreBanParams); } - private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6313,7 +6229,7 @@ private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull CommentsByI Object localVarPostBody = commentsByIdsParams; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/comments-by-ids"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/comments-by-ids"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6350,51 +6266,47 @@ private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull CommentsByI } @SuppressWarnings("rawtypes") - private okhttp3.Call postCommentsByIdsValidateBeforeCall(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postCommentsByIdsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @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 postCommentsByIds(Async)"); + } + // 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, tenantId, sso, _callback); + return postCommentsByIdsCall(tenantId, commentsByIdsParams, sso, _callback); } - private ApiResponse postCommentsByIdsWithHttpInfo(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(commentsByIdsParams, tenantId, sso, null); + private ApiResponse postCommentsByIdsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postCommentsByIdsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(commentsByIdsParams, tenantId, sso, _callback); + okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(tenantId, commentsByIdsParams, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostCommentsByIdsRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final CommentsByIdsParams commentsByIdsParams; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostCommentsByIdsRequest(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { - this.commentsByIdsParams = commentsByIdsParams; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostCommentsByIdsRequest - */ - public APIpostCommentsByIdsRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIpostCommentsByIdsRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { this.tenantId = tenantId; - return this; + this.commentsByIdsParams = commentsByIdsParams; } /** @@ -6421,7 +6333,7 @@ public APIpostCommentsByIdsRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postCommentsByIdsCall(commentsByIdsParams, tenantId, sso, _callback); + return postCommentsByIdsCall(tenantId, commentsByIdsParams, sso, _callback); } /** @@ -6437,7 +6349,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPIChildCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = postCommentsByIdsWithHttpInfo(commentsByIdsParams, tenantId, sso); + ApiResponse localVarResp = postCommentsByIdsWithHttpInfo(tenantId, commentsByIdsParams, sso); return localVarResp.getData(); } @@ -6454,7 +6366,7 @@ public ModerationAPIChildCommentsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postCommentsByIdsWithHttpInfo(commentsByIdsParams, tenantId, sso); + return postCommentsByIdsWithHttpInfo(tenantId, commentsByIdsParams, sso); } /** @@ -6471,13 +6383,14 @@ public ApiResponse executeWithHttpInfo() thr */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postCommentsByIdsAsync(commentsByIdsParams, tenantId, sso, _callback); + return postCommentsByIdsAsync(tenantId, commentsByIdsParams, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentsByIdsParams (required) * @return APIpostCommentsByIdsRequest * @http.response.details @@ -6488,10 +6401,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIpostCommentsByIdsRequest postCommentsByIds(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { - return new APIpostCommentsByIdsRequest(commentsByIdsParams); + public APIpostCommentsByIdsRequest postCommentsByIds(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { + return new APIpostCommentsByIdsRequest(tenantId, commentsByIdsParams); } - private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull 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[] { }; @@ -6508,7 +6421,7 @@ private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commen Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/flag-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -6517,14 +6430,14 @@ private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commen Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (broadcastId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6549,42 +6462,48 @@ private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commen } @SuppressWarnings("rawtypes") - private okhttp3.Call postFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @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 postFlagComment(Async)"); + } + // 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, broadcastId, tenantId, sso, _callback); + return postFlagCommentCall(tenantId, commentId, broadcastId, sso, _callback); } - private ApiResponse postFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, null); + private ApiResponse postFlagCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(tenantId, commentId, broadcastId, 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postFlagCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, _callback); + okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostFlagCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostFlagCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIpostFlagCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -6598,16 +6517,6 @@ public APIpostFlagCommentRequest broadcastId(@javax.annotation.Nullable String b return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostFlagCommentRequest - */ - public APIpostFlagCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -6632,7 +6541,7 @@ public APIpostFlagCommentRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postFlagCommentCall(commentId, broadcastId, tenantId, sso, _callback); + return postFlagCommentCall(tenantId, commentId, broadcastId, sso, _callback); } /** @@ -6648,7 +6557,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); + ApiResponse localVarResp = postFlagCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } @@ -6665,7 +6574,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); + return postFlagCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } /** @@ -6682,13 +6591,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postFlagCommentAsync(commentId, broadcastId, tenantId, sso, _callback); + return postFlagCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostFlagCommentRequest * @http.response.details @@ -6699,10 +6609,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostFlagCommentRequest postFlagComment(@javax.annotation.Nonnull String commentId) { - return new APIpostFlagCommentRequest(commentId); + public APIpostFlagCommentRequest postFlagComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostFlagCommentRequest(tenantId, commentId); } - private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull 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[] { }; @@ -6719,7 +6629,7 @@ private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String comm Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/remove-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -6728,14 +6638,14 @@ private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String comm Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (broadcastId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6760,42 +6670,48 @@ private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String comm } @SuppressWarnings("rawtypes") - private okhttp3.Call postRemoveCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRemoveCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @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 postRemoveComment(Async)"); + } + // 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, broadcastId, tenantId, sso, _callback); + return postRemoveCommentCall(tenantId, commentId, broadcastId, sso, _callback); } - private ApiResponse postRemoveCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse postRemoveCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(tenantId, commentId, broadcastId, 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRemoveCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostRemoveCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostRemoveCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIpostRemoveCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -6809,16 +6725,6 @@ public APIpostRemoveCommentRequest broadcastId(@javax.annotation.Nullable String return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostRemoveCommentRequest - */ - public APIpostRemoveCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -6843,12 +6749,12 @@ public APIpostRemoveCommentRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postRemoveCommentCall(commentId, broadcastId, tenantId, sso, _callback); + return postRemoveCommentCall(tenantId, commentId, broadcastId, sso, _callback); } /** * Execute postRemoveComment request - * @return PostRemoveCommentResponse + * @return PostRemoveCommentApiResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6858,14 +6764,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
0 Error -
*/ - public PostRemoveCommentResponse execute() throws ApiException { - ApiResponse localVarResp = postRemoveCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); + public PostRemoveCommentApiResponse execute() throws ApiException { + ApiResponse localVarResp = postRemoveCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } /** * Execute postRemoveComment request with HTTP info returned - * @return ApiResponse<PostRemoveCommentResponse> + * @return ApiResponse<PostRemoveCommentApiResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6875,8 +6781,8 @@ public PostRemoveCommentResponse execute() throws ApiException {
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return postRemoveCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postRemoveCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } /** @@ -6892,14 +6798,15 @@ public ApiResponse executeWithHttpInfo() throws ApiEx 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postRemoveCommentAsync(commentId, broadcastId, tenantId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postRemoveCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostRemoveCommentRequest * @http.response.details @@ -6910,10 +6817,10 @@ public okhttp3.Call executeAsync(final ApiCallback _c 0 Error - */ - public APIpostRemoveCommentRequest postRemoveComment(@javax.annotation.Nonnull String commentId) { - return new APIpostRemoveCommentRequest(commentId); + public APIpostRemoveCommentRequest postRemoveComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostRemoveCommentRequest(tenantId, commentId); } - private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull 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[] { }; @@ -6930,7 +6837,7 @@ private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull Str Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -6939,14 +6846,14 @@ private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (broadcastId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6971,42 +6878,48 @@ private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull Str } @SuppressWarnings("rawtypes") - private okhttp3.Call postRestoreDeletedCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRestoreDeletedCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @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 postRestoreDeletedComment(Async)"); + } + // 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, broadcastId, tenantId, sso, _callback); + return postRestoreDeletedCommentCall(tenantId, commentId, broadcastId, sso, _callback); } - private ApiResponse postRestoreDeletedCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, null); + private ApiResponse postRestoreDeletedCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(tenantId, commentId, broadcastId, 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRestoreDeletedCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, _callback); + okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostRestoreDeletedCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostRestoreDeletedCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIpostRestoreDeletedCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -7020,16 +6933,6 @@ public APIpostRestoreDeletedCommentRequest broadcastId(@javax.annotation.Nullabl return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostRestoreDeletedCommentRequest - */ - public APIpostRestoreDeletedCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -7054,7 +6957,7 @@ public APIpostRestoreDeletedCommentRequest sso(@javax.annotation.Nullable String */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postRestoreDeletedCommentCall(commentId, broadcastId, tenantId, sso, _callback); + return postRestoreDeletedCommentCall(tenantId, commentId, broadcastId, sso, _callback); } /** @@ -7070,7 +6973,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postRestoreDeletedCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); + ApiResponse localVarResp = postRestoreDeletedCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } @@ -7087,7 +6990,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postRestoreDeletedCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); + return postRestoreDeletedCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } /** @@ -7104,13 +7007,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postRestoreDeletedCommentAsync(commentId, broadcastId, tenantId, sso, _callback); + return postRestoreDeletedCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostRestoreDeletedCommentRequest * @http.response.details @@ -7121,10 +7025,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostRestoreDeletedCommentRequest postRestoreDeletedComment(@javax.annotation.Nonnull String commentId) { - return new APIpostRestoreDeletedCommentRequest(commentId); + public APIpostRestoreDeletedCommentRequest postRestoreDeletedComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostRestoreDeletedCommentRequest(tenantId, commentId); } - private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7141,7 +7045,7 @@ private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -7150,6 +7054,10 @@ private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (approved != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("approved", approved)); } @@ -7158,10 +7066,6 @@ private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7186,32 +7090,39 @@ private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull } @SuppressWarnings("rawtypes") - private okhttp3.Call postSetCommentApprovalStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentApprovalStatusValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @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 postSetCommentApprovalStatus(Async)"); + } + // 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, broadcastId, tenantId, sso, _callback); + return postSetCommentApprovalStatusCall(tenantId, commentId, approved, broadcastId, sso, _callback); } - private ApiResponse postSetCommentApprovalStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(commentId, approved, broadcastId, tenantId, sso, null); + private ApiResponse postSetCommentApprovalStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(tenantId, commentId, approved, broadcastId, 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentApprovalStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(commentId, approved, broadcastId, tenantId, sso, _callback); + okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(tenantId, commentId, approved, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostSetCommentApprovalStatusRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable @@ -7219,11 +7130,10 @@ public class APIpostSetCommentApprovalStatusRequest { @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostSetCommentApprovalStatusRequest(@javax.annotation.Nonnull String commentId) { + private APIpostSetCommentApprovalStatusRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -7247,16 +7157,6 @@ public APIpostSetCommentApprovalStatusRequest broadcastId(@javax.annotation.Null return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostSetCommentApprovalStatusRequest - */ - public APIpostSetCommentApprovalStatusRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -7281,7 +7181,7 @@ public APIpostSetCommentApprovalStatusRequest sso(@javax.annotation.Nullable Str */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postSetCommentApprovalStatusCall(commentId, approved, broadcastId, tenantId, sso, _callback); + return postSetCommentApprovalStatusCall(tenantId, commentId, approved, broadcastId, sso, _callback); } /** @@ -7297,7 +7197,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public SetCommentApprovedResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentApprovalStatusWithHttpInfo(commentId, approved, broadcastId, tenantId, sso); + ApiResponse localVarResp = postSetCommentApprovalStatusWithHttpInfo(tenantId, commentId, approved, broadcastId, sso); return localVarResp.getData(); } @@ -7314,7 +7214,7 @@ public SetCommentApprovedResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postSetCommentApprovalStatusWithHttpInfo(commentId, approved, broadcastId, tenantId, sso); + return postSetCommentApprovalStatusWithHttpInfo(tenantId, commentId, approved, broadcastId, sso); } /** @@ -7331,13 +7231,14 @@ public ApiResponse executeWithHttpInfo() throws ApiE */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postSetCommentApprovalStatusAsync(commentId, approved, broadcastId, tenantId, sso, _callback); + return postSetCommentApprovalStatusAsync(tenantId, commentId, approved, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostSetCommentApprovalStatusRequest * @http.response.details @@ -7348,10 +7249,10 @@ public okhttp3.Call executeAsync(final ApiCallback _ 0 Error - */ - public APIpostSetCommentApprovalStatusRequest postSetCommentApprovalStatus(@javax.annotation.Nonnull String commentId) { - return new APIpostSetCommentApprovalStatusRequest(commentId); + public APIpostSetCommentApprovalStatusRequest postSetCommentApprovalStatus(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostSetCommentApprovalStatusRequest(tenantId, commentId); } - private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7368,7 +7269,7 @@ private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull St Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -7377,6 +7278,10 @@ private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (reviewed != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("reviewed", reviewed)); } @@ -7385,10 +7290,6 @@ private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull St localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7413,32 +7314,39 @@ private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull St } @SuppressWarnings("rawtypes") - private okhttp3.Call postSetCommentReviewStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentReviewStatusValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @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 postSetCommentReviewStatus(Async)"); + } + // 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, broadcastId, tenantId, sso, _callback); + return postSetCommentReviewStatusCall(tenantId, commentId, reviewed, broadcastId, sso, _callback); } - private ApiResponse postSetCommentReviewStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(commentId, reviewed, broadcastId, tenantId, sso, null); + private ApiResponse postSetCommentReviewStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(tenantId, commentId, reviewed, broadcastId, 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentReviewStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(commentId, reviewed, broadcastId, tenantId, sso, _callback); + okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(tenantId, commentId, reviewed, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostSetCommentReviewStatusRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable @@ -7446,11 +7354,10 @@ public class APIpostSetCommentReviewStatusRequest { @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostSetCommentReviewStatusRequest(@javax.annotation.Nonnull String commentId) { + private APIpostSetCommentReviewStatusRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -7474,16 +7381,6 @@ public APIpostSetCommentReviewStatusRequest broadcastId(@javax.annotation.Nullab return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostSetCommentReviewStatusRequest - */ - public APIpostSetCommentReviewStatusRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -7508,7 +7405,7 @@ public APIpostSetCommentReviewStatusRequest sso(@javax.annotation.Nullable Strin */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postSetCommentReviewStatusCall(commentId, reviewed, broadcastId, tenantId, sso, _callback); + return postSetCommentReviewStatusCall(tenantId, commentId, reviewed, broadcastId, sso, _callback); } /** @@ -7524,7 +7421,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentReviewStatusWithHttpInfo(commentId, reviewed, broadcastId, tenantId, sso); + ApiResponse localVarResp = postSetCommentReviewStatusWithHttpInfo(tenantId, commentId, reviewed, broadcastId, sso); return localVarResp.getData(); } @@ -7541,7 +7438,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postSetCommentReviewStatusWithHttpInfo(commentId, reviewed, broadcastId, tenantId, sso); + return postSetCommentReviewStatusWithHttpInfo(tenantId, commentId, reviewed, broadcastId, sso); } /** @@ -7558,13 +7455,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postSetCommentReviewStatusAsync(commentId, reviewed, broadcastId, tenantId, sso, _callback); + return postSetCommentReviewStatusAsync(tenantId, commentId, reviewed, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostSetCommentReviewStatusRequest * @http.response.details @@ -7575,10 +7473,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostSetCommentReviewStatusRequest postSetCommentReviewStatus(@javax.annotation.Nonnull String commentId) { - return new APIpostSetCommentReviewStatusRequest(commentId); + public APIpostSetCommentReviewStatusRequest postSetCommentReviewStatus(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostSetCommentReviewStatusRequest(tenantId, commentId); } - private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7595,7 +7493,7 @@ private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull Stri Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -7604,6 +7502,10 @@ private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (spam != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("spam", spam)); } @@ -7616,10 +7518,6 @@ private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7644,32 +7542,39 @@ private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull Stri } @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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentSpamStatusValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @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 postSetCommentSpamStatus(Async)"); + } + // 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, broadcastId, tenantId, sso, _callback); + return postSetCommentSpamStatusCall(tenantId, commentId, spam, permNotSpam, broadcastId, sso, _callback); } - private ApiResponse postSetCommentSpamStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(commentId, spam, permNotSpam, broadcastId, tenantId, sso, null); + private ApiResponse postSetCommentSpamStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(tenantId, commentId, spam, permNotSpam, broadcastId, 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentSpamStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(commentId, spam, permNotSpam, broadcastId, tenantId, sso, _callback); + okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(tenantId, commentId, spam, permNotSpam, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostSetCommentSpamStatusRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable @@ -7679,11 +7584,10 @@ public class APIpostSetCommentSpamStatusRequest { @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostSetCommentSpamStatusRequest(@javax.annotation.Nonnull String commentId) { + private APIpostSetCommentSpamStatusRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -7717,16 +7621,6 @@ public APIpostSetCommentSpamStatusRequest broadcastId(@javax.annotation.Nullable return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostSetCommentSpamStatusRequest - */ - public APIpostSetCommentSpamStatusRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -7751,7 +7645,7 @@ public APIpostSetCommentSpamStatusRequest sso(@javax.annotation.Nullable String */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postSetCommentSpamStatusCall(commentId, spam, permNotSpam, broadcastId, tenantId, sso, _callback); + return postSetCommentSpamStatusCall(tenantId, commentId, spam, permNotSpam, broadcastId, sso, _callback); } /** @@ -7767,7 +7661,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentSpamStatusWithHttpInfo(commentId, spam, permNotSpam, broadcastId, tenantId, sso); + ApiResponse localVarResp = postSetCommentSpamStatusWithHttpInfo(tenantId, commentId, spam, permNotSpam, broadcastId, sso); return localVarResp.getData(); } @@ -7784,7 +7678,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postSetCommentSpamStatusWithHttpInfo(commentId, spam, permNotSpam, broadcastId, tenantId, sso); + return postSetCommentSpamStatusWithHttpInfo(tenantId, commentId, spam, permNotSpam, broadcastId, sso); } /** @@ -7801,13 +7695,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postSetCommentSpamStatusAsync(commentId, spam, permNotSpam, broadcastId, tenantId, sso, _callback); + return postSetCommentSpamStatusAsync(tenantId, commentId, spam, permNotSpam, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostSetCommentSpamStatusRequest * @http.response.details @@ -7818,10 +7713,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostSetCommentSpamStatusRequest postSetCommentSpamStatus(@javax.annotation.Nonnull String commentId) { - return new APIpostSetCommentSpamStatusRequest(commentId); + public APIpostSetCommentSpamStatusRequest postSetCommentSpamStatus(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostSetCommentSpamStatusRequest(tenantId, commentId); } - private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7838,7 +7733,7 @@ private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String com Object localVarPostBody = setCommentTextParams; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/set-comment-text/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -7847,14 +7742,14 @@ private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String com Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (broadcastId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7880,7 +7775,12 @@ private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String com } @SuppressWarnings("rawtypes") - private okhttp3.Call postSetCommentTextValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentTextValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @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 postSetCommentText(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postSetCommentText(Async)"); @@ -7891,26 +7791,28 @@ private okhttp3.Call postSetCommentTextValidateBeforeCall(@javax.annotation.Nonn throw new ApiException("Missing the required parameter 'setCommentTextParams' when calling postSetCommentText(Async)"); } - return postSetCommentTextCall(commentId, setCommentTextParams, broadcastId, tenantId, sso, _callback); + return postSetCommentTextCall(tenantId, commentId, setCommentTextParams, broadcastId, sso, _callback); } - private ApiResponse postSetCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(commentId, setCommentTextParams, broadcastId, tenantId, sso, null); + private ApiResponse postSetCommentTextWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(tenantId, commentId, setCommentTextParams, broadcastId, 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentTextAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(commentId, setCommentTextParams, broadcastId, tenantId, sso, _callback); + okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(tenantId, commentId, setCommentTextParams, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostSetCommentTextRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nonnull @@ -7918,11 +7820,10 @@ public class APIpostSetCommentTextRequest { @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostSetCommentTextRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { + private APIpostSetCommentTextRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { + this.tenantId = tenantId; this.commentId = commentId; this.setCommentTextParams = setCommentTextParams; } @@ -7937,16 +7838,6 @@ public APIpostSetCommentTextRequest broadcastId(@javax.annotation.Nullable Strin return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostSetCommentTextRequest - */ - public APIpostSetCommentTextRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -7971,7 +7862,7 @@ public APIpostSetCommentTextRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postSetCommentTextCall(commentId, setCommentTextParams, broadcastId, tenantId, sso, _callback); + return postSetCommentTextCall(tenantId, commentId, setCommentTextParams, broadcastId, sso, _callback); } /** @@ -7987,7 +7878,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public SetCommentTextResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, broadcastId, tenantId, sso); + ApiResponse localVarResp = postSetCommentTextWithHttpInfo(tenantId, commentId, setCommentTextParams, broadcastId, sso); return localVarResp.getData(); } @@ -8004,7 +7895,7 @@ public SetCommentTextResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, broadcastId, tenantId, sso); + return postSetCommentTextWithHttpInfo(tenantId, commentId, setCommentTextParams, broadcastId, sso); } /** @@ -8021,13 +7912,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postSetCommentTextAsync(commentId, setCommentTextParams, broadcastId, tenantId, sso, _callback); + return postSetCommentTextAsync(tenantId, commentId, setCommentTextParams, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @param setCommentTextParams (required) * @return APIpostSetCommentTextRequest @@ -8039,10 +7931,10 @@ public okhttp3.Call executeAsync(final ApiCallback _call 0 Error - */ - public APIpostSetCommentTextRequest postSetCommentText(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { - return new APIpostSetCommentTextRequest(commentId, setCommentTextParams); + public APIpostSetCommentTextRequest postSetCommentText(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { + return new APIpostSetCommentTextRequest(tenantId, commentId, setCommentTextParams); } - private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull 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[] { }; @@ -8059,7 +7951,7 @@ private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String comm Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/un-flag-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -8068,14 +7960,14 @@ private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String comm Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (broadcastId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -8100,42 +7992,48 @@ private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String comm } @SuppressWarnings("rawtypes") - private okhttp3.Call postUnFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postUnFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @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 postUnFlagComment(Async)"); + } + // 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, broadcastId, tenantId, sso, _callback); + return postUnFlagCommentCall(tenantId, commentId, broadcastId, sso, _callback); } - private ApiResponse postUnFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, null); + private ApiResponse postUnFlagCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(tenantId, commentId, broadcastId, 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postUnFlagCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(commentId, broadcastId, tenantId, sso, _callback); + okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostUnFlagCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostUnFlagCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIpostUnFlagCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -8149,16 +8047,6 @@ public APIpostUnFlagCommentRequest broadcastId(@javax.annotation.Nullable String return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostUnFlagCommentRequest - */ - public APIpostUnFlagCommentRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -8183,7 +8071,7 @@ public APIpostUnFlagCommentRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postUnFlagCommentCall(commentId, broadcastId, tenantId, sso, _callback); + return postUnFlagCommentCall(tenantId, commentId, broadcastId, sso, _callback); } /** @@ -8199,7 +8087,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postUnFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); + ApiResponse localVarResp = postUnFlagCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } @@ -8216,7 +8104,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postUnFlagCommentWithHttpInfo(commentId, broadcastId, tenantId, sso); + return postUnFlagCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } /** @@ -8233,13 +8121,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postUnFlagCommentAsync(commentId, broadcastId, tenantId, sso, _callback); + return postUnFlagCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostUnFlagCommentRequest * @http.response.details @@ -8250,10 +8139,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostUnFlagCommentRequest postUnFlagComment(@javax.annotation.Nonnull String commentId) { - return new APIpostUnFlagCommentRequest(commentId); + public APIpostUnFlagCommentRequest postUnFlagComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostUnFlagCommentRequest(tenantId, commentId); } - private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8270,7 +8159,7 @@ private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @j Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/vote/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/vote/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -8279,6 +8168,10 @@ private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @j Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (direction != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("direction", direction)); } @@ -8287,10 +8180,6 @@ private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @j localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -8315,32 +8204,39 @@ private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @j } @SuppressWarnings("rawtypes") - private okhttp3.Call postVoteValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postVoteValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @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 postVote(Async)"); + } + // 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, broadcastId, tenantId, sso, _callback); + return postVoteCall(tenantId, commentId, direction, broadcastId, sso, _callback); } - private ApiResponse postVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postVoteValidateBeforeCall(commentId, direction, broadcastId, tenantId, sso, null); + private ApiResponse postVoteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postVoteValidateBeforeCall(tenantId, commentId, direction, broadcastId, 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 broadcastId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postVoteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postVoteValidateBeforeCall(commentId, direction, broadcastId, tenantId, sso, _callback); + okhttp3.Call localVarCall = postVoteValidateBeforeCall(tenantId, commentId, direction, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostVoteRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable @@ -8348,11 +8244,10 @@ public class APIpostVoteRequest { @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIpostVoteRequest(@javax.annotation.Nonnull String commentId) { + private APIpostVoteRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -8376,16 +8271,6 @@ public APIpostVoteRequest broadcastId(@javax.annotation.Nullable String broadcas return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpostVoteRequest - */ - public APIpostVoteRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -8410,7 +8295,7 @@ public APIpostVoteRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postVoteCall(commentId, direction, broadcastId, tenantId, sso, _callback); + return postVoteCall(tenantId, commentId, direction, broadcastId, sso, _callback); } /** @@ -8426,7 +8311,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public VoteResponse execute() throws ApiException { - ApiResponse localVarResp = postVoteWithHttpInfo(commentId, direction, broadcastId, tenantId, sso); + ApiResponse localVarResp = postVoteWithHttpInfo(tenantId, commentId, direction, broadcastId, sso); return localVarResp.getData(); } @@ -8443,7 +8328,7 @@ public VoteResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postVoteWithHttpInfo(commentId, direction, broadcastId, tenantId, sso); + return postVoteWithHttpInfo(tenantId, commentId, direction, broadcastId, sso); } /** @@ -8460,13 +8345,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postVoteAsync(commentId, direction, broadcastId, tenantId, sso, _callback); + return postVoteAsync(tenantId, commentId, direction, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostVoteRequest * @http.response.details @@ -8477,10 +8363,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro 0 Error - */ - public APIpostVoteRequest postVote(@javax.annotation.Nonnull String commentId) { - return new APIpostVoteRequest(commentId); + public APIpostVoteRequest postVote(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostVoteRequest(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -8497,7 +8383,7 @@ private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String badgeId, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/award-badge"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/award-badge"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8505,6 +8391,10 @@ private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String badgeId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (badgeId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("badgeId", badgeId)); } @@ -8521,10 +8411,6 @@ private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String badgeId, localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -8549,32 +8435,39 @@ private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String badgeId, } @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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putAwardBadgeValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @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 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling putAwardBadge(Async)"); + } + // 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, tenantId, sso, _callback); + return putAwardBadgeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, null); + private ApiResponse putAwardBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @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(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putAwardBadgeAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(tenantId, 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 tenantId; @javax.annotation.Nonnull private final String badgeId; @javax.annotation.Nullable @@ -8584,11 +8477,10 @@ public class APIputAwardBadgeRequest { @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIputAwardBadgeRequest(@javax.annotation.Nonnull String badgeId) { + private APIputAwardBadgeRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId) { + this.tenantId = tenantId; this.badgeId = badgeId; } @@ -8622,16 +8514,6 @@ public APIputAwardBadgeRequest broadcastId(@javax.annotation.Nullable String bro return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIputAwardBadgeRequest - */ - public APIputAwardBadgeRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -8656,7 +8538,7 @@ public APIputAwardBadgeRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return putAwardBadgeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); + return putAwardBadgeCall(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); } /** @@ -8672,7 +8554,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public AwardUserBadgeResponse execute() throws ApiException { - ApiResponse localVarResp = putAwardBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); + ApiResponse localVarResp = putAwardBadgeWithHttpInfo(tenantId, badgeId, userId, commentId, broadcastId, sso); return localVarResp.getData(); } @@ -8689,7 +8571,7 @@ public AwardUserBadgeResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return putAwardBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); + return putAwardBadgeWithHttpInfo(tenantId, badgeId, userId, commentId, broadcastId, sso); } /** @@ -8706,13 +8588,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return putAwardBadgeAsync(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); + return putAwardBadgeAsync(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param badgeId (required) * @return APIputAwardBadgeRequest * @http.response.details @@ -8723,10 +8606,10 @@ public okhttp3.Call executeAsync(final ApiCallback _call 0 Error - */ - public APIputAwardBadgeRequest putAwardBadge(@javax.annotation.Nonnull String badgeId) { - return new APIputAwardBadgeRequest(badgeId); + public APIputAwardBadgeRequest putAwardBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId) { + return new APIputAwardBadgeRequest(tenantId, badgeId); } - private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8743,7 +8626,7 @@ private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/close-thread"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/close-thread"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8751,14 +8634,14 @@ private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (urlId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -8783,51 +8666,47 @@ private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, } @SuppressWarnings("rawtypes") - private okhttp3.Call putCloseThreadValidateBeforeCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putCloseThreadValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @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 putCloseThread(Async)"); + } + // 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, tenantId, sso, _callback); + return putCloseThreadCall(tenantId, urlId, sso, _callback); } - private ApiResponse putCloseThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(urlId, tenantId, sso, null); + private ApiResponse putCloseThreadWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putCloseThreadAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(urlId, tenantId, sso, _callback); + okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(tenantId, urlId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIputCloseThreadRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String urlId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIputCloseThreadRequest(@javax.annotation.Nonnull String urlId) { - this.urlId = urlId; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIputCloseThreadRequest - */ - public APIputCloseThreadRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIputCloseThreadRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { this.tenantId = tenantId; - return this; + this.urlId = urlId; } /** @@ -8854,7 +8733,7 @@ public APIputCloseThreadRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return putCloseThreadCall(urlId, tenantId, sso, _callback); + return putCloseThreadCall(tenantId, urlId, sso, _callback); } /** @@ -8870,7 +8749,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = putCloseThreadWithHttpInfo(urlId, tenantId, sso); + ApiResponse localVarResp = putCloseThreadWithHttpInfo(tenantId, urlId, sso); return localVarResp.getData(); } @@ -8887,7 +8766,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return putCloseThreadWithHttpInfo(urlId, tenantId, sso); + return putCloseThreadWithHttpInfo(tenantId, urlId, sso); } /** @@ -8904,13 +8783,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return putCloseThreadAsync(urlId, tenantId, sso, _callback); + return putCloseThreadAsync(tenantId, urlId, sso, _callback); } } /** * * + * @param tenantId (required) * @param urlId (required) * @return APIputCloseThreadRequest * @http.response.details @@ -8921,10 +8801,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIputCloseThreadRequest putCloseThread(@javax.annotation.Nonnull String urlId) { - return new APIputCloseThreadRequest(urlId); + public APIputCloseThreadRequest putCloseThread(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + return new APIputCloseThreadRequest(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -8941,7 +8821,7 @@ private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String badgeId Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/remove-badge"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/remove-badge"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8949,6 +8829,10 @@ private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String badgeId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (badgeId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("badgeId", badgeId)); } @@ -8965,10 +8849,6 @@ private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String badgeId localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -8993,32 +8873,39 @@ private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String badgeId } @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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putRemoveBadgeValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @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 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling putRemoveBadge(Async)"); + } + // 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, tenantId, sso, _callback); + return putRemoveBadgeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, null); + private ApiResponse putRemoveBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @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(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putRemoveBadgeAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(tenantId, 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 tenantId; @javax.annotation.Nonnull private final String badgeId; @javax.annotation.Nullable @@ -9028,11 +8915,10 @@ public class APIputRemoveBadgeRequest { @javax.annotation.Nullable private String broadcastId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIputRemoveBadgeRequest(@javax.annotation.Nonnull String badgeId) { + private APIputRemoveBadgeRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId) { + this.tenantId = tenantId; this.badgeId = badgeId; } @@ -9066,16 +8952,6 @@ public APIputRemoveBadgeRequest broadcastId(@javax.annotation.Nullable String br return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIputRemoveBadgeRequest - */ - public APIputRemoveBadgeRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -9100,7 +8976,7 @@ public APIputRemoveBadgeRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return putRemoveBadgeCall(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); + return putRemoveBadgeCall(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); } /** @@ -9116,7 +8992,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public RemoveUserBadgeResponse execute() throws ApiException { - ApiResponse localVarResp = putRemoveBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); + ApiResponse localVarResp = putRemoveBadgeWithHttpInfo(tenantId, badgeId, userId, commentId, broadcastId, sso); return localVarResp.getData(); } @@ -9133,7 +9009,7 @@ public RemoveUserBadgeResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return putRemoveBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, tenantId, sso); + return putRemoveBadgeWithHttpInfo(tenantId, badgeId, userId, commentId, broadcastId, sso); } /** @@ -9150,13 +9026,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExce */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return putRemoveBadgeAsync(badgeId, userId, commentId, broadcastId, tenantId, sso, _callback); + return putRemoveBadgeAsync(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param badgeId (required) * @return APIputRemoveBadgeRequest * @http.response.details @@ -9167,10 +9044,10 @@ public okhttp3.Call executeAsync(final ApiCallback _cal 0 Error - */ - public APIputRemoveBadgeRequest putRemoveBadge(@javax.annotation.Nonnull String badgeId) { - return new APIputRemoveBadgeRequest(badgeId); + public APIputRemoveBadgeRequest putRemoveBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId) { + return new APIputRemoveBadgeRequest(tenantId, badgeId); } - private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9187,7 +9064,7 @@ private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/reopen-thread"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/reopen-thread"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -9195,14 +9072,14 @@ private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (urlId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); - } - if (tenantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); } + if (urlId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -9227,51 +9104,47 @@ private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, } @SuppressWarnings("rawtypes") - private okhttp3.Call putReopenThreadValidateBeforeCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putReopenThreadValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @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 putReopenThread(Async)"); + } + // 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, tenantId, sso, _callback); + return putReopenThreadCall(tenantId, urlId, sso, _callback); } - private ApiResponse putReopenThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(urlId, tenantId, sso, null); + private ApiResponse putReopenThreadWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putReopenThreadAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(urlId, tenantId, sso, _callback); + okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(tenantId, urlId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIputReopenThreadRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String urlId; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIputReopenThreadRequest(@javax.annotation.Nonnull String urlId) { - this.urlId = urlId; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIputReopenThreadRequest - */ - public APIputReopenThreadRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIputReopenThreadRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { this.tenantId = tenantId; - return this; + this.urlId = urlId; } /** @@ -9298,7 +9171,7 @@ public APIputReopenThreadRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return putReopenThreadCall(urlId, tenantId, sso, _callback); + return putReopenThreadCall(tenantId, urlId, sso, _callback); } /** @@ -9314,7 +9187,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = putReopenThreadWithHttpInfo(urlId, tenantId, sso); + ApiResponse localVarResp = putReopenThreadWithHttpInfo(tenantId, urlId, sso); return localVarResp.getData(); } @@ -9331,7 +9204,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return putReopenThreadWithHttpInfo(urlId, tenantId, sso); + return putReopenThreadWithHttpInfo(tenantId, urlId, sso); } /** @@ -9348,13 +9221,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return putReopenThreadAsync(urlId, tenantId, sso, _callback); + return putReopenThreadAsync(tenantId, urlId, sso, _callback); } } /** * * + * @param tenantId (required) * @param urlId (required) * @return APIputReopenThreadRequest * @http.response.details @@ -9365,10 +9239,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIputReopenThreadRequest putReopenThread(@javax.annotation.Nonnull String urlId) { - return new APIputReopenThreadRequest(urlId); + public APIputReopenThreadRequest putReopenThread(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + return new APIputReopenThreadRequest(tenantId, urlId); } - private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call setTrustFactorCall(@javax.annotation.Nonnull String tenantId, @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[] { }; @@ -9385,7 +9259,7 @@ private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/set-trust-factor"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/set-trust-factor"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -9393,6 +9267,10 @@ private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (userId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); } @@ -9401,10 +9279,6 @@ private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId localVarQueryParams.addAll(localVarApiClient.parameterToPair("trustFactor", trustFactor)); } - if (tenantId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); - } - if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -9429,37 +9303,43 @@ private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId } @SuppressWarnings("rawtypes") - private okhttp3.Call setTrustFactorValidateBeforeCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return setTrustFactorCall(userId, trustFactor, tenantId, sso, _callback); + private okhttp3.Call setTrustFactorValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @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 setTrustFactor(Async)"); + } + + return setTrustFactorCall(tenantId, userId, trustFactor, sso, _callback); } - private ApiResponse setTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(userId, trustFactor, tenantId, sso, null); + private ApiResponse setTrustFactorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(tenantId, 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 tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call setTrustFactorAsync(@javax.annotation.Nonnull String tenantId, @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, tenantId, sso, _callback); + okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(tenantId, userId, trustFactor, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIsetTrustFactorRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String userId; @javax.annotation.Nullable private String trustFactor; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private String sso; - private APIsetTrustFactorRequest() { + private APIsetTrustFactorRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -9482,16 +9362,6 @@ public APIsetTrustFactorRequest trustFactor(@javax.annotation.Nullable String tr return this; } - /** - * Set tenantId - * @param tenantId (optional) - * @return APIsetTrustFactorRequest - */ - public APIsetTrustFactorRequest tenantId(@javax.annotation.Nullable String tenantId) { - this.tenantId = tenantId; - return this; - } - /** * Set sso * @param sso (optional) @@ -9516,7 +9386,7 @@ public APIsetTrustFactorRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return setTrustFactorCall(userId, trustFactor, tenantId, sso, _callback); + return setTrustFactorCall(tenantId, userId, trustFactor, sso, _callback); } /** @@ -9532,7 +9402,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public SetUserTrustFactorResponse execute() throws ApiException { - ApiResponse localVarResp = setTrustFactorWithHttpInfo(userId, trustFactor, tenantId, sso); + ApiResponse localVarResp = setTrustFactorWithHttpInfo(tenantId, userId, trustFactor, sso); return localVarResp.getData(); } @@ -9549,7 +9419,7 @@ public SetUserTrustFactorResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return setTrustFactorWithHttpInfo(userId, trustFactor, tenantId, sso); + return setTrustFactorWithHttpInfo(tenantId, userId, trustFactor, sso); } /** @@ -9566,13 +9436,14 @@ public ApiResponse executeWithHttpInfo() throws ApiE */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return setTrustFactorAsync(userId, trustFactor, tenantId, sso, _callback); + return setTrustFactorAsync(tenantId, userId, trustFactor, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIsetTrustFactorRequest * @http.response.details @@ -9582,7 +9453,7 @@ public okhttp3.Call executeAsync(final ApiCallback _
0 Error -
*/ - public APIsetTrustFactorRequest setTrustFactor() { - return new APIsetTrustFactorRequest(); + public APIsetTrustFactorRequest setTrustFactor(@javax.annotation.Nonnull String tenantId) { + return new APIsetTrustFactorRequest(tenantId); } } diff --git a/client/src/main/java/com/fastcomments/invoker/JSON.java b/client/src/main/java/com/fastcomments/invoker/JSON.java index efd3c5bf..95b2cf3e 100644 --- a/client/src/main/java/com/fastcomments/invoker/JSON.java +++ b/client/src/main/java/com/fastcomments/invoker/JSON.java @@ -334,7 +334,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.PostRemoveCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostRemoveCommentApiResponse.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()); diff --git a/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostRemoveCommentApiResponse.java similarity index 86% rename from client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java rename to client/src/main/java/com/fastcomments/model/PostRemoveCommentApiResponse.java index 1cad6175..9babf148 100644 --- a/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java +++ b/client/src/main/java/com/fastcomments/model/PostRemoveCommentApiResponse.java @@ -60,23 +60,23 @@ import com.fastcomments.invoker.JSON; @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 class PostRemoveCommentApiResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostRemoveCommentApiResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostRemoveCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostRemoveCommentResponse' and its subtypes + if (!PostRemoveCommentApiResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostRemoveCommentApiResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); final TypeAdapter adapterDeleteCommentResult = gson.getDelegateAdapter(this, TypeToken.get(DeleteCommentResult.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, PostRemoveCommentResponse value) throws IOException { + public void write(JsonWriter out, PostRemoveCommentApiResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; @@ -98,7 +98,7 @@ public void write(JsonWriter out, PostRemoveCommentResponse value) throws IOExce } @Override - public PostRemoveCommentResponse read(JsonReader in) throws IOException { + public PostRemoveCommentApiResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); @@ -110,7 +110,7 @@ public PostRemoveCommentResponse read(JsonReader in) throws IOException { // validate the JSON object to see if any exception is thrown DeleteCommentResult.validateJsonElement(jsonElement); actualAdapter = adapterDeleteCommentResult; - PostRemoveCommentResponse ret = new PostRemoveCommentResponse(); + PostRemoveCommentApiResponse ret = new PostRemoveCommentApiResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -123,7 +123,7 @@ public PostRemoveCommentResponse read(JsonReader in) throws IOException { // validate the JSON object to see if any exception is thrown RemoveCommentActionResponse.validateJsonElement(jsonElement); actualAdapter = adapterRemoveCommentActionResponse; - PostRemoveCommentResponse ret = new PostRemoveCommentResponse(); + PostRemoveCommentApiResponse ret = new PostRemoveCommentApiResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -132,7 +132,7 @@ public PostRemoveCommentResponse read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data does not match schema 'RemoveCommentActionResponse'", e); } - 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())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for PostRemoveCommentApiResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -141,11 +141,11 @@ public PostRemoveCommentResponse read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public PostRemoveCommentResponse() { + public PostRemoveCommentApiResponse() { super("anyOf", Boolean.FALSE); } - public PostRemoveCommentResponse(Object o) { + public PostRemoveCommentApiResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } @@ -157,7 +157,7 @@ public PostRemoveCommentResponse(Object o) { @Override public Map> getSchemas() { - return PostRemoveCommentResponse.schemas; + return PostRemoveCommentApiResponse.schemas; } /** @@ -220,7 +220,7 @@ public RemoveCommentActionResponse getRemoveCommentActionResponse() throws Class * 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 PostRemoveCommentResponse + * @throws IOException if the JSON Element is invalid with respect to PostRemoveCommentApiResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one @@ -241,22 +241,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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 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())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for PostRemoveCommentApiResponse 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 PostRemoveCommentResponse given an JSON string + * Create an instance of PostRemoveCommentApiResponse given an JSON string * * @param jsonString JSON string - * @return An instance of PostRemoveCommentResponse - * @throws IOException if the JSON string is invalid with respect to PostRemoveCommentResponse + * @return An instance of PostRemoveCommentApiResponse + * @throws IOException if the JSON string is invalid with respect to PostRemoveCommentApiResponse */ - public static PostRemoveCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostRemoveCommentResponse.class); + public static PostRemoveCommentApiResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostRemoveCommentApiResponse.class); } /** - * Convert an instance of PostRemoveCommentResponse to an JSON string + * Convert an instance of PostRemoveCommentApiResponse to an JSON string * * @return JSON string */ diff --git a/client/src/test/java/com/fastcomments/api/DefaultApiTest.java b/client/src/test/java/com/fastcomments/api/DefaultApiTest.java index 1c90c411..faa35125 100644 --- a/client/src/test/java/com/fastcomments/api/DefaultApiTest.java +++ b/client/src/test/java/com/fastcomments/api/DefaultApiTest.java @@ -184,8 +184,7 @@ public void addDomainConfigTest() throws ApiException { public void addHashTagTest() throws ApiException { String tenantId = null; CreateHashTagBody createHashTagBody = null; - CreateHashTagResponse response = api.addHashTag() - .tenantId(tenantId) + CreateHashTagResponse response = api.addHashTag(tenantId) .createHashTagBody(createHashTagBody) .execute(); // TODO: test validations @@ -198,8 +197,7 @@ public void addHashTagTest() throws ApiException { public void addHashTagsBulkTest() throws ApiException { String tenantId = null; BulkCreateHashTagsBody bulkCreateHashTagsBody = null; - BulkCreateHashTagsResponse response = api.addHashTagsBulk() - .tenantId(tenantId) + BulkCreateHashTagsResponse response = api.addHashTagsBulk(tenantId) .bulkCreateHashTagsBody(bulkCreateHashTagsBody) .execute(); // TODO: test validations @@ -558,11 +556,10 @@ public void deleteEmailTemplateRenderErrorTest() throws ApiException { */ @Test public void deleteHashTagTest() throws ApiException { - String tag = null; String tenantId = null; + String tag = null; DeleteHashTagRequestBody deleteHashTagRequestBody = null; - APIEmptyResponse response = api.deleteHashTag(tag) - .tenantId(tenantId) + APIEmptyResponse response = api.deleteHashTag(tenantId, tag) .deleteHashTagRequestBody(deleteHashTagRequestBody) .execute(); // TODO: test validations @@ -1462,11 +1459,10 @@ public void patchDomainConfigTest() throws ApiException { */ @Test public void patchHashTagTest() throws ApiException { - String tag = null; String tenantId = null; + String tag = null; UpdateHashTagBody updateHashTagBody = null; - UpdateHashTagResponse response = api.patchHashTag(tag) - .tenantId(tenantId) + UpdateHashTagResponse response = api.patchHashTag(tenantId, tag) .updateHashTagBody(updateHashTagBody) .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 index 0809640a..2af8812e 100644 --- a/client/src/test/java/com/fastcomments/api/ModerationApiTest.java +++ b/client/src/test/java/com/fastcomments/api/ModerationApiTest.java @@ -46,7 +46,7 @@ import com.fastcomments.model.ModerationSiteSearchResponse; import com.fastcomments.model.ModerationSuggestResponse; import com.fastcomments.model.ModerationUserSearchResponse; -import com.fastcomments.model.PostRemoveCommentResponse; +import com.fastcomments.model.PostRemoveCommentApiResponse; import com.fastcomments.model.PreBanSummary; import com.fastcomments.model.RemoveUserBadgeResponse; import com.fastcomments.model.SetCommentApprovedResponse; @@ -76,14 +76,13 @@ public class ModerationApiTest { */ @Test public void deleteModerationVoteTest() throws ApiException { + String tenantId = null; String commentId = null; String voteId = null; String broadcastId = null; - String tenantId = null; String sso = null; - VoteDeleteResponse response = api.deleteModerationVote(commentId, voteId) + VoteDeleteResponse response = api.deleteModerationVote(tenantId, commentId, voteId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -94,6 +93,7 @@ public void deleteModerationVoteTest() throws ApiException { */ @Test public void getApiCommentsTest() throws ApiException { + String tenantId = null; Double page = null; Double count = null; String textSearch = null; @@ -102,9 +102,8 @@ public void getApiCommentsTest() throws ApiException { String searchFilters = null; String sorts = null; Boolean demo = null; - String tenantId = null; String sso = null; - ModerationAPIGetCommentsResponse response = api.getApiComments() + ModerationAPIGetCommentsResponse response = api.getApiComments(tenantId) .page(page) .count(count) .textSearch(textSearch) @@ -113,7 +112,6 @@ public void getApiCommentsTest() throws ApiException { .searchFilters(searchFilters) .sorts(sorts) .demo(demo) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -124,12 +122,11 @@ public void getApiCommentsTest() throws ApiException { */ @Test public void getApiExportStatusTest() throws ApiException { - String batchJobId = null; String tenantId = null; + String batchJobId = null; String sso = null; - ModerationExportStatusResponse response = api.getApiExportStatus() + ModerationExportStatusResponse response = api.getApiExportStatus(tenantId) .batchJobId(batchJobId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -140,22 +137,21 @@ public void getApiExportStatusTest() throws ApiException { */ @Test public void getApiIdsTest() throws ApiException { + String tenantId = null; String textSearch = null; String byIPFromComment = null; String filters = null; String searchFilters = null; String afterId = null; Boolean demo = null; - String tenantId = null; String sso = null; - ModerationAPIGetCommentIdsResponse response = api.getApiIds() + ModerationAPIGetCommentIdsResponse response = api.getApiIds(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) .searchFilters(searchFilters) .afterId(afterId) .demo(demo) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -166,11 +162,10 @@ public void getApiIdsTest() throws ApiException { */ @Test public void getBanUsersFromCommentTest() throws ApiException { - String commentId = null; String tenantId = null; + String commentId = null; String sso = null; - GetBannedUsersFromCommentResponse response = api.getBanUsersFromComment(commentId) - .tenantId(tenantId) + GetBannedUsersFromCommentResponse response = api.getBanUsersFromComment(tenantId, commentId) .sso(sso) .execute(); // TODO: test validations @@ -181,11 +176,10 @@ public void getBanUsersFromCommentTest() throws ApiException { */ @Test public void getCommentBanStatusTest() throws ApiException { - String commentId = null; String tenantId = null; + String commentId = null; String sso = null; - GetCommentBanStatusResponse response = api.getCommentBanStatus(commentId) - .tenantId(tenantId) + GetCommentBanStatusResponse response = api.getCommentBanStatus(tenantId, commentId) .sso(sso) .execute(); // TODO: test validations @@ -196,11 +190,10 @@ public void getCommentBanStatusTest() throws ApiException { */ @Test public void getCommentChildrenTest() throws ApiException { - String commentId = null; String tenantId = null; + String commentId = null; String sso = null; - ModerationAPIChildCommentsResponse response = api.getCommentChildren(commentId) - .tenantId(tenantId) + ModerationAPIChildCommentsResponse response = api.getCommentChildren(tenantId, commentId) .sso(sso) .execute(); // TODO: test validations @@ -211,20 +204,19 @@ public void getCommentChildrenTest() throws ApiException { */ @Test public void getCountTest() throws ApiException { + String tenantId = null; String textSearch = null; String byIPFromComment = null; String filter = null; String searchFilters = null; Boolean demo = null; - String tenantId = null; String sso = null; - ModerationAPICountCommentsResponse response = api.getCount() + ModerationAPICountCommentsResponse response = api.getCount(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filter(filter) .searchFilters(searchFilters) .demo(demo) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -237,8 +229,7 @@ public void getCountTest() throws ApiException { public void getCountsTest() throws ApiException { String tenantId = null; String sso = null; - GetBannedUsersCountResponse response = api.getCounts() - .tenantId(tenantId) + GetBannedUsersCountResponse response = api.getCounts(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -249,11 +240,10 @@ public void getCountsTest() throws ApiException { */ @Test public void getLogsTest() throws ApiException { - String commentId = null; String tenantId = null; + String commentId = null; String sso = null; - ModerationAPIGetLogsResponse response = api.getLogs(commentId) - .tenantId(tenantId) + ModerationAPIGetLogsResponse response = api.getLogs(tenantId, commentId) .sso(sso) .execute(); // TODO: test validations @@ -266,8 +256,7 @@ public void getLogsTest() throws ApiException { public void getManualBadgesTest() throws ApiException { String tenantId = null; String sso = null; - GetTenantManualBadgesResponse response = api.getManualBadges() - .tenantId(tenantId) + GetTenantManualBadgesResponse response = api.getManualBadges(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -278,14 +267,13 @@ public void getManualBadgesTest() throws ApiException { */ @Test public void getManualBadgesForUserTest() throws ApiException { + String tenantId = null; String badgesUserId = null; String commentId = null; - String tenantId = null; String sso = null; - GetUserManualBadgesResponse response = api.getManualBadgesForUser() + GetUserManualBadgesResponse response = api.getManualBadgesForUser(tenantId) .badgesUserId(badgesUserId) .commentId(commentId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -296,15 +284,14 @@ public void getManualBadgesForUserTest() throws ApiException { */ @Test public void getModerationCommentTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean includeEmail = null; Boolean includeIP = null; - String tenantId = null; String sso = null; - ModerationAPICommentResponse response = api.getModerationComment(commentId) + ModerationAPICommentResponse response = api.getModerationComment(tenantId, commentId) .includeEmail(includeEmail) .includeIP(includeIP) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -315,11 +302,10 @@ public void getModerationCommentTest() throws ApiException { */ @Test public void getModerationCommentTextTest() throws ApiException { - String commentId = null; String tenantId = null; + String commentId = null; String sso = null; - GetCommentTextResponse response = api.getModerationCommentText(commentId) - .tenantId(tenantId) + GetCommentTextResponse response = api.getModerationCommentText(tenantId, commentId) .sso(sso) .execute(); // TODO: test validations @@ -330,17 +316,16 @@ public void getModerationCommentTextTest() throws ApiException { */ @Test public void getPreBanSummaryTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean includeByUserIdAndEmail = null; Boolean includeByIP = null; Boolean includeByEmailDomain = null; - String tenantId = null; String sso = null; - PreBanSummary response = api.getPreBanSummary(commentId) + PreBanSummary response = api.getPreBanSummary(tenantId, commentId) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -351,16 +336,15 @@ public void getPreBanSummaryTest() throws ApiException { */ @Test public void getSearchCommentsSummaryTest() throws ApiException { + String tenantId = null; String value = null; String filters = null; String searchFilters = null; - String tenantId = null; String sso = null; - ModerationCommentSearchResponse response = api.getSearchCommentsSummary() + ModerationCommentSearchResponse response = api.getSearchCommentsSummary(tenantId) .value(value) .filters(filters) .searchFilters(searchFilters) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -371,12 +355,11 @@ public void getSearchCommentsSummaryTest() throws ApiException { */ @Test public void getSearchPagesTest() throws ApiException { - String value = null; String tenantId = null; + String value = null; String sso = null; - ModerationPageSearchResponse response = api.getSearchPages() + ModerationPageSearchResponse response = api.getSearchPages(tenantId) .value(value) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -387,12 +370,11 @@ public void getSearchPagesTest() throws ApiException { */ @Test public void getSearchSitesTest() throws ApiException { - String value = null; String tenantId = null; + String value = null; String sso = null; - ModerationSiteSearchResponse response = api.getSearchSites() + ModerationSiteSearchResponse response = api.getSearchSites(tenantId) .value(value) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -403,12 +385,11 @@ public void getSearchSitesTest() throws ApiException { */ @Test public void getSearchSuggestTest() throws ApiException { - String textSearch = null; String tenantId = null; + String textSearch = null; String sso = null; - ModerationSuggestResponse response = api.getSearchSuggest() + ModerationSuggestResponse response = api.getSearchSuggest(tenantId) .textSearch(textSearch) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -419,12 +400,11 @@ public void getSearchSuggestTest() throws ApiException { */ @Test public void getSearchUsersTest() throws ApiException { - String value = null; String tenantId = null; + String value = null; String sso = null; - ModerationUserSearchResponse response = api.getSearchUsers() + ModerationUserSearchResponse response = api.getSearchUsers(tenantId) .value(value) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -435,12 +415,11 @@ public void getSearchUsersTest() throws ApiException { */ @Test public void getTrustFactorTest() throws ApiException { - String userId = null; String tenantId = null; + String userId = null; String sso = null; - GetUserTrustFactorResponse response = api.getTrustFactor() + GetUserTrustFactorResponse response = api.getTrustFactor(tenantId) .userId(userId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -453,8 +432,7 @@ public void getTrustFactorTest() throws ApiException { public void getUserBanPreferenceTest() throws ApiException { String tenantId = null; String sso = null; - APIModerateGetUserBanPreferencesResponse response = api.getUserBanPreference() - .tenantId(tenantId) + APIModerateGetUserBanPreferencesResponse response = api.getUserBanPreference(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -465,12 +443,11 @@ public void getUserBanPreferenceTest() throws ApiException { */ @Test public void getUserInternalProfileTest() throws ApiException { - String commentId = null; String tenantId = null; + String commentId = null; String sso = null; - GetUserInternalProfileResponse response = api.getUserInternalProfile() + GetUserInternalProfileResponse response = api.getUserInternalProfile(tenantId) .commentId(commentId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -481,14 +458,13 @@ public void getUserInternalProfileTest() throws ApiException { */ @Test public void postAdjustCommentVotesTest() throws ApiException { + String tenantId = null; String commentId = null; AdjustCommentVotesParams adjustCommentVotesParams = null; String broadcastId = null; - String tenantId = null; String sso = null; - AdjustVotesResponse response = api.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + AdjustVotesResponse response = api.postAdjustCommentVotes(tenantId, commentId, adjustCommentVotesParams) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -499,20 +475,19 @@ public void postAdjustCommentVotesTest() throws ApiException { */ @Test public void postApiExportTest() throws ApiException { + String tenantId = null; String textSearch = null; String byIPFromComment = null; String filters = null; String searchFilters = null; String sorts = null; - String tenantId = null; String sso = null; - ModerationExportResponse response = api.postApiExport() + ModerationExportResponse response = api.postApiExport(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) .searchFilters(searchFilters) .sorts(sorts) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -523,6 +498,7 @@ public void postApiExportTest() throws ApiException { */ @Test public void postBanUserFromCommentTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean banEmail = null; Boolean banEmailDomain = null; @@ -532,9 +508,8 @@ public void postBanUserFromCommentTest() throws ApiException { Boolean isShadowBan = null; String updateId = null; String banReason = null; - String tenantId = null; String sso = null; - BanUserFromCommentResult response = api.postBanUserFromComment(commentId) + BanUserFromCommentResult response = api.postBanUserFromComment(tenantId, commentId) .banEmail(banEmail) .banEmailDomain(banEmailDomain) .banIP(banIP) @@ -543,7 +518,6 @@ public void postBanUserFromCommentTest() throws ApiException { .isShadowBan(isShadowBan) .updateId(updateId) .banReason(banReason) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -554,11 +528,10 @@ public void postBanUserFromCommentTest() throws ApiException { */ @Test public void postBanUserUndoTest() throws ApiException { - BanUserUndoParams banUserUndoParams = null; String tenantId = null; + BanUserUndoParams banUserUndoParams = null; String sso = null; - APIEmptyResponse response = api.postBanUserUndo(banUserUndoParams) - .tenantId(tenantId) + APIEmptyResponse response = api.postBanUserUndo(tenantId, banUserUndoParams) .sso(sso) .execute(); // TODO: test validations @@ -569,17 +542,16 @@ public void postBanUserUndoTest() throws ApiException { */ @Test public void postBulkPreBanSummaryTest() throws ApiException { + String tenantId = null; BulkPreBanParams bulkPreBanParams = null; Boolean includeByUserIdAndEmail = null; Boolean includeByIP = null; Boolean includeByEmailDomain = null; - String tenantId = null; String sso = null; - BulkPreBanSummary response = api.postBulkPreBanSummary(bulkPreBanParams) + BulkPreBanSummary response = api.postBulkPreBanSummary(tenantId, bulkPreBanParams) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -590,11 +562,10 @@ public void postBulkPreBanSummaryTest() throws ApiException { */ @Test public void postCommentsByIdsTest() throws ApiException { - CommentsByIdsParams commentsByIdsParams = null; String tenantId = null; + CommentsByIdsParams commentsByIdsParams = null; String sso = null; - ModerationAPIChildCommentsResponse response = api.postCommentsByIds(commentsByIdsParams) - .tenantId(tenantId) + ModerationAPIChildCommentsResponse response = api.postCommentsByIds(tenantId, commentsByIdsParams) .sso(sso) .execute(); // TODO: test validations @@ -605,13 +576,12 @@ public void postCommentsByIdsTest() throws ApiException { */ @Test public void postFlagCommentTest() throws ApiException { + String tenantId = null; String commentId = null; String broadcastId = null; - String tenantId = null; String sso = null; - APIEmptyResponse response = api.postFlagComment(commentId) + APIEmptyResponse response = api.postFlagComment(tenantId, commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -622,13 +592,12 @@ public void postFlagCommentTest() throws ApiException { */ @Test public void postRemoveCommentTest() throws ApiException { + String tenantId = null; String commentId = null; String broadcastId = null; - String tenantId = null; String sso = null; - PostRemoveCommentResponse response = api.postRemoveComment(commentId) + PostRemoveCommentApiResponse response = api.postRemoveComment(tenantId, commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -639,13 +608,12 @@ public void postRemoveCommentTest() throws ApiException { */ @Test public void postRestoreDeletedCommentTest() throws ApiException { + String tenantId = null; String commentId = null; String broadcastId = null; - String tenantId = null; String sso = null; - APIEmptyResponse response = api.postRestoreDeletedComment(commentId) + APIEmptyResponse response = api.postRestoreDeletedComment(tenantId, commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -656,15 +624,14 @@ public void postRestoreDeletedCommentTest() throws ApiException { */ @Test public void postSetCommentApprovalStatusTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean approved = null; String broadcastId = null; - String tenantId = null; String sso = null; - SetCommentApprovedResponse response = api.postSetCommentApprovalStatus(commentId) + SetCommentApprovedResponse response = api.postSetCommentApprovalStatus(tenantId, commentId) .approved(approved) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -675,15 +642,14 @@ public void postSetCommentApprovalStatusTest() throws ApiException { */ @Test public void postSetCommentReviewStatusTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean reviewed = null; String broadcastId = null; - String tenantId = null; String sso = null; - APIEmptyResponse response = api.postSetCommentReviewStatus(commentId) + APIEmptyResponse response = api.postSetCommentReviewStatus(tenantId, commentId) .reviewed(reviewed) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -694,17 +660,16 @@ public void postSetCommentReviewStatusTest() throws ApiException { */ @Test public void postSetCommentSpamStatusTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean spam = null; Boolean permNotSpam = null; String broadcastId = null; - String tenantId = null; String sso = null; - APIEmptyResponse response = api.postSetCommentSpamStatus(commentId) + APIEmptyResponse response = api.postSetCommentSpamStatus(tenantId, commentId) .spam(spam) .permNotSpam(permNotSpam) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -715,14 +680,13 @@ public void postSetCommentSpamStatusTest() throws ApiException { */ @Test public void postSetCommentTextTest() throws ApiException { + String tenantId = null; String commentId = null; SetCommentTextParams setCommentTextParams = null; String broadcastId = null; - String tenantId = null; String sso = null; - SetCommentTextResponse response = api.postSetCommentText(commentId, setCommentTextParams) + SetCommentTextResponse response = api.postSetCommentText(tenantId, commentId, setCommentTextParams) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -733,13 +697,12 @@ public void postSetCommentTextTest() throws ApiException { */ @Test public void postUnFlagCommentTest() throws ApiException { + String tenantId = null; String commentId = null; String broadcastId = null; - String tenantId = null; String sso = null; - APIEmptyResponse response = api.postUnFlagComment(commentId) + APIEmptyResponse response = api.postUnFlagComment(tenantId, commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -750,15 +713,14 @@ public void postUnFlagCommentTest() throws ApiException { */ @Test public void postVoteTest() throws ApiException { + String tenantId = null; String commentId = null; String direction = null; String broadcastId = null; - String tenantId = null; String sso = null; - VoteResponse response = api.postVote(commentId) + VoteResponse response = api.postVote(tenantId, commentId) .direction(direction) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -769,17 +731,16 @@ public void postVoteTest() throws ApiException { */ @Test public void putAwardBadgeTest() throws ApiException { + String tenantId = null; String badgeId = null; String userId = null; String commentId = null; String broadcastId = null; - String tenantId = null; String sso = null; - AwardUserBadgeResponse response = api.putAwardBadge(badgeId) + AwardUserBadgeResponse response = api.putAwardBadge(tenantId, badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -790,11 +751,10 @@ public void putAwardBadgeTest() throws ApiException { */ @Test public void putCloseThreadTest() throws ApiException { - String urlId = null; String tenantId = null; + String urlId = null; String sso = null; - APIEmptyResponse response = api.putCloseThread(urlId) - .tenantId(tenantId) + APIEmptyResponse response = api.putCloseThread(tenantId, urlId) .sso(sso) .execute(); // TODO: test validations @@ -805,17 +765,16 @@ public void putCloseThreadTest() throws ApiException { */ @Test public void putRemoveBadgeTest() throws ApiException { + String tenantId = null; String badgeId = null; String userId = null; String commentId = null; String broadcastId = null; - String tenantId = null; String sso = null; - RemoveUserBadgeResponse response = api.putRemoveBadge(badgeId) + RemoveUserBadgeResponse response = api.putRemoveBadge(tenantId, badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -826,11 +785,10 @@ public void putRemoveBadgeTest() throws ApiException { */ @Test public void putReopenThreadTest() throws ApiException { - String urlId = null; String tenantId = null; + String urlId = null; String sso = null; - APIEmptyResponse response = api.putReopenThread(urlId) - .tenantId(tenantId) + APIEmptyResponse response = api.putReopenThread(tenantId, urlId) .sso(sso) .execute(); // TODO: test validations @@ -841,14 +799,13 @@ public void putReopenThreadTest() throws ApiException { */ @Test public void setTrustFactorTest() throws ApiException { + String tenantId = null; String userId = null; String trustFactor = null; - String tenantId = null; String sso = null; - SetUserTrustFactorResponse response = api.setTrustFactor() + SetUserTrustFactorResponse response = api.setTrustFactor(tenantId) .userId(userId) .trustFactor(trustFactor) - .tenantId(tenantId) .sso(sso) .execute(); // TODO: test validations diff --git a/client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PostRemoveCommentApiResponseTest.java similarity index 77% rename from client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java rename to client/src/test/java/com/fastcomments/model/PostRemoveCommentApiResponseTest.java index dba61c87..3e61e84a 100644 --- a/client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/PostRemoveCommentApiResponseTest.java @@ -26,17 +26,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for PostRemoveCommentResponse + * Model tests for PostRemoveCommentApiResponse */ -public class PostRemoveCommentResponseTest { - private final PostRemoveCommentResponse model = new PostRemoveCommentResponse(); +public class PostRemoveCommentApiResponseTest { + private final PostRemoveCommentApiResponse model = new PostRemoveCommentApiResponse(); /** - * Model tests for PostRemoveCommentResponse + * Model tests for PostRemoveCommentApiResponse */ @Test - public void testPostRemoveCommentResponse() { - // TODO: test PostRemoveCommentResponse + public void testPostRemoveCommentApiResponse() { + // TODO: test PostRemoveCommentApiResponse } /** diff --git a/openapi.json b/openapi.json index 0f72c9c4..302747de 100644 --- a/openapi.json +++ b/openapi.json @@ -13107,9 +13107,9 @@ ] } }, - "/auth/my-account/moderate-comments/count": { + "/auth/my-account/moderate-comments/mod_api/count": { "get": { - "operationId": "GetCount", + "operationId": "getCount", "responses": { "200": { "description": "Ok", @@ -13137,6 +13137,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13177,14 +13185,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13196,9 +13196,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/ids": { + "/auth/my-account/moderate-comments/mod_api/api/ids": { "get": { - "operationId": "GetApiIds", + "operationId": "getApiIds", "responses": { "200": { "description": "Ok", @@ -13226,6 +13226,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13274,14 +13282,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13293,9 +13293,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/comments": { + "/auth/my-account/moderate-comments/mod_api/api/comments": { "get": { - "operationId": "GetApiComments", + "operationId": "getApiComments", "responses": { "200": { "description": "Ok", @@ -13323,6 +13323,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "page", @@ -13389,14 +13397,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13408,9 +13408,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export": { + "/auth/my-account/moderate-comments/mod_api/api/export": { "post": { - "operationId": "PostApiExport", + "operationId": "postApiExport", "responses": { "200": { "description": "Ok", @@ -13440,15 +13440,15 @@ "parameters": [ { "in": "query", - "name": "text-search", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "byIPFromComment", + "name": "text-search", "required": false, "schema": { "type": "string" @@ -13456,7 +13456,7 @@ }, { "in": "query", - "name": "filters", + "name": "byIPFromComment", "required": false, "schema": { "type": "string" @@ -13464,7 +13464,7 @@ }, { "in": "query", - "name": "searchFilters", + "name": "filters", "required": false, "schema": { "type": "string" @@ -13472,7 +13472,7 @@ }, { "in": "query", - "name": "sorts", + "name": "searchFilters", "required": false, "schema": { "type": "string" @@ -13480,7 +13480,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "sorts", "required": false, "schema": { "type": "string" @@ -13497,9 +13497,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export/status": { + "/auth/my-account/moderate-comments/mod_api/api/export/status": { "get": { - "operationId": "GetApiExportStatus", + "operationId": "getApiExportStatus", "responses": { "200": { "description": "Ok", @@ -13529,15 +13529,15 @@ "parameters": [ { "in": "query", - "name": "batchJobId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "batchJobId", "required": false, "schema": { "type": "string" @@ -13554,9 +13554,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/users": { + "/auth/my-account/moderate-comments/mod_api/search/users": { "get": { - "operationId": "GetSearchUsers", + "operationId": "getSearchUsers", "responses": { "200": { "description": "Ok", @@ -13586,15 +13586,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "value", "required": false, "schema": { "type": "string" @@ -13611,9 +13611,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/pages": { + "/auth/my-account/moderate-comments/mod_api/search/pages": { "get": { - "operationId": "GetSearchPages", + "operationId": "getSearchPages", "responses": { "200": { "description": "Ok", @@ -13643,15 +13643,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "value", "required": false, "schema": { "type": "string" @@ -13668,9 +13668,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/sites": { + "/auth/my-account/moderate-comments/mod_api/search/sites": { "get": { - "operationId": "GetSearchSites", + "operationId": "getSearchSites", "responses": { "200": { "description": "Ok", @@ -13700,15 +13700,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "value", "required": false, "schema": { "type": "string" @@ -13725,9 +13725,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/comments/summary": { + "/auth/my-account/moderate-comments/mod_api/search/comments/summary": { "get": { - "operationId": "GetSearchCommentsSummary", + "operationId": "getSearchCommentsSummary", "responses": { "200": { "description": "Ok", @@ -13757,15 +13757,15 @@ "parameters": [ { "in": "query", - "name": "value", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "filters", + "name": "value", "required": false, "schema": { "type": "string" @@ -13773,7 +13773,7 @@ }, { "in": "query", - "name": "searchFilters", + "name": "filters", "required": false, "schema": { "type": "string" @@ -13781,7 +13781,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "searchFilters", "required": false, "schema": { "type": "string" @@ -13798,9 +13798,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/suggest": { + "/auth/my-account/moderate-comments/mod_api/search/suggest": { "get": { - "operationId": "GetSearchSuggest", + "operationId": "getSearchSuggest", "responses": { "200": { "description": "Ok", @@ -13830,15 +13830,15 @@ "parameters": [ { "in": "query", - "name": "text-search", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "text-search", "required": false, "schema": { "type": "string" @@ -13855,9 +13855,9 @@ ] } }, - "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}": { "get": { - "operationId": "GetPreBanSummary", + "operationId": "getPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13885,6 +13885,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -13917,14 +13925,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -13936,9 +13936,9 @@ ] } }, - "/auth/my-account/moderate-comments/bulk-pre-ban-summary": { + "/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary": { "post": { - "operationId": "PostBulkPreBanSummary", + "operationId": "postBulkPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13968,15 +13968,15 @@ "parameters": [ { "in": "query", - "name": "includeByUserIdAndEmail", - "required": false, + "name": "tenantId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "includeByIP", + "name": "includeByUserIdAndEmail", "required": false, "schema": { "type": "boolean" @@ -13984,7 +13984,7 @@ }, { "in": "query", - "name": "includeByEmailDomain", + "name": "includeByIP", "required": false, "schema": { "type": "boolean" @@ -13992,10 +13992,10 @@ }, { "in": "query", - "name": "tenantId", + "name": "includeByEmailDomain", "required": false, "schema": { - "type": "string" + "type": "boolean" } }, { @@ -14019,9 +14019,9 @@ } } }, - "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}": { "post": { - "operationId": "PostBanUserFromComment", + "operationId": "postBanUserFromComment", "responses": { "200": { "description": "Ok", @@ -14049,6 +14049,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14121,14 +14129,6 @@ "type": "string" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14140,9 +14140,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}": { "get": { - "operationId": "GetBanUsersFromComment", + "operationId": "getBanUsersFromComment", "responses": { "200": { "description": "Ok", @@ -14171,17 +14171,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14197,9 +14197,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-user/undo": { + "/auth/my-account/moderate-comments/mod_api/ban-user/undo": { "post": { - "operationId": "PostBanUserUndo", + "operationId": "postBanUserUndo", "responses": { "200": { "description": "Ok", @@ -14230,7 +14230,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -14256,16 +14256,16 @@ } } }, - "/auth/my-account/moderate-comments/remove-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}": { "post": { - "operationId": "PostRemoveComment", + "operationId": "postRemoveComment", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "title": "PostRemoveCommentResponse", + "title": "PostRemoveCommentApiResponse", "anyOf": [ { "$ref": "#/components/schemas/DeleteCommentResult" @@ -14295,24 +14295,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14329,9 +14329,9 @@ ] } }, - "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}": { "post": { - "operationId": "PostRestoreDeletedComment", + "operationId": "postRestoreDeletedComment", "responses": { "200": { "description": "Ok", @@ -14360,24 +14360,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14394,9 +14394,9 @@ ] } }, - "/auth/my-account/moderate-comments/flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}": { "post": { - "operationId": "PostFlagComment", + "operationId": "postFlagComment", "responses": { "200": { "description": "Ok", @@ -14425,24 +14425,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14459,9 +14459,9 @@ ] } }, - "/auth/my-account/moderate-comments/un-flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}": { "post": { - "operationId": "PostUnFlagComment", + "operationId": "postUnFlagComment", "responses": { "200": { "description": "Ok", @@ -14490,24 +14490,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -14524,9 +14524,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}": { "post": { - "operationId": "PostSetCommentReviewStatus", + "operationId": "postSetCommentReviewStatus", "responses": { "200": { "description": "Ok", @@ -14554,6 +14554,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14578,14 +14586,6 @@ "type": "string" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14597,9 +14597,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}": { "post": { - "operationId": "PostSetCommentSpamStatus", + "operationId": "postSetCommentSpamStatus", "responses": { "200": { "description": "Ok", @@ -14627,6 +14627,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14659,14 +14667,6 @@ "type": "string" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14678,9 +14678,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}": { "post": { - "operationId": "PostSetCommentApprovalStatus", + "operationId": "postSetCommentApprovalStatus", "responses": { "200": { "description": "Ok", @@ -14708,6 +14708,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14732,14 +14740,6 @@ "type": "string" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14751,9 +14751,9 @@ ] } }, - "/auth/my-account/moderate-comments/logs/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/logs/{commentId}": { "get": { - "operationId": "GetLogs", + "operationId": "getLogs", "responses": { "200": { "description": "Ok", @@ -14782,17 +14782,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14808,9 +14808,9 @@ ] } }, - "/auth/my-account/moderate-comments/comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment/{commentId}": { "get": { - "operationId": "GetModerationComment", + "operationId": "getModerationComment", "responses": { "200": { "description": "Ok", @@ -14838,6 +14838,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14862,14 +14870,6 @@ "type": "boolean" } }, - { - "in": "query", - "name": "tenantId", - "required": false, - "schema": { - "type": "string" - } - }, { "in": "query", "name": "sso", @@ -14881,9 +14881,9 @@ ] } }, - "/auth/my-account/moderate-comments/comments-by-ids": { + "/auth/my-account/moderate-comments/mod_api/comments-by-ids": { "post": { - "operationId": "PostCommentsByIds", + "operationId": "postCommentsByIds", "responses": { "200": { "description": "Ok", @@ -14914,7 +14914,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -14940,9 +14940,9 @@ } } }, - "/auth/my-account/moderate-comments/comment-children/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}": { "get": { - "operationId": "GetCommentChildren", + "operationId": "getCommentChildren", "responses": { "200": { "description": "Ok", @@ -14971,17 +14971,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -14997,9 +14997,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}": { "get": { - "operationId": "GetModerationCommentText", + "operationId": "getModerationCommentText", "responses": { "200": { "description": "Ok", @@ -15028,17 +15028,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -15054,9 +15054,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}": { "post": { - "operationId": "PostSetCommentText", + "operationId": "postSetCommentText", "responses": { "200": { "description": "Ok", @@ -15085,24 +15085,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15129,9 +15129,9 @@ } } }, - "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}": { "post": { - "operationId": "PostAdjustCommentVotes", + "operationId": "postAdjustCommentVotes", "responses": { "200": { "description": "Ok", @@ -15160,24 +15160,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15204,9 +15204,9 @@ } } }, - "/auth/my-account/moderate-comments/vote/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}": { "post": { - "operationId": "PostVote", + "operationId": "postVote", "responses": { "200": { "description": "Ok", @@ -15235,24 +15235,24 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "direction", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "broadcastId", + "name": "direction", "required": false, "schema": { "type": "string" @@ -15260,7 +15260,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15277,9 +15277,9 @@ ] } }, - "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}": { "delete": { - "operationId": "DeleteModerationVote", + "operationId": "deleteModerationVote", "responses": { "200": { "description": "Ok", @@ -15308,8 +15308,8 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15317,23 +15317,23 @@ }, { "in": "path", - "name": "voteId", + "name": "commentId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "broadcastId", - "required": false, + "in": "path", + "name": "voteId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15350,9 +15350,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}": { "get": { - "operationId": "GetCommentBanStatus", + "operationId": "getCommentBanStatus", "responses": { "200": { "description": "Ok", @@ -15381,17 +15381,17 @@ "security": [], "parameters": [ { - "in": "path", - "name": "commentId", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "commentId", + "required": true, "schema": { "type": "string" } @@ -15407,9 +15407,9 @@ ] } }, - "/auth/my-account/moderate-comments/user-ban-preference": { + "/auth/my-account/moderate-comments/mod_api/user-ban-preference": { "get": { - "operationId": "GetUserBanPreference", + "operationId": "getUserBanPreference", "responses": { "200": { "description": "Ok", @@ -15440,7 +15440,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -15456,9 +15456,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges": { "get": { - "operationId": "GetManualBadges", + "operationId": "getManualBadges", "responses": { "200": { "description": "Ok", @@ -15489,7 +15489,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -15505,9 +15505,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges-for-user": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user": { "get": { - "operationId": "GetManualBadgesForUser", + "operationId": "getManualBadgesForUser", "responses": { "200": { "description": "Ok", @@ -15537,15 +15537,15 @@ "parameters": [ { "in": "query", - "name": "badgesUserId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "commentId", + "name": "badgesUserId", "required": false, "schema": { "type": "string" @@ -15553,7 +15553,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15570,9 +15570,9 @@ ] } }, - "/auth/my-account/moderate-comments/award-badge": { + "/auth/my-account/moderate-comments/mod_api/award-badge": { "put": { - "operationId": "PutAwardBadge", + "operationId": "putAwardBadge", "responses": { "200": { "description": "Ok", @@ -15602,7 +15602,7 @@ "parameters": [ { "in": "query", - "name": "badgeId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15610,15 +15610,15 @@ }, { "in": "query", - "name": "userId", - "required": false, + "name": "badgeId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "commentId", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15626,7 +15626,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15634,7 +15634,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15651,9 +15651,9 @@ ] } }, - "/auth/my-account/moderate-comments/remove-badge": { + "/auth/my-account/moderate-comments/mod_api/remove-badge": { "put": { - "operationId": "PutRemoveBadge", + "operationId": "putRemoveBadge", "responses": { "200": { "description": "Ok", @@ -15683,7 +15683,7 @@ "parameters": [ { "in": "query", - "name": "badgeId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15691,15 +15691,15 @@ }, { "in": "query", - "name": "userId", - "required": false, + "name": "badgeId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "commentId", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15707,7 +15707,7 @@ }, { "in": "query", - "name": "broadcastId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15715,7 +15715,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "broadcastId", "required": false, "schema": { "type": "string" @@ -15732,9 +15732,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/get-trust-factor": { "get": { - "operationId": "GetTrustFactor", + "operationId": "getTrustFactor", "responses": { "200": { "description": "Ok", @@ -15764,15 +15764,15 @@ "parameters": [ { "in": "query", - "name": "userId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15789,9 +15789,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/set-trust-factor": { "put": { - "operationId": "SetTrustFactor", + "operationId": "setTrustFactor", "responses": { "200": { "description": "Ok", @@ -15821,15 +15821,15 @@ "parameters": [ { "in": "query", - "name": "userId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "trustFactor", + "name": "userId", "required": false, "schema": { "type": "string" @@ -15837,7 +15837,7 @@ }, { "in": "query", - "name": "tenantId", + "name": "trustFactor", "required": false, "schema": { "type": "string" @@ -15854,9 +15854,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-user-internal-profile": { + "/auth/my-account/moderate-comments/mod_api/get-user-internal-profile": { "get": { - "operationId": "GetUserInternalProfile", + "operationId": "getUserInternalProfile", "responses": { "200": { "description": "Ok", @@ -15886,15 +15886,15 @@ "parameters": [ { "in": "query", - "name": "commentId", - "required": false, + "name": "tenantId", + "required": true, "schema": { "type": "string" } }, { "in": "query", - "name": "tenantId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -15911,9 +15911,9 @@ ] } }, - "/auth/my-account/moderate-comments/reopen-thread": { + "/auth/my-account/moderate-comments/mod_api/reopen-thread": { "put": { - "operationId": "PutReopenThread", + "operationId": "putReopenThread", "responses": { "200": { "description": "Ok", @@ -15943,7 +15943,7 @@ "parameters": [ { "in": "query", - "name": "urlId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -15951,8 +15951,8 @@ }, { "in": "query", - "name": "tenantId", - "required": false, + "name": "urlId", + "required": true, "schema": { "type": "string" } @@ -15968,9 +15968,9 @@ ] } }, - "/auth/my-account/moderate-comments/close-thread": { + "/auth/my-account/moderate-comments/mod_api/close-thread": { "put": { - "operationId": "PutCloseThread", + "operationId": "putCloseThread", "responses": { "200": { "description": "Ok", @@ -16000,7 +16000,7 @@ "parameters": [ { "in": "query", - "name": "urlId", + "name": "tenantId", "required": true, "schema": { "type": "string" @@ -16008,8 +16008,8 @@ }, { "in": "query", - "name": "tenantId", - "required": false, + "name": "urlId", + "required": true, "schema": { "type": "string" } @@ -16025,9 +16025,9 @@ ] } }, - "/auth/my-account/moderate-comments/banned-users/counts": { + "/auth/my-account/moderate-comments/banned-users/mod_api/counts": { "get": { - "operationId": "GetCounts", + "operationId": "getCounts", "responses": { "200": { "description": "Ok", @@ -16058,7 +16058,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -23027,7 +23027,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -23079,7 +23079,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -23129,17 +23129,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } @@ -23187,17 +23187,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } From a707a222f72412771dd46e3256c3505965cacc76 Mon Sep 17 00:00:00 2001 From: winrid Date: Tue, 30 Jun 2026 10:39:44 -0700 Subject: [PATCH 4/5] README: shorten the ModerationApi description Replace the long capability enumeration with a concise summary. --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index ea38b95c..2dbea988 100644 --- a/README.md +++ b/README.md @@ -82,10 +82,7 @@ to make working with the API easier, and the `pubsub` module which is a library 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. +The `ModerationApi` provides an extensive suite of live and fast moderation APIs. Every `ModerationApi` method accepts an `sso` parameter and can authenticate via SSO or a FastComments.com session cookie. ## Quick Start From afc399db3d45e0159a8e4d64ed6c6ae046aa7e78 Mon Sep 17 00:00:00 2001 From: winrid Date: Tue, 30 Jun 2026 12:10:35 -0700 Subject: [PATCH 5/5] Bump generator JAR_URL to fastcomments-build-20260630 --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 3fae7cd5..897fda29 100755 --- a/update.sh +++ b/update.sh @@ -4,7 +4,7 @@ set -e # 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_URL="https://github.com/winrid/openapi-generator/releases/download/fastcomments-build-20260630/openapi-generator-cli.jar" JAR_FILE="./openapi-generator-cli.jar" [ -f "$JAR_FILE" ] || wget -q "$JAR_URL" -O "$JAR_FILE"